Reply by kci419 August 13, 20102010-08-13
Dear sir.
I am trying to write other firmware into code bank of flash using the functions in sram region.
In this case, when I executed the code in step by step, writing OK, but when I executed the code normally, writing FAILED.
I think that such problem is related to interrupt handler.
Please help me.

--- In A..., Alexander Whiplash wrote:
>
> This error can occur when you are executing code or accessing data from the same
> bank of flash that you are trying to write or erase. It is not allowed for any
> combination of addresses. However, some of the larger AT91SAM parts have 2
> banks. In those you can write/erase one bank, and maintain normal access to the
> other.
> AW
>
> >
> >From: kci419
> >To: A...
> >Sent: Tue, August 3, 2010 7:50:01 PM
> >Subject: [AT91SAM] Internal Flash control in AT91SAM9XE
> >
> >
> >How are you?
> >
> >I am sorry, my english is not so good.
> >I am a user developing the AT91SAM device using IAR.
> >I want to write data in internal flash of at91sam9xe device from host via usb
> >communication.
> >I am controlling using eefc module provided in at91sam9xe.
> >When I try to write data received from host into internal flash via usb port,
> >occur "prefetch handler" error.
> >error location is "EFC_performcommand" function that declared to "__ramfunc"
> >attribute.
> >
> >Please tell me how to resolve this problem.
> >
> >Thanks for your help.
> >
> >
>

Reply by Alexander Whiplash August 10, 20102010-08-10
This error can occur when you are executing code or accessing data from the same
bank of flash that you are trying to write or erase. It is not allowed for any
combination of addresses. However, some of the larger AT91SAM parts have 2
banks. In those you can write/erase one bank, and maintain normal access to the
other.
AW

>
>From: kci419
>To: A...
>Sent: Tue, August 3, 2010 7:50:01 PM
>Subject: [AT91SAM] Internal Flash control in AT91SAM9XE
>
>
>How are you?
>
>I am sorry, my english is not so good.
>I am a user developing the AT91SAM device using IAR.
>I want to write data in internal flash of at91sam9xe device from host via usb
>communication.
>I am controlling using eefc module provided in at91sam9xe.
>When I try to write data received from host into internal flash via usb port,
>occur "prefetch handler" error.
>error location is "EFC_performcommand" function that declared to "__ramfunc"
>attribute.
>
>Please tell me how to resolve this problem.
>
>Thanks for your help.
>
Reply by kci419 August 6, 20102010-08-06
Dear sir.
How are you?

I want to write data in internal flash of at91sam9xe512 device from host via usb communication.
I am controlling using eefc module provided in at91sam9xe512.
When I try to write data received from host into internal flash via usb port, occur "prefetch handler" error.
But if don't configure VBUS(related USB), no error.
error location is IAP_PerformCommand call in "EFC_performcommand" function that declared to "__ramfunc" attribute.
It seems to me that error is related to irq handler.

Please tell me how to resolve this problem.

Thanks for your help.

Reply by kci419 August 4, 20102010-08-04
How are you?

I am sorry, my english is not so good.
I am a user developing the AT91SAM device using IAR.
I want to write data in internal flash of at91sam9xe device from host via usb communication.
I am controlling using eefc module provided in at91sam9xe.
When I try to write data received from host into internal flash via usb port, occur "prefetch handler" error.
error location is "EFC_performcommand" function that declared to "__ramfunc" attribute.

Please tell me how to resolve this problem.

Thanks for your help.