For users of the Atmel AT91SAM7 and AT91SAM9 ARM CPU chips. Atmel has taken a new direction by combining on chip flash and ram with the ARM CPU on a single die. This provides low cost devices for small systems using the ARM CPU.
This group is to exchange information to help users get started and learn how to use the devices.
RE: Startup from reset - Paul Curtis - Jan 21 5:11:48 2008
Hi,
> Hi,
> I am using
> - CrossWorks ARM GCC V1.7 B2
> - ATMEL AT91SAM7x256-EK
> - FreeRTOS V4.7
>
> Problem:
> I've been developing an application using CrossWorks for ARM and it is
> all working with no problem.
>
> However when I try and start the application by power cycling or
> resetting the target without assistance from CrossWorks the
> application does not startup.
>
> Anyone come across same problem?
FAQ, FAQ, FAQ!
http://ccgi.rowley.co.uk/support/faq.php?do=article&articleid=40
--
Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
CrossWorks for ARM, MSP430, AVR, MAXQ, and now Cortex-M3 processors

(You need to be a member of AT91SAM -- send a blank email to AT91SAM-subscribe@yahoogroups.com )
Re: Startup from reset - hudson_low - Jan 21 6:19:54 2008
Hi Paul,
I know thats is FAQ from Rawley.
I try that but it doest work.
I even change my startup code as follow but still not working.
/*****************************************************************************
Exception Vectors
*****************************************************************************/
_vectors:
ldr pc, [pc, #reset_handler_address - . - 8] /* reset */
ldr pc, [pc, #undef_handler_address - . - 8] /* undefined
instruction */
ldr pc, [pc, #swi_handler_address - . - 8] /* swi handler */
ldr pc, [pc, #pabort_handler_address - . - 8] /* abort prefetch */
ldr pc, [pc, #dabort_handler_address - . - 8] /* abort data */
nop
ldr pc, [PC, #-0xF20] /* irq */
ldr pc, [pc, #fiq_handler_address - . - 8] /* fiq */
.....
Have i miss out something ?
H
--- In A...@yahoogroups.com, "Paul Curtis"
wrote:
>
> Hi,
>
> > Hi,
> > I am using
> > - CrossWorks ARM GCC V1.7 B2
> > - ATMEL AT91SAM7x256-EK
> > - FreeRTOS V4.7
> >
> > Problem:
> > I've been developing an application using CrossWorks for ARM and it is
> > all working with no problem.
> >
> > However when I try and start the application by power cycling or
> > resetting the target without assistance from CrossWorks the
> > application does not startup.
> >
> > Anyone come across same problem?
>
> FAQ, FAQ, FAQ!
>
> http://ccgi.rowley.co.uk/support/faq.php?do=article&articleid=40
>
> --
> Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
> CrossWorks for ARM, MSP430, AVR, MAXQ, and now Cortex-M3 processors
>

(You need to be a member of AT91SAM -- send a blank email to AT91SAM-subscribe@yahoogroups.com )RE: Re: Startup from reset - Paul Curtis - Jan 21 6:39:32 2008
There are *lots* of things listed in that FAQ which diagnose common
problems. Have you tried them all?
> -----Original Message-----
> From: A...@yahoogroups.com [mailto:A...@yahoogroups.com] On
> Behalf Of hudson_low
> Sent: 21 January 2008 11:17
> To: A...@yahoogroups.com
> Subject: [AT91SAM] Re: Startup from reset
>
> Hi Paul,
>
> I know thats is FAQ from Rawley.
> I try that but it doest work.
> I even change my startup code as follow but still not working.
>
> /**********************************************************************
> *******
> Exception Vectors
>
> ***********************************************************************
> ******/
> _vectors:
> ldr pc, [pc, #reset_handler_address - . - 8] /* reset */
> ldr pc, [pc, #undef_handler_address - . - 8] /* undefined
> instruction */
> ldr pc, [pc, #swi_handler_address - . - 8] /* swi handler */
> ldr pc, [pc, #pabort_handler_address - . - 8] /* abort prefetch */
> ldr pc, [pc, #dabort_handler_address - . - 8] /* abort data */
> nop
> ldr pc, [PC, #-0xF20] /* irq */
> ldr pc, [pc, #fiq_handler_address - . - 8] /* fiq */
>
> .....
> Have i miss out something ?
>
> H
>
> --- In A...@yahoogroups.com, "Paul Curtis"
wrote:
> >
> > Hi,
> >
> > > Hi,
> > > I am using
> > > - CrossWorks ARM GCC V1.7 B2
> > > - ATMEL AT91SAM7x256-EK
> > > - FreeRTOS V4.7
> > >
> > > Problem:
> > > I've been developing an application using CrossWorks for ARM and it
> is
> > > all working with no problem.
> > >
> > > However when I try and start the application by power cycling or
> > > resetting the target without assistance from CrossWorks the
> > > application does not startup.
> > >
> > > Anyone come across same problem?
> >
> > FAQ, FAQ, FAQ!
> >
> > http://ccgi.rowley.co.uk/support/faq.php?do=article&articleid=40
> >
> > --
> > Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
> > CrossWorks for ARM, MSP430, AVR, MAXQ, and now Cortex-M3 processors
> >

(You need to be a member of AT91SAM -- send a blank email to AT91SAM-subscribe@yahoogroups.com )Re: Startup from reset - hudson_low - Jan 21 8:37:55 2008
Yes I did try to diagnose base on my understanding:
=95STARTUP_FROM_RESET?: =96 (using FreeRTOS startup code)
=95configured to boot from ROM and enter SAM-BA Boot Assistant on
reset?; - not using SAM_BA
=95Fast Programming mode on reset rather than starting your application?
- Target options -> loader file type: Comms Channel loader. (segger Jlink)
=95The application is trying to communicate with the host?: -no host and
debug interface application.
If you don't think the cause is any of the above then you can see what
the CPU is doing by carrying out the following actions:
=95 Manually power-cycle or reset the target.
=95 Attach the debugger by selecing Debug > Attach Debugger.
=95 Break the execution by selecting Debug > Break. The debugger=20
should locate to the current instruction being executed.
->:Hang in disassembly -EAFFFFFE b 0x0000010 (spsr_fiq ?)
--- In A...@yahoogroups.com, "Paul Curtis"
wrote:
>
> There are *lots* of things listed in that FAQ which diagnose common
> problems. Have you tried them all?
>=20
> > -----Original Message-----
> > From: A...@yahoogroups.com [mailto:A...@yahoogroups.com] On
> > Behalf Of hudson_low
> > Sent: 21 January 2008 11:17
> > To: A...@yahoogroups.com
> > Subject: [AT91SAM] Re: Startup from reset
> >=20
> > Hi Paul,
> >=20
> > I know thats is FAQ from Rawley.
> > I try that but it doest work.
> > I even change my startup code as follow but still not working.
> >=20
> >
/**********************************************************************
> > *******
> > Exception Vectors
> >=20
> >
***********************************************************************
> > ******/
> > _vectors:
> > ldr pc, [pc, #reset_handler_address - . - 8] /* reset */
> > ldr pc, [pc, #undef_handler_address - . - 8] /* undefined
> > instruction */
> > ldr pc, [pc, #swi_handler_address - . - 8] /* swi handler */
> > ldr pc, [pc, #pabort_handler_address - . - 8] /* abort prefetch */
> > ldr pc, [pc, #dabort_handler_address - . - 8] /* abort data */
> > nop
> > ldr pc, [PC, #-0xF20] /* irq */
> > ldr pc, [pc, #fiq_handler_address - . - 8] /* fiq */
> >=20
> > .....
> >=20
> >=20
> > Have i miss out something ?
> >=20
> > H
> >=20
> >=20
> >=20
> > --- In A...@yahoogroups.com, "Paul Curtis" wrote:
> > >
> > > Hi,
> > >
> > > > Hi,
> > > > I am using
> > > > - CrossWorks ARM GCC V1.7 B2
> > > > - ATMEL AT91SAM7x256-EK
> > > > - FreeRTOS V4.7
> > > >
> > > > Problem:
> > > > I've been developing an application using CrossWorks for ARM
and it
> > is
> > > > all working with no problem.
> > > >
> > > > However when I try and start the application by power cycling or
> > > > resetting the target without assistance from CrossWorks the
> > > > application does not startup.
> > > >
> > > > Anyone come across same problem?
> > >
> > > FAQ, FAQ, FAQ!
> > >
> > > http://ccgi.rowley.co.uk/support/faq.php?do=3Darticle&articleid=3D40
> > >
> > > --
> > > Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
> > > CrossWorks for ARM, MSP430, AVR, MAXQ, and now Cortex-M3 processors
> > >
> >=20
> >=20
> >=20
> >=20
> >=20
> >
=20

(You need to be a member of AT91SAM -- send a blank email to AT91SAM-subscribe@yahoogroups.com )RE: Re: Startup from reset - Paul Curtis - Jan 21 8:43:23 2008
Hi,
> .STARTUP_FROM_RESET?: - (using FreeRTOS startup code)
> .configured to boot from ROM and enter SAM-BA Boot Assistant on
> reset?; - not using SAM_BA
> .Fast Programming mode on reset rather than starting your application?
> - Target options -> loader file type: Comms Channel loader. (segger
> Jlink)
> .The application is trying to communicate with the host?: -no host and
> debug interface application.
>
> If you don't think the cause is any of the above then you can see what
> the CPU is doing by carrying out the following actions:
> . Manually power-cycle or reset the target.
> . Attach the debugger by selecing Debug > Attach Debugger.
> . Break the execution by selecting Debug > Break. The debugger
>
> should locate to the current instruction being executed.
>
> ->:Hang in disassembly -EAFFFFFE b 0x0000010 (spsr_fiq ?)
No, that's a data abort exception I believe.
--
Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
CrossWorks for ARM, MSP430, AVR, MAXQ, and now Cortex-M3 processors

(You need to be a member of AT91SAM -- send a blank email to AT91SAM-subscribe@yahoogroups.com )
RE: Re: Startup from reset - hlow - Jan 22 16:41:08 2008
I have solve the problem using SAM_BA :-)
Thanks every one
_____
From: A...@yahoogroups.com [mailto:A...@yahoogroups.com] On Behalf Of
hudson_low
Sent: 21 January 2008 11:17
To: A...@yahoogroups.com
Subject: [AT91SAM] Re: Startup from reset
Hi Paul,
I know thats is FAQ from Rawley.
I try that but it doest work.
I even change my startup code as follow but still not working.
/***************************************************************************
**
Exception Vectors
****************************************************************************
*/
_vectors:
ldr pc, [pc, #reset_handler_address - . - 8] /* reset */
ldr pc, [pc, #undef_handler_address - . - 8] /* undefined
instruction */
ldr pc, [pc, #swi_handler_address - . - 8] /* swi handler */
ldr pc, [pc, #pabort_handler_address - . - 8] /* abort prefetch */
ldr pc, [pc, #dabort_handler_address - . - 8] /* abort data */
nop
ldr pc, [PC, #-0xF20] /* irq */
ldr pc, [pc, #fiq_handler_address - . - 8] /* fiq */
.....
Have i miss out something ?
H
--- In AT91SAM@yahoogroups
.com, "Paul
Curtis" wrote:
>
> Hi,
>
> > Hi,
> > I am using
> > - CrossWorks ARM GCC V1.7 B2
> > - ATMEL AT91SAM7x256-EK
> > - FreeRTOS V4.7
> >
> > Problem:
> > I've been developing an application using CrossWorks for ARM and it is
> > all working with no problem.
> >
> > However when I try and start the application by power cycling or
> > resetting the target without assistance from CrossWorks the
> > application does not startup.
> >
> > Anyone come across same problem?
>
> FAQ, FAQ, FAQ!
>
> http://ccgi.
rowley.co.uk/support/faq.php?do=article&articleid=40
>
> --
> Paul Curtis, Rowley Associates Ltd http://www.rowley.
co.uk
> CrossWorks for ARM, MSP430, AVR, MAXQ, and now Cortex-M3 processors
>

(You need to be a member of AT91SAM -- send a blank email to AT91SAM-subscribe@yahoogroups.com )