Hi All,
I am working on creating an I2C bootloader for a C6670 and I am a little confused by the romparse utility and the associated .map file used to set the Boot Parameter Table (BPT) attached to the boot table I am creating. There does not seem to be a 1-to1 mapping between the names of the variables in the map file and the fields of the BPT (Table 2-7 & Table 3-19 in SPRUGY5B). For example, the .map file used in the post example is shown below (I am using McSDK 2.1.2.6)
section
{
param_index = 0
boot_mode = 40
sw_pll_prediv = 1
sw_pll_mult = 16
sw_pll_postdiv = 2
options = 1
core_freq_mhz = 625
i2c_clk_freq_khz = 200
dev_addr_ext = 0x50
multi_i2c_id = 0
my_i2c_id = 1
address_delay = 0
exe_file = "post.i2c.ccs"
}
Some specific questions are:
1) What names do I use to set BPT fields not shown in this example (e.g. Boot Dev Addr). Is there a definition documented somewhere? I have not been able to find anything.
2) I assume the variables sw_pll_prediv, sw_pll_mult, and sw_pll_postdiv are referring to the fields in the PLL Configuration (Table 2-7 of SPRUGY5B). How would I set the PLL Config Ctrl field?
3) Why is the dev_addr_ext (Boot Dev Addr Ext field?) used instead of the "Boot Dev Addr" field?
4) This example is for the EVM, why is the core_freq_mhz field set to 625? I thought the EVM ran at 983.04?
Any help would be greatly appreciated,
Steve