This is the mail archive of the ecos-bugs@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1001143] New: Ecos crashes when using "nop" instead of "wfi"


Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001143

           Summary: Ecos crashes when using "nop" instead of "wfi"
           Product: eCos
           Version: CVS
          Platform: stm32e_eval (ST STM3210E EVAL board)
        OS/Version: Cortex-M
            Status: UNCONFIRMED
          Severity: normal
          Priority: low
         Component: HAL
        AssignedTo: unassigned@bugs.ecos.sourceware.org
        ReportedBy: cyrillkuenzle@gmail.com
                CC: ecos-bugs@ecos.sourceware.org
             Class: Advice Request


Created an attachment (id=1118)
 --> (http://bugs.ecos.sourceware.org/attachment.cgi?id=1118)
My timers.c

I'm using the ST STM3210E EVAL board default configuration and running the
timer test (timers.c) 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.

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]