Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] problem write in flash

2004-11-11 by dasbento@aeiou.pt

Hello Robert:

only a question, you want say even "Change the LENGTH parameter of
ram", not is change the length parameter of flash???


I will have the whole pleasure in contributing to the newlib-lpc
collection!!!

Regards 
       Domingos





The simple answer is no.  It doesn't reserve the space needed.  The 

simplest place to reserve it would actually be in the ld file.



As a quick fix change the following in the ld file



MEMORY {

   flash : ORIGIN = 0, LENGTH = 120K

   ram : ORIGIN = 0x40000000, LENGTH = 16K

   }



__ram_size__ = 16K;



Change the LENGTH parameter of ram: and the size of __ram_size__ to leave 

the amount of space needed at the top of ram.  You'll have to read the 

documentation I don't remember what the amount of space needed is.  Feel 

free to contribute it back to the newlib-lpc collection.  It's not been 

added so far because no-one who is contributing (including me) has needed 

and contributed the change.  It is on my list by rather low on it.



Robert


_________________________________________________________
CEAC Cursos de forma\ufffd\ufffdo profissional - pe\ufffda informa\ufffd\ufffdes aqui.:
http://ceac.online.pt/

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.