Hi All
I write a blink Led program to test the bootloader. I use mcsdk_2_00_04_16 ccs_base_5.0.3.00023 evm6678LE
Following is what I have done.
A、 User Program (boot mode = EMIF16 and Emulation Boot)
1、Write the led blink program.
2、out to bin conversion
use the tools offered by cg_xml and ccs compiler.
tiobj2bin.bat LedTest.out LedTest.bin ofd6x.exe hex6x.exe mkhex4bin.exe
3、write the bin file to NAND flash (I also tried to wirte the out file to the NAND,but still can't work)
use the mcsdk_2_00_04_16\tools\writer\nand\evmc6678l\bin\nandwriter_evm6678l.out
The content of the nand_writer_input.txt
file_name = LedTest.bin
start_addr = 16384
B、Write EEPROM (boot mode = EMIF16 and Emulation Boot)
1、copy the i2crom_0x51_c6678_le.bin from "mcsdk_2_00_04_16\tools\boot_loader\ibl\src\make\bin" to "mcsdk_2_00_04_16\tools\writer\eeprom\evmc6678l\bin"
2、use the mcsdk_2_00_04_16\tools\writer\eeprom\evmc6678l\bin\eepromwriter_evm6678l.out
the content of the eepromwriter_input.txt
file_name = i2crom_0x51_c6678_le.bin
bus_addr = 0x51
start_addr = 0
swap_data = 0
C、Configure IBL (boot mode = EMIF16 and Emulation Boot)
1、modify the file i2cConfig.gel
ibl.bootModes[1].u.nandBoot.bootFormat = ibl_BOOT_FORMAT_BBLOB; older
ibl.bootModes[1].u.nandBoot.bootFormat = ibl_BOOT_FORMAT_ELF; now
in the function setConfig_c6678_main()
2、connect core0 and load the program mcsdk_2_00_04_16\tools\boot_loader\ibl\src\make\bin\i2cparam_0x51_c6678_le_0x500.out
run the program
load the gel file i2cConfig.gel and run Srcipts->EVM c6678 IBL -> setConfig_c6678_main GEL script
several seconds later hit the Enter key to complete the IBL configuration.
D、Test
1、change the boot mode
Set the dip switches (pin1, pin2, pin3, pin4) to:
SW3(off, off, on, off),
SW4(on, off, on, on),
SW5(on, on, on, off),
SW6(on, on, on, on)
2、power on the evm board
But the Led lights on the board didn't blink.