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.

C6678 I2C EEPROM writer error on IBL

Hello,

I tried to use
NAND boot over I2C example -
A simple Hello World example demonstrating NAND boot over I2C
and sussesfully have executed
Steps to program i2cnandboot to NAND.

Then I tried to execute following
Steps to program the EEPROM with a CCS format data file
(described in tools\boot_loader\ibl\doc\README.txt)


1. Be sure to set the boot mode dip switch to no boot/EMIF16 boot mode on the EVM.

I set Dip switches:
SW3 (off, on, on, on), SW4 (on, on, on, on), SW5(on, on, on, on) SW6 (on, on, on, on)

2. Copy the CCS format data file
to writer\eeprom\evmc66xxl\bin directory, and rename it to app.dat.

I took file i2crom_0x51_c6678_le.bin
from \tools\boot_loader\ibl\src\make\bin\

3. Change the file_name, bus_addr, start_addr and swap_data in writer\eeprom\evmc66xxl\bin\eepromwriter_input.txt if necessary.
By default the EEPROM writer will load app.dat to DSP memory and write the data to I2C slave
bus address 81 (0x51) at EEPROM device start byte address 0 with data swap disabled (0).

I used eepromwriter_input.txt file:
file_name = app.bin
bus_addr = 0x51
start_addr = 0
swap_data = 0

4. Open CCSv5 and launch the evmc66xx emulator target configuration and connect to core 0.

5. Load the program writer\eeprom\evmc66xxl\bin\eepromwriter_evm66xxl.out to CCS,
be sure
evmc66xxl.gel is used in CCS
and
DDR is intialized.

I loaded file: gel678l.gel
and
executed: Scripts -> EVMC6678L Init Functions -> Global_Default_Setup

6. Open the Memory view (in CCSv5, view->Memory Browser), and view the memory address 0x0C000000.

7. Load app.dat to 0x0C000000:
* In CCSv5, right click mouse in memory window, select "load memory".
* Browse and select writer\eeprom\evmc66xxl\bin\app.dat.
* Select the option "Use the file header information to set the start address and size
of the memory block to be loaded"
and click "next".

After this item I have got the the error message:
"NLS missing message:MemoryDumping_dialog_invalidHeaderError in:
com.ti.ccstidio.debug.ui.CCSDebugUIMessages"

I used:
Code Composer Studio
Version: 5.2.1.00018

mcsdk_2_01_02_06

TMDXEVM6678L EVM Hardware


Please explain me what I did incorrectly?

Best regards,

  • Mistake has been found already:  using   app.dat   instead of  app.bin

    Thanks for all.

  • Hello,

    I have a similar problem as you. I practice the same way as you in your description.

    When I run the programm I get an error :"Error in parsing eepromwriter_input.txt input file".

    My input.txt file:

    file_name = app.bin bus_addr = 0x51 start_addr = 0 swap_data = 0

    Can you maybe tell the mistake?

  • HI Christopher,

    Can you please post your txt file so that we can replicate this issue. I don`t see this issue with my MCSDK setup when I write the default IBL image to the EVM using the eeprom writer. Do you see this issue with the default txt file provided in the MCSDK as well or are you seeing this issue after you editted the file in an editor.

    Is it possible that you editted the eepromwriter_input.txt file in some editor that may have introduced some special characters which is causing the issue.

    Regards,

    Rahul