EmbDev.net

Forum: ARM programming with GCC/GNU tools Reset vector from the WinARM examples doesn't work


Author: Dim Alex (kobe8)
Posted on:

Rate this post
0 useful
not useful
Hello,

for more than an year I've been using the WinARM compiler + OpenOCD +
Eclipse/PN + AT91SAM7S128 based board for my projects. The makefile, the
startup code and the linker script, that I’m using, are based on the
examples from the WinARM package.
Recently I’ve discovered that the HW reset button on my board doesn’t
work. Actually it works, but only after the Flash has been programmed
via the OpenOCD (using the makefile). After boot it seems that the reset
vector is no longer doing its gob. I’ve studied the spartup code
carefully and I don’t see any troubles in there.
Did somebody noticed the same problem with the examples from the WinARM,
or had the same problem?

Thanks,
Dim
sing

Author: Martin Thomas (mthomas) (Moderator)
Posted on:

Rate this post
0 useful
not useful
Dim Alex wrote:
> for more than an year I've been using the WinARM compiler + OpenOCD +
> Eclipse/PN + AT91SAM7S128 based board for my projects. The makefile, the
> startup code and the linker script, that I’m using, are based on the
> examples from the WinARM package.

Which one? There are different examples with different startup-codes
included for SAM7S. Please check my web-pages too, some examples have
been updated since the latest "official" release of WinARM (20060606).

> Recently I’ve discovered that the HW reset button on my board doesn’t
> work. Actually it works, but only after the Flash has been programmed
> via the OpenOCD (using the makefile).

Did you verify that the hardware-reset though the reset-pin is
activated? On SAM7S this has to be done by software. Most of the
"WinARM-examples" should include this activation, but I do not remember
if it's included in all of them.

Author: Dim Alex (kobe8)
Posted on:

Rate this post
0 useful
not useful
Hello Martin,

thanks for the answer.

Martin Thomas wrote:
> Dim Alex wrote:
>> for more than an year I've been using the WinARM compiler + OpenOCD +
>> Eclipse/PN + AT91SAM7S128 based board for my projects. The makefile, the
>> startup code and the linker script, that I’m using, are based on the
>> examples from the WinARM package.
>
> Which one? There are different examples with different startup-codes
> included for SAM7S. Please check my web-pages too, some examples have
> been updated since the latest "official" release of WinARM (20060606).

I'm using the startup code from the 'gamma' project, but not from the
last version.

>
>> Recently I’ve discovered that the HW reset button on my board doesn’t
>> work. Actually it works, but only after the Flash has been programmed
>> via the OpenOCD (using the makefile).
>
> Did you verify that the hardware-reset though the reset-pin is
> activated? On SAM7S this has to be done by software. Most of the
> "WinARM-examples" should include this activation, but I do not remember
> if it's included in all of them.

Indeed I didn't activated this option, and this was my problem.
Thanks a lot for the hint.

Best regards,
Dim

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.