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-Q1: UNIFLASH showing success, but application is not written and will not boot

Part Number: AM263P4-Q1
Other Parts Discussed in Thread: UNIFLASH

Tool/software:

Hi Team,

My customer has been using Uniflash to flash their SBL, App, and XIP app. However, they are not able to boot their applications even though the UNIFLASH console shows a success log.

What is the cause of this and how can they avoid these false writes?

Best regards,

Mari Tsunoda

  • An additional question from the customer:

    what is the difference between UNIFLASH v.9.0 and v9.1?

    They will test on uniflash 9.1 to see if there is a difference.

  • hat is the difference between UNIFLASH v.9.0 and v9.1?

    The Latest version of Uniflash has the updated flasher binary packaged out of box and aprat from that the phy tuning offset has been adjusted for AM263Px and AM261x.

  • My customer has been using Uniflash to flash their SBL, App, and XIP app. However, they are not able to boot their applications even though the UNIFLASH console shows a success log

    Not being able to boot application does not necessarily points to false writes by uniflash.

    If it is not booting then it may be:

    1. Incorrect SBL

    2. In correct Application

    3. Flash configuration mismatch etc.

  • Hi Nilabh,

    Thanks for the response. 

    Some additional information:

    1. The SBL has only been flashed once in the beginning, and they have only reflashed the app and xip app. I assume that the SBL has not been compromised (unless their XIP app rewrites this region), because they have continued to try to reflash the app and xip app image and it results in a successful boot.
    2. Similarly to above, they are reflashing the same app image/xip image (not rebuilt) and it will result in a success. 

    Regarding flash verification for the images flashed, we previously discussed in the E2E thread that the verification procedure is not in place for AM263Px devices for uniflash. 

    (+) AM263P4-Q1: Verify Flash Loaded Successfully - Arm-based microcontrollers forum - Arm-based microcontrollers - TI E2E support forums

    However, I see that with the release of Uniflash v9.2, it now supports AM263x flash verification (no indication of AM263Px). Does this also include AM263Px flash verification as well?

    UniFlash 9.2.0 Release Notes

    Going back to the original issue, I am thinking it is likely that flash configuration mismatch is the root issue. However, my customer has already had so many issues with checking the flash config file and not being able to determine the root issue. Before diving into this again, is there any other possible causes?

    Could you also elaborate on what Uniflash success log indicates (originally in older version ie v9.0 or v9.1) if no verification was originally being done? Does it mean that flash_write was executed but there is no checks as to the flash image?

    Best regards,

    Mari Tsunoda

  • Also regarding:

    Latest version of Uniflash has the updated flasher binary packaged out of box

    Are you referring to the Standalone Command Line package here?

    Bets regards,

    Mari

  • if no verification was originally being done? Does it mean that flash_write was executed but there is no checks as to the flash image?

    Yes this is true. Verification is not done by default.

    Are you referring to the Standalone Command Line package here?

    No I meant the flasher.out binary

  • Hi Nilabh,

    Thanks for the response.

    However, I see that with the release of Uniflash v9.2, it now supports AM263x flash verification (no indication of AM263Px). Does this also include AM263Px flash verification as well?

    Could you also respond to this as well? I downloaded Uniflash v9.2 to check if there was a check images or verify images button, but could not see this for both AM263x and AM263Px uniflash menu. 

    So could you tell me the following:

    • Does Uniflash v9.2 support AM263Px flash verification as well?
    • Is there a specific verification button that the user can press or is the verification done when the image is loaded and therefore indicated in the logs? (ie. Does flash success log include that verification process was also successful?)

    Best regards,

    Mari Tsunoda

  • I downloaded Uniflash v9.2 to check if there was a check images or verify images button, but could not see this for both AM263x and AM263Px uniflash menu. 

    Currently verify image button is enabled for UART based flashing only. It is not enabled for JTAG based flashing.

    • Does Uniflash v9.2 support AM263Px flash verification as well?
    • Is there a specific verification button that the user can press or is the verification done when the image is loaded and therefore indicated in the logs? (ie. Does flash success log include that verification process was also successful?)

    It support image verification in UART based flashing mode only, i.e device should be in UART boot mode and the Uniflash tool should use serial mode for flashing.

    Yes if UART mode is selected the verify image button will appear.