Search found 6 matches

by fallentemplar
Mon Jun 22, 2015 7:02 am
Forum: STM32 Support
Topic: RT-STM32F407-DISCOVERY-MEMS -O2 -O0 Issue
Replies: 1
Views: 1534

RT-STM32F407-DISCOVERY-MEMS -O2 -O0 Issue

I was trying to run RT-STM32F407-DISCOVERY-MEMS demo on my ST Discovery board. If I modify the make file to -O0 from -O2, the board mems demo program fails to run. After setting it back to O2, the program runs again. Does anyone have any idea of why this is?
by fallentemplar
Sat Nov 10, 2012 8:15 am
Forum: General Support
Topic: Using CCM on stm32f4xx for stacks under Keil/RVCT
Replies: 13
Views: 12048

Re: Using CCM on stm32f4xx for stacks under Keil/RVCT

Thanks for the help, ditched keil and am using eclipse + gcc.. seems to work..
by fallentemplar
Sat Nov 10, 2012 2:10 am
Forum: General Support
Topic: Using CCM on stm32f4xx for stacks under Keil/RVCT
Replies: 13
Views: 12048

Re: Using CCM on stm32f4xx for stacks under Keil/RVCT

Checked, and found something pretty odd.

I have my ADC IRQ handler:

CH_IRQ_HANDLER(ADC_HANDLER)
{
<blocks of code>
}


Using this code snippet, the system would hard fault when a process is created, (the IRQ is not even called), just set up to be called.

But if I insert a return into the last ...
by fallentemplar
Wed Nov 07, 2012 11:21 am
Forum: General Support
Topic: Using CCM on stm32f4xx for stacks under Keil/RVCT
Replies: 13
Views: 12048

Re: Using CCM on stm32f4xx for stacks under Keil/RVCT

Thanks! Heapmemory did the trick, the odd thing is that events are not working (hard fault ) when I place the child process into CCM. Events work when I use static allocation onto the main RAM.
Would I have to place the main process stack onto CCM also? I tried that, didn't seem to help.
by fallentemplar
Tue Nov 06, 2012 10:44 pm
Forum: General Support
Topic: Using CCM on stm32f4xx for stacks under Keil/RVCT
Replies: 13
Views: 12048

Re: Using CCM on stm32f4xx for stacks under Keil/RVCT

Thanks, I might just try the Chibi-Eclipse, found the Keil editor to be horrible...

On another note:
What do I need to modify in cstart.s to shift the stack to CCM?
by fallentemplar
Tue Nov 06, 2012 9:16 pm
Forum: General Support
Topic: Using CCM on stm32f4xx for stacks under Keil/RVCT
Replies: 13
Views: 12048

Using CCM on stm32f4xx for stacks under Keil/RVCT

Hi,

Was just wondering how to use CCM memory for process stack memory under Keil/RVCT, for GCC there is a nice linker script example in "/os/ports/GCC/ARMCMx/STM32F4xx/ld/STM32F407xG_CCM.ld" but none for Keil...