How to write specific address?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to write specific address?

922件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by vincent.chow.eb on Thu Feb 05 19:31:31 MST 2015
Hi, I'm using LPC1766, and LPCxpresso with LPC-LINK2. How could I write specific values to specific address to the flash please?

sry I'm new to the IDE, thx for help!
0 件の賞賛
返信
5 返答(返信)

888件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by vincent.chow.eb on Mon Feb 09 03:31:23 MST 2015
Hi, thx for the details.

I'd like to use the lpc-link2 as production flash programmer. Is lpcxpresso the right tool? thx!
0 件の賞賛
返信

888件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Fri Feb 06 06:51:27 MST 2015
The reason why the page says you don't need to use it with LPCXpresso IDE is because LPCXpresso by default downloads it own firmware to the LPC-Link2 when you start debugging.

Anyway the tools that we supply with LPCXpresso IDE for use with LPC-Link2 are not designed to edit flash contents in the way its sounds like you want.

Whether you can do this in a straightforward manner depends where the address you need to program is. If it is in its own sector - unused by the application code - then you could just create a binary containing the required values and program them into the address.

But if you need to merge your values into the middle of the application image (i.e. so the values you need to program are mixed into the same sector of flash as the application code), then you would need to download the image, modify the appropriate bits in the binary, then download the image again.

Here's some more reading for you.

http://www.lpcware.com/content/faq/lpcxpresso/command-line-flash-programming
http://www.lpcware.com/content/faq/lpcxpresso/import-export-memory

If you need further advice, I suggest you post full details of what you need to do.

I'm sure others will be able to make suggestions of other tools and methods you could use.

PS - you might want to check the license on the J-link firmware for LPC-Link2...
https://www.segger.com/lpc-link-2.html

Regards,
LPCXpresso Support


0 件の賞賛
返信

888件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by vincent.chow.eb on Fri Feb 06 03:10:48 MST 2015
I also come across with this info, saying I could use lpc-link2 as j-link, then i could use the J-flash tool for flash programming.
http://www.lpcware.com/lpclink2-config-tool

but there is a statement saying
"If you are using LPC-Link 2 or LPCXpresso V2/V3 boards with the LPCXpresso-IDE, you do not need to use this tool."

so I believe the lpcxpresso-ide could provide the same functionality? Where could I load in the image file, and edit certain bytes before programming?


Or, could I create a short binary file with a few bytes, then program to the destination address? Is there any endian or compatibility issue? Thanks!!
0 件の賞賛
返信

888件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by vincent.chow.eb on Fri Feb 06 02:15:04 MST 2015
Hi,

Here is my use case:

I have a device developed by by a partner company who programs the firmware using other tool (Keil MDK, iirc). My task is to program unique MAC addr and serial number into different device for manufacturing. I've been given the address to program, and I'd like to use LPC-LINK2 to achieve it. Obviously, I dont want to screw up the firmware / code inside.

Could you advise if I am on the right track? Thanks!
0 件の賞賛
返信

888件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Fri Feb 06 02:02:01 MST 2015
In the first place, read http://www.lpcware.com/content/faq/lpcxpresso/placing-data-address

If you want further advice, please provide more details of what you are actually trying to achieve and why.

Regards,
LPCXpresso Support
0 件の賞賛
返信