AnsweredAssumed Answered

Problem with pointer on ARM Cortex M4 and error message no source available for ""

Question asked by michel.paul_henri on Jul 17, 2013
Latest reply on Jul 22, 2013 by michel.paul_henri
I have some weird problems with my STM32f4 07 VG board for many days.
First, each debug session launches an error message : no source available for ""

Secondly, there is a problem with address memory, I have such a code in my main program  :
float32_t var;               function(&var);

And a function :

void function(float32_t* x){                  *x = 1.;     }

 

But, oddly, when I debug this code, the x address doesn't fit the var address (x address is 0x00000000 pointer in function) and the value of var is not 1 after function calling. Why do I have this problem ?
In fact, the debugger seems to be broken, during a debugging session, various instructions are omitted... like for loop...

I use the GCC GNU ARM compiler (with CooCox IDE) with these options :

-mcpu=cortex-m4; -mthumb; -Wall; -ffunction-sections; -g; -O0; -fno-builtin; -DSTM32F407VG; -DSTM32F4XX; -I.;
Sorry for my english...
Thks.

Outcomes