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-AM243: Why Am243x-LP can only run in debug.

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

Hello TI support team.

We got the am243x-LP board.

Everything it seems run well. We can run debug or load program mode.

Program running normal when i load it to Am243-LP board.

Ex: i load  "gpio_multi_led_blink_am243x-LP_r5fss0-0", the all LED blinking well.

But i dont know why "gpio_multi_led_blink" program don't run if i power off and then power on again.

It need re load program again to run blinking LED.

I try to all the another example, the result the same.

I need re-load program again to run it if i turn off and then turn on power.

By the way, i also do carefully with the link guide: https://software-dl.ti.com/mcu-plus-sdk/esd/AM243X/08_01_00_36/exports/docs/api_guide_am243x/EVM_SETUP_PAGE.html#EVM_FLASH_SOC_INIT

and here is the result in UART BOOTMODE:

                  

in OSPI mode:

thanks!

  • Hi, 

    Thanks for your query.

    Are you using the SBL NULL flow or CCS load_dmsc.js based load?

    Do you do CPU reset before loading the program? If not, can you please try doing CPU reset from CCS and then load program.

    Regards,

    Prasad

  • Hello Prasad,

    Are you using the SBL NULL flow or CCS load_dmsc.js based load?

    ->If i don't misunderstand now using SBL NULL.

    ->As you can see in this picture below is the progress i load "gpio_multi_led_blink" program:

    Do you do CPU reset before loading the program?

    ->Can you show me how to reset CPU by CCS?

    thanks!

  • ->Can you show me how to reset CPU by CCS?

    After reset core should look like below -

  • Hello Prasad,

    I do exactly with your suggestion. I reset CPU and load program into, but it have the same isssue.

    It is a abnormal issue, this is the first time i work with MCU that need re-load to run program.

    I dont understand why  program don't normal work if turn off power and then turn on again. 

    thanks alot!

  • Hi Duong,

    We have not seen this issue from any customer or internally.

    To understand the possible reasons -

    1. Please share exact sequence you follow while loading the program

    2. What is boot mode

    3. Did you flash SBL NULL into OSPI? If yes, which version?

    4. What version of CCS you are using?

    Regards,

    Prasad

  • Also, can you please try with latest version of SDK? We have released SDK8.3 recently. You can give it a try.

  • hi,

    1. Please share exact sequence you follow while loading the program:

    I will share sequence on "gpio_multi_led_blink" project:

          1.1 Project->clean 

          1.2 Project->build

          1.3 Run-> load(gpio_multi_led_blink... hex file)

    2. What is boot mode

          Using:  QSPI mode with switch config bellow:

              

    3. Did you flash SBL NULL into OSPI? If yes, which version?

          I think i did it

                         

    4. What version of CCS you are using?

             CCS version: ccs1120 like PIC bellow

             i already using lastest SDK+MCU: mcu_plus_sdk_am243x_08_03_00_18 like PIC bellow

    Do you retest with AM243x-lp. Loading any program and then power off-> power on for check normal work Mr  Prasad.

  • i just update for your question.

  • Hi Duong,

    Attaching the screen recording of my flow. I am able to load binary without reloading. Can you please check any difference you see with your flow?

    Regards,

    Prasad

  • hello again,

    may be you are misunderstand i mean.

    I can run or debug normally.

    I have only issue: when i make mass product with AM243x TI chipset.

    I load the "gpio_multi_led_blink"  example in to Am243x board(LED run blinking normaly), I turn off power and then turn on power, the Am243x boad don't run any more(LED don't blink)

    I need re-load   "gpio_multi_led_blink" to run blinking LED.

    If so we can not send board to our customer. Becaus board run only one time normaly after flash firmware. 

    If i tunr off power and return on power Am243x board don't run. You can see detail in my video.

    I am sorry if my video not good because of using the phone to record.

    The video record is the same with us, i try to make exactly with your video it the same my issue.

    Thnaks.

  • Hi Duong,

    Now, I understood what you want to do. This is simple.

    Please try below -

    Flash SBL ospi and appimage using uniflash tool (you will need to configure board in Uart boot mode during flashing)

    AM243x MCU+ SDK: Flashing Tools (ti.com)

    1. Please flash sbl_ospi (instead of SBL NULL). Prebuilt is located at - mcu_plus_sdk_am243x_08_03_00_18\tools\boot\sbl_prebuilt\am243x-lp\sbl_ospi.release.tiimage

    2. Flash application image. In your case,  it should be located at C:\Users\xyz\workspace_v11\gpio_led_blink_am243x-lp_r5fss0-0_nortos_ti-arm-clang\Debug\gpio_led_blink_am243x-lp_r5fss0-0_nortos_ti-arm-clang.appimage

    3. Make sure flashing completes successfully.

    4. Change boot mode to OSPI

    5. Reset the board. Now application should run without CCS. 

    Let me know if any issues.

    Regards,

    Prasad

  • Hi Duong,

    Please let us know if your issue is resolved. If not, please do share issue you are facing.

    Regards,

    Prasad

  • Hello Prasad,

    Sorry for my late. I have a biztrip last time period.

    Now i will check this immesidately.

    This is all step i make follow your guide me.

    Step1: set to UART mode

    Step2: check virtual comport:

    - Application (COM18)

    - Auxiliary (COM17)

    Step3: link to path file:

    - Choose (COM18)

    - Flash Write Binary:  "sbl_uart_uniflast.release.tiimage"

    - Boadloader Binary:  "sbl_ospi.release.tiimage"

    - Appimage Binary:    " ...\workspace_v11\gpio_led_blink_am243x-lp_r5fss0-0_nortos_ti-arm-clang\Debug\gpio_led_blink_am243x-lp_r5fss0-0_nortos_ti-arm-clang.appimage"

     

    Step 4: Press Flash button

          

    Step 5: Reset AM243x-LP board

    Step6: Change to OSPI mode:

    ==>>Step7: check result, Board still not work.

    I re-check Comport on CCS:

    Please help me!

  • Hi Duong,

    Did you confirm that flashing for all the images is completed? GUI would give pop up message about the flashing success.

    Also, make sure to power cycle the board after flashing and after the boot switches are changed to OSPI.

    Regards,

    Prasad

  • HI Prasad,
    Yes, all the image is loading completed.

    I loaded 3 image as bellow, do i make it right?

    - Flash Write Binary:  "sbl_uart_uniflast.release.tiimage"

    - Boadloader Binary:  "sbl_ospi.release.tiimage"

    - Appimage Binary:    " ...\workspace_v11\gpio_led_blink_am243x-lp_r5fss0-0_nortos_ti-arm-clang\Debug\gpio_led_blink_am243x-lp_r5fss0-0_nortos_ti-arm-clang.appimage"

    thanks!

  • Hi SI,

    Sorry for late response. I was on vacation last week.

    Can you please share all binaries/images?  Let me give a try on my set up.

    Regards,

    Prasad

  • Hi ,

    Can you try following debug steps -

    1. Try loading SBL_NULL again like you have mentioned above.

    2. Try using the script 'default_sbl_ospi.cfg' modify it according to your application path. Reason - This will make sure to flash the PHY tuning data in the Flash block. This is not done via GUI.

    Do let me know more, if you have any leads.

    Best Regards,
    Aakash