Assembler, inlude binary file at fixed destination

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Assembler, inlude binary file at fixed destination

853 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kisiel on Mon Nov 11 05:36:06 MST 2013
Hello again.
I am trying to put binary file to location in the end of flash (for LPC1114 it will be last sector of 32K).
I have already tried .incbin "../src/ "  + ofset  but it is not working as I want.
Is there possible way to put 256B in last sector of Flash without using external tools ??

Thanks in advance.
0 Kudos
Reply
2 Replies

832 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kisiel on Tue Nov 12 15:03:00 MST 2013
OK, thanks for help !!!

But finally everything is working except memory content.

I put,

.section .charen  // charen $6000-$8000
.org 0
.align 4
.incbin "../src/chargen.bin"

and in memory after flash I have ff ff ff ff
0 Kudos
Reply

832 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Mon Nov 11 06:47:02 MST 2013
If you are using LPCXpresso, please read this FAQ:
http://www.lpcware.com/content/faq/lpcxpresso/placing-data-address

The principle is the same for assembler users - place the data that you want to locate in a named section, and use that section name when placing your data at an absolute address.
0 Kudos
Reply