This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

trace settings for SAME70

Dear all,

I use the SAME70 that is a 300MHz Cortex M7 device with a JLINK Debugger. I tried to use the trace facility with no success. As soon as I switch on the trace facility the startup 'hangs' in the function dbg_task_switch().
I assume it is related to the CPU core clock setting. However it is unclear to me how to do it. The device starts at 4MHz, then it get usually switched to 120MHz and finally to 300MHz. I found a note on the KEIL website saying that you should adjust the clock manually just before the clock is switched. However that is very slow and time intensive and also I the corresponding entry in the dialog box is grayed out in debug mode. So it's not possible to change it.
Anyone using successfully the trace feature with the JLINK Debugger on a SAME70?

Best Regards
Markus

Parents
  • I dig into the problem a little bit further.
    It seems to me it is somehow related to what happens in __main (not main() ). The startup code jumps into __main but never comes back. If I stop the execution I always hang at the line while (ITM_PORT31_U32 == 0U) in the above mentioned function. So for some reasons the debug task switch is called even before the operating system is started.
    If I use the prepared RTOS examples I don't have the problem - but also no output in the EventViewer.

    Best Regards
    Markus

Reply
  • I dig into the problem a little bit further.
    It seems to me it is somehow related to what happens in __main (not main() ). The startup code jumps into __main but never comes back. If I stop the execution I always hang at the line while (ITM_PORT31_U32 == 0U) in the above mentioned function. So for some reasons the debug task switch is called even before the operating system is started.
    If I use the prepared RTOS examples I don't have the problem - but also no output in the EventViewer.

    Best Regards
    Markus

Children