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.

LP-AM263P: LP-AM263P Flashing Issue

Part Number: LP-AM263P
Other Parts Discussed in Thread: UNIFLASH

Hi Team,

I'm using LP-AM263P Launchpad for my project. I'm facing some issue in the flashing. I'm using CCS 12.8.1 version. 

I was using release mode, for the first time I was able to flash the code but, when I tried to flash again I'm getting error mentioned in below picture. Then I changed to Debug mode and flashing was happening first time. But when I tried to re flash agian the error came.
Sometimes, I am able to flash and sometimes facing issue. Could you please let me know the solution for the same? 

Earlier the same code was working without any issue.

  • Hi Shilpa,

    To make sure your application gets written to Flash, you will have to use Flashing tools/scripts. Generally, when you load the .out file, it gets loaded to RAM and after a power-cycle, the RAM will be erased. You will have to either use the Python flashing scripts OR the UniFlash tool. The boot-mode can be OSPI, to load the image from Flash on bootup.

    To flash an application, follow this documentation:https://software-dl.ti.com/mcu-plus-sdk/esd/AM263PX/latest/exports/docs/api_guide_am263px/TOOLS_FLASH.html

    https://software-dl.ti.com/mcu-plus-sdk/esd/AM263PX/latest/exports/docs/api_guide_am263px/TI_UNIFLASH_TOOL.html

    We also have a video training on AM263Px to show flashing (its a bit old but the steps should pretty much be the same): https://www.ti.com/video/6362394255112

    Regards,
    Shaunak

  • Hi, What is the reason for the error in the snap? When I selected AM263P Launchpad as target configuration from .ccxml file, the error is not appearing. Software loaded to RAM. Why it was throwing error while selecting AM263Px as target configuration?

  • As confirmed from the output of GEL scripts, the AM263Px target is referring to the control card (AM263Px-CC). When you select the AM263Px-LaunchPad as the target (which is your actual end target) in your .ccxml file, the gel scripts are able to configure the registers properly.

    Both the evaluation boards have some differences, and my best guess is there might be some configuration that the gel script is not able to perform on the LP, which it can perform on the CC board (due to different hardware). 

    Regards,
    Shaunak

  • Okay, Thanks.

    Another question, When I tried by selecting the AM263x-LAUNCHPAD, Then I followed the below steps (attached as a link below) for flashing into the external flash through UART mode and with the Python flashing scripts able to flash. As you mentioned it earlier the boot-mode can be OSPI, to load the image from Flash on bootup, while loading the image from flash on bootup getting some issues,   CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCERROR: Board_flashOpen:205: FLASH open failed for instance 0 !!!
    ASSERT: 0.18024s: ../main.c:main:110: status == SystemP_SUCCESS failed !!!


    :://software-dl.ti.com/mcu-plus-sdk/esd/AM263PX/latest/exports/docs/api_guide_am263px/EVM_SETUP_PAGE.html#autotoc_md31


    Please let me know the steps I am following are correct here?

    Thanks

  • Hi Shilpa,

    This is a bug and is being investigated internally.

    For now, as a workaround, can you try to open the example.syscfg file for the SBL OSPI Multi-Core elf example, and disable PHY Tuning, re-build the application and then flash this modified SBL and your application?

    Regards,
    Shaunak

  • Hi Shaunak,

    I tried with your suggestions, one more thing, when I open the example.syscfg file and by default the PHY Tuning was disabled and I enabled the DMA as seen in your example but still, I am facing the same issues,



    Let me know Is there any ways to load the image from flash on bootup.

  • Hi Shaunak,

    I tried with your suggestions, one more thing, when I open the example.syscfg file and by default the PHY Tuning was disabled and I enabled the DMA as seen in your example but still, I am facing the same issues,



    Let me know Is there any ways to load the image from flash on bootup for the AM263x-LAUNCHPAD board. whereas the same procedure I followed for the AM263x-CC board, and booting is working.

  • Hi Shilpa,

    Apologies for a delay in response, I just got back in office today.

    1. Are you using UniFlash tool for flashing? If yes, can you please ensure if "LP" is selected instead of CC? In some cases, i have seen the CC mode getting forced by default even for Launchpads, causing the flashing to fail.

    2. Can you please share what SBL example you are using? Based on the SBL I have, i see there are some differences, In my case I am using OSPI Multicore ELF SBL, can you please confirm if that is the same on your end?

    Can you share your application and SBL binaries so I can try the flashing on my LaunchPad as well

    Regards.
    Shaunak

  • Hi Shaunak, Thanks for the reply.

    I have followed the link suggested by you, AM263Px MCU+ SDK: Flashing Tools. I am using the below python command on the Windows command prompt

      python uart_uniflash.py -p {name of your UART com port} --cfg={path to your edited config file}


    1. Could you please let me know where I need to verify that the LP variant is being used instead of the CC variant by default? As mentioned earlier, I am using the Python script from the command line.

    2. I am using the PWM example code for the AM263-LP, and I also tried flashing the hello_world example for the LP. However, that also did not work for me.

    Please let me know if you need any additional information from my side.

  • Hi Shilpa,

    1. You can ignore my comment for this point then as it was based on UniFlash tool. You don't need any specific setting for python script, apart from making sure you use the right .cfg scripts from the am263px-lp folder.

    2. I understand that your application is PWM or Hello World. But can you also share what Bootloader you are using? There would be a bootloader .tiimage mentioned in your .cfg script. I think it should be sbl_ospi_multicore_elf.{profile}.tiimage . You need to open the example.syscfg for that particular bootloader.

    So from your examples/drivers/boot/sbl_ospi_multicore_elf/, you will have to open the syscfg, disable PHY tuning, rebuild this SBL and then use this rebuilt .tiimage file to flash your application.

    Regards,
    Shaunak

  • Hi Shaunak,

    Thank you for your suggestions, I was able to flash by changing the .tiimage file in the .cfg script file. Now working.

    Regards,
    Shilpa