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.

AM263P4: TI AM263Px Reset vectors not in memory.

Part Number: AM263P4

Tool/software:

When trying to run our safeRTOS demo on the board. Despite compiling and linking without issue, the program never seems to reach main. It is seemingly stuck in the function (which I believe is part of the SDK) sprintf. I expect the vector table to be at address 0x00000000 however that is not what I see when going through the memory browser on the IDE.

 

My initial thoughts are that something is corrupted. Optimization is off and I have trampoline turned off in the linker settings as well.

 

The map file shows:

run origin  load origin   length   init length attrs members

----------  ----------- ---------- ----------- ----- -------

00000000    00000000    00000040   00000040    r-x

  00000000    00000000    00000040   00000040    r-x .safeRTOSrstvectors

 

I have tried a hardware reset before flashing but still no luck.

  • Hi Swapnil,

    Could you please help me with more info for me understand this issue better:

    1. Which SDK are you using?\

    2. Are you using TI provided port(r5f porting layer for OS)?

    3. What is your linker command file setting? Do you have vectors created as a section?

  • 1) SDK v10.2.0.15

    2) I dont think we are using a TI provided porting layer as we have our own.

    3) See below:

    SECTIONS
    {
    /* Vector sections. */
    .safeRTOSrstvectors : {} > R5F_VECS
    /* Startup code sections. */
    GROUP
    {
    .text.hwi : {} palign( 8 )
    .text.cache : {} palign( 8 )
    .text.mpu : {} palign( 8 )
    .text.boot : {} palign( 8 )
    .MPU_INIT_FUNCTION : {} palign( 8 )
    .text:abort : {} palign( 8 )
    } > R5F_TCMA.........

  • You may need to proceed with debug by putting a while loop at vectors:

    mcu_plus_sdk_am263px/source/kernel/nortos/dpl/r5/HwiP_armv7r_vectors_nortos_asm.S

    I am not aware of your own port, so it will be difficult for me to suggest. Is it possible to share the port(You can share over e2e private chat)