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.

AM62A7: Uart Flash Nor Flash S28 Error

Part Number: AM62A7
Other Parts Discussed in Thread: UNIFLASH

Tool/software:

Hi TI Experts,

Customer is working on AM62A, and using UART to flash Nor Flash S28HS512 according to the below link.

https://dev.ti.com/tirex/explore/node?node=A__AD2nw6Uu4txAz2eqZdShBg__com.ti.MCU_PLUS_SDK_AM62AX__snSiJ-B__LATEST

They have 2 customer boards based on SDK9.2. For the first customer board, the nor flash could be flashed successfully, but for the other board, they will meet the below "flash verify failed !!!" error starting from the command 3 of 10. They use the same image for the flashing.

Could you please provide some clue on why the "flash verify failed !!!" error happens on the second customer board please?

Thanks,

Kevin

  • Hello Kevin,

    I am assuming the setup of the two boards you have is exactly the same. On this note as well, if it is failing, then we need to deep dive and see as to where it is failing for the second board/other board.

    Here is what you need to do.

    I have copied the following piece of code:

    respHeader->statusCode = BOOTLOADER_UNIFLASH_STATUSCODE_FLASH_VERIFY_ERROR
    from the file bootloader_uniflash.c
    The macro BOOTLOADER_UNIFLASH_STATUSCODE_FLASH_VERIFY_ERROR prints Flash verify failed !!! which is seen in your logs.
    So there is going to be debugging effort required from your end as on AM62A we have NAND flash by default on TI AM62A EVM.
    Lets say, in your case, the error logs starts from sbl_ospi_linux_stage1 then I want you to put a loop_forever() api inside this application and use a debugger to debug step by step and check where exactly the line:
    respHeader->statusCode = BOOTLOADER_UNIFLASH_STATUSCODE_FLASH_VERIFY_ERROR
    gets hit. From this point onwards we can decide our next steps. 
    Firstly find this for linux stage 1 and then we can look for others.
    Looking forward to your response.
    Regards,
    Vaibhav