Quantcast
Channel: Processors
Viewing all articles
Browse latest Browse all 124058

Forum Post: C6670 Bootloader: How to append a boot configuration table to a boot table?

$
0
0

Hi, all

Environment description:Evm C6670, no IBL not EVM, boot from spi directly, the norflash is connected to the DSP via CS0. The norflash can read and write correctly. Now we have success on booting a dummy project(Hello World and LED flash).But we failed on booting our own project, parts of codes need to be load to DDR in our project and we guess the reason is the DDR is not config before loading the codes. Our project needs to use DDR to store some of the codes. According to my understand, maybe we should use boot configuration table to config the DDR before loading codes to L2 and DDR. Here are my question, I hope someone can help because it is urgent and has block for couple weeks.

1)Here is my .bat file , .map file and .rmd file. These three files can create the correct image if there is no need to use DDR(like my dummy project). I want to know if there are any parts I should modified when I use boot configurantion table to config DDR?Especially the options part in the spi.map file.

runscript.bat

..\utilities\hex6x -order L ..\utilities\boot_script.rmd bootcode.out
..\utilities\b2i2c boot_code.btbl boot_code.btbl.i2c
..\utilities\b2ccs boot_code.btbl.i2c boot_code.btbl.i2c.ccs
..\utilities\romparse ..\utilities\spi.map
ren i2crom.ccs spirom.ccs
copy spirom.ccs spirom_le.dat

echo generate the dat file from spirom_dat.ccs
..\utilities\byteswapccs spirom.ccs spirom_le.swap.dat

echo generate 2 bin files from spirom.ccs
..\utilities\ccs2bin   spirom.ccs     spirom_le.bin
..\utilities\ccs2bin -swap spirom.ccs spirom_le.swap.bin

 

bootscript.rmd

-a
-boot
-e _c_int00

ROMS
{
 ROM1:  org = 0x800000, memwidth = 32, romwidth = 32
 files = { boot_code.btbl }
}

 

spi.map

section {
 param_index    = 0
 boot_mode      = 50
 sw_pll_prediv = 1 
 sw_pll_mult = 20
 sw_pll_postdiv = 2
 sw_pll_flags = 1

 options = 1
 core_freq_mhz = 1000
 next_dev_addr_ext = 0x0
 c2t_delay = 0
 bus_freq_mhz = 20
 bus_freq_khz = 0
 addr_width = 24
 n_pins = 4
 mode = 1
 csel = 0
 exe_file = "boot_code.btbl.i2c.ccs"
}

 

2)According to my understanding, we should use the boot configurantion table to config the DDR.And we know what the boot configurantion table like and what each section of boot configuration table means. But we have no idea how to append the boot configurantion table to the boot table, which mentioned in the Bootloader's users' guild. Can someone gives us some examples or some advices and suggestions?Thank you!  Expect for your help or support!

Best Regards,

Karlphy


Viewing all articles
Browse latest Browse all 124058

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>