[ECOS] ecos crashes when using "nop" instead of "wfi"
Cyrill Künzle
cyrillkuenzle@gmail.com
Fri Feb 4 13:22:00 GMT 2011
I'm using the ST STM3210E EVAL board default configuration and running from rom.
I changed in the hal_arch.h the line from
#define HAL_IDLE_THREAD_ACTION(__count) __asm__ volatile ( "wfi\n" )
into
#define HAL_IDLE_THREAD_ACTION(__count) __asm__ volatile ( "nop\n" )
I changed the timer as following:
- I use 2 Timers running with 10ms
- I added a busy wait in the isr of the two timers
- I toggle some pins
The result is that after a short time the test crashes.
Thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: timers.c
Type: text/x-csrc
Size: 11177 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20110204/915d6b30/attachment.bin>
-------------- next part --------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss
mailing list