This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Add USB_Stick_Update as a binary file to my project

Hi,

I would like to add the USB_Stick_Update.bin to my project. USB_Stick_Update.bin is a bootloader that looks for a USB stick and when it finds the file FIRMWARE.bin, it loads this file starting at 0x03800.

I would like to load the USB_Stick_Update.bin file at 0x0000 and my application program at 0x03800.

This is what I have tried:

Put this code that is highlighted into the startup_rvndk.s file

AREA Bootloader, CODE, READONLY

INCBIN .\\source\USB_Stick_Bootloader.bin

ALIGN

AREA |.text|, CODE, READONLY

Changed the *sct file to this:

;******************************************************************************

LR_IROM2 0x00003800 0x00040000

{ ; load region size_region

ER_IROM2 0x00003800 0x00040000

{ ; load address = execution address

*.o (RESET, +First)

*(InRoot$Sections)

.ANY (+RO)

}

RW_IRAM 0x20000210 0x00017df0

{ ;

; Uncomment the following line in order to use IntRegister().

; ;* (vtable, +First)

* (+RW, +ZI)

}

}

LR_IROM1 0x00000000 0x000037FF

{

ER_IROM1 0x00000000 0x000037FF

{ ; load address = execution address

Bootloader.o (+RO)

}

}

I get warnings:

safertos_demo.sct(29): warning: L6314W: No section matches pattern *(InRoot$Sections).

safertos_demo.sct(46): warning: L6314W: No section matches pattern Bootloader.o(RO).

What am I doing wrong?

Jay