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.

RTOS/EK-TM4C1294XL: Application exit after Bios Start

Part Number: EK-TM4C1294XL
Other Parts Discussed in Thread: CC3100BOOST

Tool/software: TI-RTOS

Hi,

I am working on a TI-RTOS project. My platform is EK-TM4C1294XL. Ti-RTOS version: 2.14.0.10, XDC version: 3.32.1.22

I am not able execute the application since it is exiting or some exception happening after calling BIOS_start(). In  debugger  I can see the code is reaching loader_exit() and after that nothing is happening. I am getting some prints in the console window.

Success: Created thread for validating EEPROM memory contents
Success: Created WiFi Configuration Manager task
ffffffff.
Task stack size: 0xffffffff.
R0 = 0xffffffff R8 = 0x00000000
R1 = 0xffffffff R9 = 0xffffffff
R2 = 0x00000050 R10 = 0xffffffff
R3 = 0x00000001 R11 = 0xffffffff
R4 = 0x0002909c R12 = 0x2001236c
R5 = 0x00000000 SP(R13) = 0x20006290
R6 = 0x00028ff0 LR(R14) = 0x000218a1
R7 = 0x200004e8 PC(R15) = 0x00027a40
PSR = 0x61000000
ICSR = 0x00423803
MMFSR = 0x00
BFSR = 0x82
UFSR = 0x0000
HFSR = 0x40000000
DFSR = 0x0000000b
MMAR = 0xffffffff
BFAR = 0xffffffff
AFSR = 0x00000000
Terminating execution...

I understood that some tasks are getting created after seeing the console print for the task creation. But I dont know what is happening after the BIOS_start() call. 

Previously this code was executing successful in My PC. Now I have formatted my  PC and installed all the tools(CCS v 6.2.0, TI-RTOS 2.14.10). Now even the RTOS example imported from the resource explorer is not executing, it also gives the same error. What could be the issue? Is it due to some build configuration settings mismatch or XDC tool config issue?

I have attached the screenshots of the debug session for reference.

Please Help.

Thanks.

Shijo Thomas

  • Hmm. The examples should work. Are you sure your board is ok? If the software hasn't changed between the working and non-working case, then I start to suspect the hardware. Have you tried unplugging the board from power for a few seconds just to make sure it has been entirely reset?

    The PC and LR values shown in the exception dump shoiuld give you a clue to the mystery:

     LR(R14) = 0x000218a1

     PC(R15) = 0x00027a40

    In the disassembler window,  try disassembling from the PC value first. That will show you which instruction (or very nearly) caused the exception. From the register values at the time of the exception, you should be able to reconstruct the scene of the crime.

    If you're familiar with the ROV tool, browse to the Hwi Exception tab. This can sometimes provide a complete call stack up to the  point of the exception.

    Alan

  • Hi Alan,

    Thanks for the support.

    My board is working fine. I ran couple of example projects which is not using TI-RTOS successfully. I even connected CC3100BOOST board to EK-TM4C1294XL. I  was able to execute some IOT example projects successfully. All these projects were not using TI-RTOS. I have issue only when I am using TI-RTOS  based projects.

    I don't know how to debug and solve the issue. Can you point to an TI-RTOS  example project for  EK-TM4C1294XL board based on TI-RTOS V 2.14.0.10

    Thanks,

    Shijo Thomas

  • Did this get resolved?