Pre-programming SPI flash for FX3

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi,

   

I was wondering if there was a method of creating a hex file that can be used to pre-program the SPI flash used for the FX3 with a programmer before hand?

   

We prefer this method as the process is more controlled and more efficient when the design enters full production.

   


As of right now, the only method I can see is through the control center, but we would like to pre-program them before the memory ICs are placed on the PCB.

   

Thanks,

   

Mike

0 Likes
1 Solution
Anonymous
Not applicable

 Hi  Mike,

   

 

   

You can just rename the extension of generated Image file (.img file) as .hex, because the  binary inside isn't affected. You can just program that hex into SPI Flash using any flash programmer software that you have.

   

The control center does do anything to the content of the image file or add anything to it. So, you can simply convert the image file inot hex file by renaming and program it.

   

Regards,

   

- Madhu Sudhan

View solution in original post

3 Replies
Anonymous
Not applicable

 Hi  Mike,

   

 

   

You can just rename the extension of generated Image file (.img file) as .hex, because the  binary inside isn't affected. You can just program that hex into SPI Flash using any flash programmer software that you have.

   

The control center does do anything to the content of the image file or add anything to it. So, you can simply convert the image file inot hex file by renaming and program it.

   

Regards,

   

- Madhu Sudhan

NoriTan
Employee
Employee
25 sign-ins 5 questions asked 10 sign-ins

Madhu,

Is the IMG file written in the Intel-HEX format?

Regards,

NTAN

0 Likes
Anonymous
Not applicable

Hi ntan​,

No, the IMG file is not written in intel hex.

For more details, please refer section 4.4 (Boot Image format) in the below App Note:

AN76405 - EZ-USB® FX3™/FX3S™ Boot Options | Cypress Semiconductor

Regards,

- Madhu Sudhan

0 Likes