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.

how to use for Linux kernel debug



Hi,

I have one question regarding XDS560.

I heard that the I-cache/D-cache must be disabled when debugging the kernel of Linux. If you stop the execution of the code at brreakpoint without the cache disable, you can't continue the execution of the code.

Is this true? I use the XDS560STM emulator.

Please advise me.

Best regards,

Michi 

  • Michi,

    I really haven't heard anything about that; I have performed debug operations on embedded Linux systems without ever worrying about the status of the processor cache - I also checked around with some folks with more experience than I in Linux debugging and they confirmed that.

    Maybe this is something I am not aware; would you mind copying the source of this information?

    Thank you,

    Rafael

     

  • Dear Rafael-san,

    Thank you for your reply.

    According to your experience, I understood XDS560 can debug the kernel of Linux without cache invalidation.

    Probably, my customer may say other emulator, not TI. I will talk it to my customer.

    Best regards,

    Michi 

  • MIchi-san,

    Even further: all XDS emulators are able to debug the kernel of Linux without cache invalidation (not only XDS560). I used also XDS100v2 and XDS200 emulators in the past without trouble.

    Regards,

    Rafael