how to program spi flash from codewarrior

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to program spi flash from codewarrior

782 Views
kevincarney
Contributor I

We want to load u-boot from eSPI flash on our P1021 based board.  How can we write our boot image to the eSPI flash with CodeWarrior?

Labels (1)
0 Kudos
1 Reply

426 Views
lunminliang
NXP Employee
NXP Employee

Hello Kevin Carney,

If you are using a flash the CodeWarrior for PA supported, you could use the flash programer directly. Please refer to P1021RDB_SPI_FLASH.xml under C:\Freescale\CW_PA_v10.4.0\PA\bin\plugins\support\TargetTask\Flash_Programmer\QorIQ_P1\ for the PA Flash Programmer Task configuration. Basically using the tool contains there parts, crate a flash programmer target task, configure flash programmer target task and execute flash programmer target task. You could find detail steps in the document Targeting_PA_Processors.pdf, see section 11.1 Flash programmer, the document is located in C:\Freescale\CW_PA_v10.4.0\PA\Help\PDF.

If you are using a flash not supported in the CodeWarrior for PA, please refer to the document AN4349 Adding Devices to the CodeWarrior Flash Programmer for Power Architecture Processors.pdf, which tells how to create a flash device XML configuration file, create new target task, create external flash algorithm, create new flash utility and Flash utility examples.The document could be download from:

http://cache.freescale.com/files/soft_dev_tools/doc/app_note/AN4349.pdf


Have a great day,
Lunmin

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos