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.

AM6548: AM65xx IDK - Testing SBL with XIP example

Part Number: AM6548
Other Parts Discussed in Thread: UNIFLASH

Hello TI,

I am trying to test the XIP mode from the OSPI Flash.

Therefore I am using your example application which is prvovided in your PDK. Unfortunately I am not happy with my results so far and I cant find any erros. 

These are the steps which I do.

1. Install Flash Programmer
C:\ti\uniflash_6.1.0\dslite.bat --mode processors -c COM14 -f C:\ti\uniflash_6.1.0\processors\FlashWriter\am65xx_idk\uart_am65xx_idk_flash_programmer.tiimage -i 0

2. OSPI Image dem Flash Programmer übergeben
C:\ti\uniflash_6.1.0\dslite.bat --mode processors -c COM14 -f C:\ti\pdk_jacinto_07_00_00\packages\ti\boot\sbl\binary\am65xx_idk\ospi\bin\sbl_ospi_img_mcu1_0_release.tiimage -d 3 -o 0

3. Write SysFW
C:\ti\uniflash_6.1.0\dslite.bat --mode processors -c COM14 -f C:\ti\pdk_jacinto_07_00_00\packages\ti\drv\sciclient\soc\V0\sysfw_sr2.bin -d 3 -o 40000

4. Load XIP Entry
C:\ti\uniflash_6.1.0\dslite.bat --mode processors -c COM14 -f C:\ti\pdk_jacinto_07_00_00\packages\ti\boot\sbl\example\k3MulticoreApp\binary\am65xx\sbl_baremetal_boot_xip_entry_am65xx_idk_mcu1_0TestApp_release.appimage -d 3 -o A0000

5. Load Xerf
C:\ti\uniflash_6.1.0\dslite.bat --mode processors -c COM14 -f C:\ti\pdk_jacinto_07_00_00\packages\ti\boot\sbl\example\k3MulticoreApp\binary\am65xx\sbl_baremetal_boot_xip_test_am65xx_idk_mcu1_0TestApp_release.xer5f.bin -d 3 -o E0000

Afterwards I change the boot mode from UART to SBL and power cycle the board.
The SBL message and SysFW message turn up on the terminal but the application does not start.

According to you app guide it should show

 „MCU1_0 running„
https://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-jacinto7/latest/exports/docs/pdk_jacinto_07_00_00/docs/userguide/boot/boot_jacinto.html#testing-the-sbl

Is there anything else to consider?

best regards

Niko

  • Hi Niko,

    Some question:

    1. Do you use the AM65xx PG2 or PG1 SoC? This will determine the version of the sysfw you have to flash. If it is PG2 then the version you use in step3 is OK, else this needs to change.

    2. In case sysfw is correct then - in step 2 can you try to flash the OSPI SBL with the CUST SBL? The CUST SBL (or Custom SBL) is the one we use for XIP testing. See the link you attached - "The SBL also supports a “custom” build, in addition to standard out-of-box builds. A custom build is a useful way of testing out the effect of different build options - like when optimizing for boot time, or enabling custom usecases like eXecute In Place (XIP) to reduce memory usage."

    The cust SBL is built by "make sbl_cust_img" and *tiimage is at pdk_jacinto_07_00_00\packages\ti\boot\sbl\binary\am65xx_idk\cust\bin\sbl_cust_img_mcu1_0_release.tiimage

    3. 

    Niko said:
    Afterwards I change the boot mode from UART to SBL and power cycle the board.

    When you say change boot from UART to SBL - you need to make sure that you change from UART to OSPI boot mode. Can you please check this too?

    4. Which UART do you look at when you want to see the output?

    Regards,

    Karan

  • Hello Karan,

    this helped me a lot. I literally took the wrong sbl image. With the cust sbl image it worked perfectly!

    Now I have one more question. What are the necessary steps to make my OWN application executable as XIP?

    So far I have no clue what is to do.

    Could you please give me some step to step description or basic topics which are mandatory?

    Best regards

    Niko

    Edit:

    Follow this link to see the full answer to this question

  • Hi Niko,

    As the original question is resolved, I suggest that you create a new e2e for this - I will pick it up there. (please add the link to the new query on this one, so that it remains linked)

    Essentially the the steps 1 to 4 will remain same. The only thing that will change is the application in step5. On the new question, please add the linker and the map file of the application you want to run in XIP and also details involving the OS (baremetal or RTOS) and such details.

    The map file of the application (as it is w/o the XIP support) will give us an idea as to what section placements need to change. The idea will be to keep all the Read only and the Read write un-initialized sections in the flash and for the Read write initialized section we need to load in the flash and run from RAM.

    I will add more details to this.

    Regards,

    Karan