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.

MCU-PLUS-SDK-AM263X: How to debug sbl_qspi in AM263x-LP board?

Part Number: MCU-PLUS-SDK-AM263X
Other Parts Discussed in Thread: UNIFLASH

Tool/software:

The  AM263x-LP  is in CCS boot mode(SW1:0010).

First ,I add a while loop in the main function of  'sbl_qspi_am263x-lp_r5fss0-0_nortos_ti-arm-clang'.

Then, I make the project in Debug and use Uniflash to flash the file 'sbl_qspi_am263x-lp_r5fss0-0_nortos_ti-arm-clang.tiimage'.

After, I delete the GEL files and load the symbol.

But the core runs to a wrong address:

So, what the reason for this problem and how can I debug this function?

  • Hi Xia,

    Could you please explain what exactly you are trying to do?

    If you are using sbl qspi, you need to put the board in UART boot mode and the using uniflash you need to flash it. The. Change the boot mode to ospi boot and then you would be able to see debug it further

  • Hi Xia,

    Thank you for your query.

    I tried to recreate the same SBL debug environment at my end and it works fine. Please set the Boot mode pins in LP-AM263x as mentioned in AM263x LP userguide.
    For LP-AM263x SW1 switch positions need to be set as per the below table from  AM263x LP userguide. 


    Based on the schematic below, turning ON a switch pulls the SOPx line to LOW(0) .Thus the logic '1' in above table would correspond to a logic zero on the respective SOP line.


    Please follow further steps in this e2e for debugging sbl_qspi.


    Best Regards,
    Rijohn

  • Thank you for your reply! 

    I have solved the problem. 

    I flash the sbl_qspi_xxx.tiimage file in UART Boot Mode and debug the sbl_qspi_xxx.out in QSPI(4S) Boot Mode. It works!