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.

Is it possible to invoke C6657 RBL within a program ?

We want to load and execute different programs from SPI NOR Flash from within a running program.

As I understand from SPRUGY5B, at device reset the RBL generates a Boot Parameter Table in L2RAM, depending on the state of the Bootmode Pins, and starts execution. So it should be possible to create a custom Boot Parameter Table in L2RAM which points to a specific start address in SPI Flash, and then call the RBL.

Which additional steps are required? Do we need to setup other variables / stack, etc. before the RBL code can be used?

What is the RBL entry address for this procedure?

Example Boot Parameter Table:

length = 0x0028
checksum = 0x0000  // no checksum
boot_mode = 50 // SPI
portNum = 0
swPllCfg_msw = 0 // no PLL initialization required
swPllCfg_lsw = 0
options  = 1 // load boot table
addrWidth = 24
nPins = 4
csel = 0x0002 
mode = 2
c2tdelay  = 1
cpuFreqMhz = 1000
busFreqMhz = 30
busFreqKhz = 0
read_addr_msw =  0x0010  // load new application starting at Flash Address 0x10.0000
read_addr_lsw = 0
next_csel = 0
next_read_addr_msw = 0
next_read_addr_lsw = 0

Thanks!

-- Bdolf