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.

AMIC110: Flashing AMIC110 - Retain Program after reset.

Part Number: AMIC110


Hi, 

I'm trying to flash AMIC110.

I could successfully flash AMIC110 in debug mode and it works.

But when tried to flash with Release mode, the code is not flashed. ( Flash AMIC110 such that, the program is retained even after reset of IC.)

Kindly help me out to flash the AMIC110 - in Production mode.

Software and Tools details

Compiler - CCS930

Processor SDK - processor_sdk_rtos_am335x_6_03_00_106

IPC - ipc_3_40_01_08

Code - NIMU_ICSS_BasicExample_iceAMIC110_wSoCLib_armExampleproject

Debugger - XDS110

Thanks in Advance

Regards,

Akash

  • Hi Akash,

    What tool are you using to flash your board? What was the error that you saw during flashing?

    Please also refer to AM335x booting for more information.

    Thanks and regards,

    Jianzhong

  • Hi Jianzhong,

    I use XDS110 for flashing the device with CCS version 9.3.

    I tried as per the document - Status of flashing was success but the LED are not glowing.


    Regards,

    Akash

  • Hi Jianzhong,

    I tried with document --

    Step 1 - Loaded C:\ti\pdk_am335x_1_0_17\packages\ti\starterware\tools\flash_writer\spi_flash_writer_AM335X.out

    Step 2 :

    Entered 1

    File -->C:\ti\pdk_am335x_1_0_17\packages\ti\starterware\binary\bootloader\bin\am335x-evm\gcc\bootloader_boot_mcspi_a8host_release_ti.bin

    Flashed  Image Successfully (Offset - 0x00000)

    Step 3 : Repeated Step 1 to load the flash writer.

    Entered 1

    File -->C:\ti\pdk_am335x_1_0_17\packages\ti\starterware\binary\gpio_app_led_blink\bin\am335x-evm\gcc\gpio_app_led_blink_a8host_release_ti.bin

    Flashed  Image Successfully (Offset - 0x20000)

    After disconnected the target and done power reset, GPIO starterware LED blink application works as expected which could be confirmed by LED blink.

    Now, We are trying GPIO sample project. We could flash in debug and release mode, LED blinking is working as expected. But after power reset application is not retained.

    We tried the same way as starterware GPIO LEB blink app as follows:

    Done Step 1 and 2 as mentioned above

    for application image we have only GPIO_LedBlink_iceAMIC110_armTestProject.bin

    We tried to convert .bin to _ti.bin file using following command

    We used Image Load Address 0x80000000 for application and got GPIO_LedBlink_iceAMIC110_armTestProject_ti.bin

     

    Then flashed this binary using offset 0x20000.

    Board is getting flashed successfully but the board is not getting booted up..

    Regards,

    Akash

  • Hi Akash,

    The flashing procedure you did looks correct to me. Can you try to flash the application image generated by the project build process, which is GPIO_LedBlink_iceAMIC110_armTestProject\Debug\app? You can find the command to generate this app from Project Properties -> Build -> Steps:

    Now, We are trying GPIO sample project. We could flash in debug and release mode, LED blinking is working as expected. But after power reset application is not retained.

    I don't understand here. What do you mean by "flash in debug and release mode"?

    for application image we have only GPIO_LedBlink_iceAMIC110_armTestProject.bin

    Did you generate this file by building the project?

    Thanks and regards,

    Jianzhong

  • Below is what I did on my AMIC110 ICE board for your reference. The LED blinks fine after power cycle:

    1. Create and build the PDK example project: GPIO_LedBlink_iceAMIC110_armTestProject
    2. Load executable GPIO_LedBlink_iceAMIC110_armTestProject.out to AMIC110 ICE. Run the code and LED D17 blinks. Stop the execution.
    3. Load the flash writer from C:\ti\pdk_am335x_1_0_17\packages\ti\starterware\tools\flash_writer\spi_flash_writer_AM335X.out onto the EVM. Run it.
    4. Flash the SBL
      1. Choose 1 → To FLASH an Image
      2. Enter file name: C:\ti\pdk_am335x_1_0_17\packages\ti\starterware\binary\bootloader\bin\am335x-evm\gcc\bootloader_boot_mcspi_a8host_release_ti.bin
      3. Enter offset 0x0000
      4. Wait until the flashing finishes.
    5. Reload the flash writer and run it.
    6. Flash the application image generated by the project build: 
      1. Choose 1 → To FLASH an Image
      2. Enter file name: C:\ti\pdk_am335x_1_0_17\packages\MyExampleProjects\GPIO_LedBlink_iceAMIC110_armTestProject\Debug\app
      3. Enter offset 0x2000
      4. Wait until the flashing finishes.
    7. Disconnect the board from CCS. Power cycle the board and the same LED blinks after a few seconds.
  • Hi Jianzhong,

    Method 1 -- Method suggested by Jianzhong.

    I followed all the 7 steps, verification is success, but the Led doesn't blinks after power cycle.

    Method 2 -- As per document

    I retried the steps from document, the board gets flashed and works after power cycle.

    But the final verification takes too long (approx -- 40mins). Is that normal ?

    Regards,

    Akash 

  • Hi Akash,

    Sorry for my delayed response. Here I attached the app file that I used.https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/3580.appPlease give it a try and see if it works.

    Method 2 -- As per document

    I retried the steps from document, the board gets flashed and works after power cycle.

    But the final verification takes too long (approx -- 40mins). Is that normal ?

    No, I don't think this is normal.

    Regards,

    Jianzhong

  • Hello Jianzhong,

    I have the same behavior when running the flash procedure, that the verification of the application binary takes really long or doesn't finish at all. 

    What is the expected/observed duration when you flash the application (release config)? 

    Thanks for the extensive information so far.  

    Regards
    Robin

  • Hello Robin,

    Jianzhong is out of office this week. Please ping the thread if he has not responded a couple days into next week.

    Regards,

    Nick

  • Robin,

    The flashing takes a few minutes at most for my board. I suspect your board may have some problems. Do you have another board to try?

    Regards,

    Jianzhong

  • Thank you for the response. 

    I will be out of office for the next two weeks, I'll check with a another board when I'm back. 

    Regards
    Robin

  • Robin,

    That sounds good.

    Thanks and regards,

    Jianzhong