Page 2 of 2

Re: STM32F4-Discovery debug envirorment

Posted: Wed Mar 27, 2013 8:21 pm
by Boris_il_forte
Giovanni wrote:WFI is not enabled by default in ChibiOS demos so it is not your problem.

Giovanni


there is a possibility that I've enabled it by mistake? how can i check it?
I'm not an expert like you, but the behaviour of my project& debugger, looks like the problem is the one reported... I've no any ideas, also becouse there aren't other things I've googled or that I can immagine....
The code was a very old demo heavily modified (possibly, even by more that one person)

Re: STM32F4-Discovery debug envirorment

Posted: Wed Mar 27, 2013 8:26 pm
by Giovanni
Only if you enabled CORTEX_ENABLE_WFI_IDLE=TRUE somewhere, the option is not even available in configuration files.

Giovanni

Re: STM32F4-Discovery debug envirorment

Posted: Wed Mar 27, 2013 10:43 pm
by Boris_il_forte
Giovanni wrote:Only if you enabled CORTEX_ENABLE_WFI_IDLE=TRUE somewhere, the option is not even available in configuration files.

Giovanni


Obviously, you were right.

CORTEX_ENABLE_WFI_IDLE is correctly set to false.

so, i've tryed to comment all my code, leaving just a infinite loop and
halInit();
chSysInit();
before that, and tryed with chibios 2.5.0, nothing changed...

I've Also tryed to search differences between board.h, and the only relevant one, a part the configuration of pins and some new defined functions, was the macro BOARD_NAME
changing the name to the new name, has apparently no effect :(

now I've finished all my ideas, i think i'll give up to this sort of black magic :(
even with chibistudio i can't get my program working...


thanks for the help


Boris

Re: STM32F4-Discovery debug envirorment

Posted: Thu Mar 28, 2013 11:00 am
by DeusExMachina
Boris, I have the same problems in Linux debugging... look here
viewtopic.php?f=8&t=211&start=60#p9238

Re: STM32F4-Discovery debug envirorment

Posted: Thu Mar 28, 2013 12:11 pm
by Boris_il_forte
DeusExMachina wrote:Boris, I have the same problems in Linux debugging... look here
viewtopic.php?f=8&t=211&start=60#p9238


thank you for answering
I don't think we have the same problem...
At the beginning, i thought that it was a toolchain problem, but the toolchain is working either mine either the ChibiStudio one.
I can have the Chibios demo working perfectly....
what's not working is flashing and debugging my specific chibios application...
I think is a problem in the configuration files that I have'nt noticed or a problem in the makefile...
I'll try to disable even the FPU support, but I fear that it will be useless....