This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

M4 flash boot fails

hi

 I am using a stellaris LM4F232 EVM to evaluate my program. I can download my program to flash from a emulator and run it. I can push reset button to let it re-start from the flash. However, whenever after I power cycle the EVM (un-plug the USB ad put it back), the program can not be started any more.

 From debugger, I saw that it can still go into _c_int00 but it failed in _ti_auto_init. An fault except is thrown out. The configurable Fault status register(0xE000ED28) logs 0x00008200 which indicates bus error. This is very repeatable. 

 If I run TI  examples, it can always boot from flash. Could anyone give me some hint where I missed in my program that make the program not working after power cycle?

Thanks a lot!

Eric

 

 

  • Hi Eric,

       What debugger are you using?

       Did you start your program based on one of the TI example projects?

       Are your sure you code is not executing at all from power up? 

    - Ken

  • Hi Ken

      Thank you for you reply!

      I am using CCS4.2 with the TI Stellaris M4F on board ICDI emulator.

      I think I started the project with a TI example but made a lot of changes already.

      The code actually executed from power up but because of a bus error, it jumps from _ti_auto_init to the fault handler. I have a systick generated LED blinker on the EVM. So, I can tell whether the application is executing or not. 

      the confusing part to me is why that _ti_auto_init works with emulator download but not after power cycle.

      I am a TIers with HPA. So, I can send you any code if you need.

    Thanks a lot!

    Eric

     

  • Hi Ken

      I found the problem. cinit is mistakenly assigned to RAM space. That is why after power cycling, it could not start.

    Thanks...

    Eric