compile and store constant array into external flash memory lpc1788 dev. board

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

compile and store constant array into external flash memory lpc1788 dev. board

1,116 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by hamidzzz on Tue Jan 19 06:07:37 MST 2016
Hi,

I need to store a constant variable in external flash memory of my LPC1788 development board.

Any suggestion? sample project???  (BTW I'm using Keil uvision)

thanks very much..
Labels (1)
0 Kudos
Reply
3 Replies

1,081 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by hamidzzz on Wed Jan 20 02:35:55 MST 2016
Hi MC

thank you so much for your informative reply.
Now, using your guidance, I realized that I need to define programming algorithm for my external flash device for Keil uvision (my ext. flash is k9f1g08u0c )


I know that it should no longer relate to LPC forum, but could you help me how to write the programming functions for that???
(I know there are guidelines to do so on keil website, but I little confused as I'm newbie ... ;)


Thanks again
0 Kudos
Reply

1,081 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by MikeSimmonds on Tue Jan 19 15:09:49 MST 2016
Deleted.
0 Kudos
Reply

1,081 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mc on Tue Jan 19 10:47:31 MST 2016
Hi hamidzz,
LPC1788 external static memory starts from 0x8000 0000. If you want to place  a constant DataStream array of size 3 at 0x8000 0000 you can do it as shown below.

const uint8_t __attribute__ ((at (0x80000000))) DataStream[3]={0x1,0x2,0x3};
0 Kudos
Reply