Creating binary resource-only image

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Creating binary resource-only image

593 次查看
lpcware
NXP Employee
NXP Employee
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
0 项奖励
回复
2 回复数

585 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by atomicdog on Fri Sep 09 11:42:11 MST 2011
It seems like you could just use the section attribute on the data in the new project to have the data put in the location you want.
0 项奖励
回复

585 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Fri Sep 09 08:49:40 MST 2011

Quote: wdawson61
  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. 



I thought Code Red had a Linux version of Red Suite 4. Maybe you should check with them.
0 项奖励
回复