Hi,
I’m trying to boot directly from SPI NOR FLASH (without using the I2C) using the MAD tool on the C6657 EVM, but it’s not working for me.
I am using these commands:
set CYGWIN=nodosfilewarning
set path=%path%;C:\Program Files\Texas Instruments\C6000 Code Generation Tools 7.4.1\bin;c:\cygwin\bin;C:\Python27
python map-tool\maptool.py map-tool\config-files\maptoolCfg_C6657_2_cores.json bypass-prelink
echo ** Create BTBL (Bootable file) **
mad2hex.exe c6657-le.bin c6657-le.btbl
echo ** Create SPI file (Convert boot table into multiple blocks) **
b2i2c c6657-le.btbl c6657-le.btbl.spi
echo ** Create CCS file (Convert into CCS dat file format plus a header for SPI) **
b2ccs c6657-le.btbl.spi c6657-le.spi.ccs
echo ** Create SPI CCS file (Merge SPI boot parameters and boot tables) **
romparse nysh.spi.map
echo ** Create LE CCS ASCII dat file (Swap bytes for Little Endian) **
byteswapccs SerialRom.ccs spirom_le_swap.dat
echo ** Create LE CCS binary file (Swap bytes for Little Endian) **
ccs2bin -swap SerialRom.ccs spirom_le.swap.bin
The .json deployment file:
{
"deviceName" : "C6657",
"partitions" : [
{
"name" : "load-partition",
"vaddr" : "0x9E000000",
"size" : "0x2000000",
"loadPartition" : true
}
],
"applications" : [
{
"name" : "core0",
"fileName" : " core0.out",
"allowedCores" : [0,1]
},
{
"name" : "core1",
"fileName" : " core1.out",
"allowedCores" : [0,1]
}
],
"appDeployment" : [
"core0",
"core1"
]
}
The .json maptoolCfg file:
{
"deploymentCfgFile" : "map-tool\\config-files\\deployment_C6657_2_cores.json",
"LoadImageName" : "c6657-le.bin",
"prelinkExe" : "prelink6x",
"stripExe" : "strip6x",
"ofdTool" : "ofd6x.exe",
"malApp" : "mad-loader\\mal\\malApp\\build\\mal_app.exe",
"nmlLoader" : "mad-loader\\nmlLoader\\build\\nml.exe"
}
And the “nysh.spi.map” file is:
section {
boot_mode = 50
param_index = 0
options = 1
core_freq_mhz = 1000
exe_file = "c6657-le.spi.ccs"
sw_pll_prediv = 5
sw_pll_mult = 32
sw_pll_postdiv = 2
sw_pll_flags = 1
addr_width = 24
n_pins = 4
csel = 0
mode = 0
c2t_delay = 0
bus_freq_mhz = 5
bus_freq_khz = 0
}
The entire process passes successfully, and I’m burning the .bin file into the FLASH using the nor writer, but there no booting.
What I’m doing wrong?
Thanks!
