Content originally posted in LPCWare by wdawson61 on Thu Sep 08 18:37:42 MST 2011
Hi all. I have some binary data that I want to program at a fixed address in flash. The data is contained in c source files that were part of my main project. I now want to move them out of the main source project and create a new project that has only these tables. I then want to program them at a fixed location in flash say 0x20000. I'm having a hard time figuring out how to create a resource-only project in lpcxpresso.
I'm mainly doing this to overcome the 128k max size limit. I've purchased the code-red nxp version with a 256K download limit but don't really want to shift from Linux to Windows at this late stage in the project, so I'm trying to find a workaround for this limitation. I have external scripts / linux utilities as build steps that I'd prefer not move to Windoze right yet.
Has anyone done anything like this or can anyone recommend a solution? I've tried using ld then objcopy but I can't seem to get ld to create a pure binary file without a bunch of symbol table stuff even with -S (and -s).
Any ideas are greatly appreciated!
-Wade