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.

Error after I debug the program on TMS570LS3137 USB stick.

Other Parts Discussed in Thread: HALCOGEN, TMS570LS3137

Hi,

I am new to TI MCUs and I have started with the demo videos on youtube and the examples in halcogen installation folder.

I have a problem loading the program to TMS570LS3137 , I have followed each and every step in the video 12 bit adc (www.youtube.com/watch?v=YOBWhFE0LZg) and also the adc_display example for TMS570LS31x . After I debug the file and press PORRST button on the board , I get an error in the console window :
Dap: Error: (Error -242 @ 0xFFFFFF0E) A router subpath could not be accessed. The board configuration file is probably incorrect. (Emulation package 0.0.0.0)

Please help me fix this issue and I would appreciate if you can suggest me some tips, tutorials and examples to get familiar with TMS570LS31X.

Thank you.

  • Shivaram,

    This isn't an error really because when you press the nPORRST button it resets the TAP (JTAG) on the MCU which makes CCS a little crazy because now it doesn't know what state the target is in... that's why you get the error.

    If you want to avoid the error:

    - Ctrl-Alt-C to disconnect the target.
    - Press nPORRST
    - Ctrl-Alt-C again to reconnect to the target

    As long as you are disconnected from the target you can press nPORRST.

    Otherwise limit yourself to nRST -or- Debug->Reset->System Reset and you won't lose the JTAG connection.
  • Hi Anthony ,

    Sorry for the delayed response.

    I tried the steps you mentioned but the problem is I am not able to flash the program.

    Once I build the project and debug , it stops at :

    CortexR4: GEL Output: Memory Map Setup for Flash @ Address 0x0 [message from console window]

    I get the same error with the other demos too .

    Can you suggest a possible solution of this .

  • Hi Shivaram,

    That is a normal message the appears in the console. It just means the flash is mapped to it's normal address range.

    Are you actually seeing an error? Are you sure you are not just halted in main()?
    Maybe post some screenshots to give us a better idea of what this looks like?
    Thanks and Best Regards,

    Anthony

  • Dear Anthony,

    I now understand the message on the console window(i.e CortexR4: GEL Output: Memory Map Setup for Flash @ Address 0x0) is a normal message . But I still don't understand why the program's ".out" file doesn't load on the controller unless I press nPORRST.

    I was not able to see this until I tried to turn on all the NHET LEDS on TMS570LS3137 USB following the Hercules tutorial(www.youtube.com/watch?v=tsVmpH6Pm2U) , the LEDS turned on only after I pressed nPORRST and then it displays an error message in the console window(i.e. Dap: Error: (Error -242 @ 0xFFFFFF0E) A router subpath could not be accessed. The board configuration file is probably incorrect. (Emulation package 0.0.0.0) ).

    A short video clip that shows what happened after I pressed the nPORRST (www.youtube.com/watch?v=hw_VWGQxVz8).

    In other applications where I want to read the data from serial port for example: if I need to read the light sensor values,I am not able to do that because the ".out"file loads only after I press nPORRST button and I get the above error message.

  • I think the terminology here may be confusing.

    When you use CCS to load a .out file it runs to main() and halts.
    If you want to see the program *run* after loading one way is to press nPORRST which basically disconnects the debugger but that isn't elegant.

    Another way is the press the > continue button in CCS and resume execution after the breakpoint at main.