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.

CCS/AM5728: Jailhouse breakpoint issue

Part Number: AM5728

Tool/software: Code Composer Studio

Hi there,

I'm working with Linux processor-sdk 05.02.00.10 and RTOS processor-sdk 4.03.00.05.

I'm using Jailhouse hypervisor on a AM5728 based custom board, on which I'm running Linux on A15 core0 and TI-RTOS on A15 core1.

Linux kernel is 4.14.79 with RT-PREEMPT patch, supplied by TI.

When I'm using CCS to debug the A15 core1 on which the RTOS jailhouse inmate is running, and I set a HW watchpoint on some address

and attempt to intentionally read this address from the RTOS side, the watchpoint gets caught properly.

When I'm using CCS to debug the A15 core0 on which Linux is running as the root cell, and I set a HW watchpoint on some address

and attempt to intentionally read this address with devmem2, the watchpoint doesn't get caught.

Can you please advise?

Thanks a lot,

Nir.

  • Hi Nir,

    Is this post a following up on thread https://e2e.ti.com/support/processors/f/791/p/872206/3236650#3236650? I wasn't quite sure I understand the situation you described in the previous thread, but this post clears my confusion, and now I understand what you try to do and the current situation.

    Okay, the CCS hw watchpoint is unable to catch the hw address access in Linux, I believe it is because Linux has MMU enabled, and physical addresses are translated to different virtual addresses.

    I never did this, but I think you can try to figure out the virtual address of the physical address you want to catch, and set the virtual address as the hw watchpoint in CCS.