[riot-devel] Cortex M0 HardFault

Joakim NohlgÄrd joakim.nohlgard at eistec.se
Fri Dec 16 13:01:41 CET 2016


On a related note, I had some trouble with unexplained hard faults when I
built newlib using gcc-6.2, but I didn't have time to investigate further
at that time and I simply reinstalled newlib built with gcc-5.4 instead.

Best regards,
Joakim

On Dec 15, 2016 5:51 PM, "Kaspar Schleiser" <kaspar at schleiser.de> wrote:

> Hey,
>
> On 12/15/2016 05:32 PM, Baptiste Clenet wrote:
> > What could cause:
> > Stack pointer corrupted, reset to top of stack
> > l.238, vectors_cortexm.c
> > (then board is halted)
> >
> > Any program I flash on the samr21 goes directly to hard_fault_handler()
>
> Any program, e.g., also "tests/hello-world"?
>
> > Board dead or something missing?
>
> Which OS are you on, what toolchain?
> Do you have a second samr21-xpro to test the binary?
> Are you on a clean master checkout?
>
> Seriously, did you try a different USB cable?
>
> Kaspar
> _______________________________________________
> devel mailing list
> devel at riot-os.org
> https://lists.riot-os.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/devel/attachments/20161216/57723006/attachment.html>


More information about the devel mailing list