How to modify the eboot assembly code to make the eboot after the end of the execution can jump to NK download? RRS feed

  • Question

  • I'm using a Freescale IMX.283 EVK development board.
    I want to accomplish the following functions in the UUT works:
    Before downloading NK erase NAND FLASH operation.

    Who can give me the steps and the need to modify the code?  Thank you!

    Tuesday, February 25, 2014 1:47 AM

All replies

  • Thats a fairly simple process.

    If you want to erase before downloading the NK image,use one of the Erase API's (that suits your memory,could be SPI,NOR,NAND..) mentioned in the Flash.c.

    NK image download starts when BL_DOWNLOAD case of the switch function is executed in OEM_PREDOWNLOAD in your main.c

    So put the erase API in the OEM_PREDOWNLOAD and that should get the job  done

    I have erased SPI-NOR in the Same way and I am sure this would work :)


    Please mark as answer, if useful.

    Wednesday, March 5, 2014 6:04 AM
  • AFAIK, the NAND ERASE will be done BY DEFAULT before NK.bin is flashed.

    Because, you can't WRITE the NAND flash block without an ERASE.

    But, if you want to erase the complete NAND (not only the NAND portion where you store NK.bin), you can use Flash erase API (may be like NANDFMD_EraseBlock(BLOCK_ID blockID)).

    • Edited by Keshava GN Thursday, April 14, 2016 10:15 AM
    • Proposed as answer by Keshava GN Thursday, April 14, 2016 10:16 AM
    Wednesday, March 5, 2014 7:25 AM