Insert a binary resource

Content originally posted in LPCWare by pfc on Tue Mar 18 05:26:04 MST 2014I need to insert a binary image from file into my project. I just can't see how to add this as a resource into the IDE. I have tried Properties - Resource - Linked Resources but I can't add anything here as there is no 'Add' button. I am going round in circles and I'm sure I'm missing something obvious. A pointer in right direction would be appreciated.

Content originally posted in LPCWare by lpcxpresso-support on Tue Mar 18 05:41:11 MST 2014What type of resource are you trying to add? And what will you do with it once you have added it to the project?

If it is just a file, you can drag/drop it from a file browser into the Project Explorer.

Content originally posted in LPCWare by pfc on Tue Mar 18 06:49:36 MST 2014I have a project with a secondary bootloader that is working, and I can upload code from file on USB and execute this code. However I now need to make some changes to the secondary bootloader so I plan to include the new .bin file for the secondary bootloader with the main project and then use this to flash the new sec. bootloader code in. I need to be able to include this binary data and get a pointer to it so I can reprogram the sec. bootloader from it.

Content originally posted in LPCWare by lpcxpresso-support on Tue Mar 18 07:18:00 MST 2014I'm not sure I understand why you think you need to do this, but you probably want to use the .incbin directive in the assembler. Basically,- create an assembler file in your project- use the assembler ".incbin" directive to include your binary data (search the Help for more information)- define labels around your binary data so you know where this data starts and ends- reference these labels in your C source

I am also in the same situation like above but not able to find the answer.

my questions are

1. how do i create assembler file ?

2. How do i use .incbin directives? or .incbin is available anywhere in the project directory?

3. where i have to define labels of my bin file?

I have seen & understand the below descriptions from help but i don't know how to use this

Incbin - Using as

.incbin "file"[,skip[,count]]

The incbin directive includes file verbatim at the current location. You can control the search paths used with the ‘-I’ command-line option (see Command-Line Options). Quotation marks are required around file.

The skip argument skips a number of bytes from the start of the file. The count argument indicates the maximum number of bytes to read. Note that the data is not aligned in any way, so it is the user's responsibility to make sure that proper alignment is provided both before and after the incbin directive