At 05:59 PM 11/12/04 +0000, you wrote:
>Excuse to be still in the same issue, but already upgrad the boot
>loader revision 6.3, and change the file .ld and the problem
>persist!!! in first comand "iap_entry(command, result);" the arm stop!!!
>
>I'm using LPC2129, that have 256K flash and 16K ram.
>
>Anyone can help me??
I see no one else has piped up. I can't help much since I haven't worked
on it myself but maybe I can add a pointer.
<snip>
>I changed the following:
>
<snip>
>#define IAP_LOCATION 0x7ffffff1
>
>
>void savesetup(struct SETUP *setup){
> typedef void (*IAP)(unsigned int [],unsigned int[]);
> unsigned int command[5];
> unsigned int result[2];
> IAP iap_entry;
>
> //One copy of the structure in RAM
>
> //struct SETUP setup;
>
> //Pointer to the non volatile copy
>
> //struct SETUP *nonvolatile;
> //nonvolatile = (struct SETUP*)0x38000; // Points to page 14 in Flash
>(LPC2129)
>
> //copy to RAM (if you need)
>
> //setup=*nonvolatile;
>
>
> disableIRQ();
> disableFIQ();
>
> iap_entry=(IAP) IAP_LOCATION;
> // get part ID
> command[0]=54;
> result[0]=0;
> escreve_UART0("SEIL AL ");
> iap_entry(command, result); // I do this just for a laugh
I seem to remember there being something about Thumb mode being involved
here. Either having to call as a thumb routine or from a thumb
routine. Check the user manual, also take a look through past posts there
has been a fair amount of discussion on the topic.
And if someone were to jump in and clarify...
Robert
" 'Freedom' has no meaning of itself. There are always restrictions,
be they legal, genetic, or physical. If you don't believe me, try to
chew a radio signal. "
Kelvin Throop, IIIMessage
Re: [lpc2000] problem write in flash
2004-11-15 by Robert Adsett
Attachments
- No local attachments were found for this message.