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.

DM6437 I2CEEPROM Writing Problem

Hi

We are using DM6437 EVM board. We are using CCS 3.3.

We are facing some problem while writing data to I2C EEPROM. for this we are using TMS320DM643x Bootloader.

which is loacted http://focus.ti.com/docs/litabsmultiplefilelist.tsp?literatureNumber=spraa0d

As per NAND secondary boot docs (loacted in sample NAND SecondaryBoot directory)

we compiled secondery boot image for NAND flash and got nandboot_i2c.bin with the help of AIS script.

We tried to write this to I2C EEPROM using I2CWriter utility after loading the binary image (nandboot_i2c.bin )

it will be in contineous loop showing

 ..... please be patient this take a while, thanks

We kept patient for 45Min, still showing same our image size is 9KB.

Pls check the screen shots attched  I2C_EEPROM_01.jpg & **02.jpg

 

Please suggest me how to resolve the above issue.

Thanks & Regards,

Praveen

 

 

 

  • I believe you are referring to http://focus.ti.com/dsp/docs/litabsmultiplefilelist.tsp?sectionId=3&tabId=409&literatureNumber=spraag0d&docCategoryId=1&familyId=1301

    Unfortunately, we've concluded that the i2cwriter utility is not working, and we are still working on an alternative solution. The appnote will soon be updated, and then we will work on a new SW package. If you have further question, please talk to your FAE or TSR and have him contact me directly.

  • It has been a long time since I messed with these tools, they did work at one point though. Since this is I2C one idea would be to put the board in a boot mode that does not boot anything (like PCI or HPI boot), to ensure no code that is inadvertently running at power up is locking up the I2C, if you get partial I2C accesses to other devices on the EVM's I2C bus they can potentially lock it up, meaning you would get stuck waiting for ready like this. 

  • I've typically seen that behavior where the code gets stuck waiting for XRDY if a NACK occurs.  Lots more detail in the "Detecting and Handling NACK" section here:

    http://processors.wiki.ti.com/index.php/I2cTips

    I haven't played with this particular code so I'm not sure exactly what the issue is.  If it hangs right away perhaps something fundamental has changed such as a different I2C device on the board (i.e. slave address changed) and so you get a NACK when trying to address it.  I don't have time at the moment to dive deep into it, but wanted to at least throw some ideas out there.

    Brad

  • Thanks for your Inputs.

    So how can i get the working tool?

    Also we tried with SPI Secondary Boot, Created .out & then .bin using AIS utility

     Here also when we are trying to write to to SPI Flash , it erases & tries to write , but even after 30-40 mins, it is not coming out of writing. We are not sure if it is writing.

     

    We would ultimatey want to boot from Norflash. So is their any other way we can do that.

    Please let me know how cna i get the updated tools

  • Hi,

    We some internal utilities that should work, but we haven't fully tested yet. This can only be distributed through FAE/TSR at the moment. If you are interested, please contact our FAE/TSR. We are working on the updated appnote at the moment, and we are also trying to test the internal utility more thoroughly.

  • VSP said:

    We would ultimatey want to boot from Norflash. So is their any other way we can do that.

    Do you mean from a parallel NOR flash on the EMIF?  If so, why even bother with the SPI flash?  There are EMIF bootmodes as well.  Please clarify.

  • Yes from parallel Nor flash directly on EMIF that should be possible with EMIF boot mode ( -bootmode emif ??)

    BUt we want to boot thro I2cEEPROm & then applictaion to take form Norflash. Hence we were first testing with Nandboot wrt I2c EEprom booting & loading the application from NAND. BUt writing to I2cEEprom is not happening. Then we thought we can try with SPI, that also no luck.

    We will try with Direct EMIF , but can we get any standard example for this EMIF boot mode.?

    do we need to do something similar like this ?

    genAIS -otype bin -i dm6437_demo.out -o dm6437_demo.bin -bootmode emif -memwidth 8

    Load this .bin to the Nor flash?

    Let us know if any differnt approach to be consider ( the memwidth will be based on the Norflash choosen?)