i2c eeprom bootimage build

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

cross mob
Anonymous
Not applicable

 Hi,

   

I am using FX3, and I am new to Eclipse IDE.

   

sorry for simple question on IDE.

   

For me the USB booting is working, I am able to test BulkLoopTest with "Control Center" application.

   

here I try to boot from I2C EEPROM. 

   

From the thread, I understand that we need to change the i2c conf in the elf2img application, for creating the boot image for i2c support.

   

http://www.cypress.com/?app=forum&id=167&rID=62035 

   

In Eclipse, I created new project and tried compilation for this but it throws warning and no elf file created.

   

But for the other projects those I import are built and created.

   

1. how to compile on this?

   

2. how to create the img file using the elf2img application? 

   

FYKI, I have checked the PMODE pins for I2C booting.

   

rgds,

   

jk

0 Likes
11 Replies
Anonymous
Not applicable

Hi,

   

What is the part number of the I2C EEPROM that you are using?

   

Regards,

   

sai krishna.

0 Likes
Anonymous
Not applicable

 hi,

   

its 32K Microchip part; (I need to check the part number).

   

what about the compilation and building the image?

   

rgds

0 Likes
Anonymous
Not applicable

 Hi,

   

.img file will be created automatically when you built the project.

   

You mentioned that you are able to build the "BulkLoopTest" project and you downloaded the .img file from the USB port.

   

You can use the same .img file to programm the I2C EEPROM. If the EEPROM is not the recommended type then only you have to use the elf2img to change the header in the .img file. If you can provide me the part number then I will tell you whether you need change the header or not.

   

You are saying that you are using a I2C EEPROM of 32KB. Please check the size of the .img file that you are going to download. I don't think it will fit in to 32KB size EEPROM.

   

Regards,

   

sai krishna.

0 Likes
Anonymous
Not applicable

 Dear Sai,

   

thanks for the info; The part number is 24LC256 - 256Kbit EEPROM.

   

regards,

   

jk

0 Likes
Anonymous
Not applicable

We have tested with the 24FC1025. If you are using this EEPROM then you don't have to do any changes to the .img file using elf2img.exe

   

Thanks,

   

sai krishna.

0 Likes
Anonymous
Not applicable

 for a image file size of 130 KB how you have flashed that in your EEPROM?

   

Yours is 128KB size, so you use multiple devices?

   

-jk

0 Likes
Anonymous
Not applicable

You might be checking the debug version of the image file.

   

You may want to try with the release version of the image file. It will be of smaller size.

   

Thanks,

   

sai krishna.

0 Likes
Anonymous
Not applicable

 Even I have tested with Release - option, but no luck

0 Likes
Anonymous
Not applicable

 Hi Jk,

   

What do you mean by no luck with the release version.

   

Please give more details on the behavior that you are seeing.

   

Regards,

   

sai krishna.

0 Likes
Anonymous
Not applicable

The EEPROM you are using is much too small for the FX3 firmware. You have to use at least one 1024kBit EEPROM, as the firmware is about 130kByte in size. If you compile with release option the firmware mostly will fit into one 1024kBit EEPROM, with debug option you will need two chips.

0 Likes
Anonymous
Not applicable

 Hi Chris,

   

thanks for the info. I am in process updating the board with bigger EEPROM.

   

Hi Sai,

   

I meant that even selecting "Release" option, I am not able to fit in current EEPROM and so, the size of EEPROM is about to increased.

   

 

   

thanks and regards

0 Likes