Re: [riot-devel] Hardfault when linking OpenThread library

2016-06-20 Thread Jose Alamos
Hi Joakim and Daniel,

Thank you for the response. Here's the gist of the .map file:
https://gist.github.com/jia200x/55f87ac2d966bafb604fb17ff577a7d8

I'm using a SAMR21-xpro.

I have only written the platform abstraction hook functions, so I haven't
initialized objects. I'm checking all pointers now.

Best regards,
Jose
___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel


Re: [riot-devel] Hardfault when linking OpenThread library

2016-06-17 Thread Joakim NohlgÄrd
What platform are you running this on?
Could you post your .map file? (preferably as a link to gist or pastebin or
similar, since they tend to be very large)

Best regards,
Joakim

On Fri, Jun 17, 2016 at 1:51 PM, Jose Alamos  wrote:

> Hi community,
>
> I'm having a weird hardfault when I'm linking the OpenThread library to
> RIOT. After running GDB, I noticed the hardfault is before accessing main()
> function (so shouldn't be a problem of the port itself).
>
> RIOT is crashing in this line [1]. Here's the content of hardfault:
>
> 2016-06-17 13:40:42,716 - INFO # Context before hardfault:
> 2016-06-17 13:40:42,718 - INFO #r0: 0x
> 2016-06-17 13:40:42,719 - INFO #r1: 0x0655
> 2016-06-17 13:40:42,721 - INFO #r2: 0x
> 2016-06-17 13:40:42,722 - INFO #r3: 0x58c4
> 2016-06-17 13:40:42,724 - INFO #   r12: 0x
> 2016-06-17 13:40:42,726 - INFO #lr: 0x00021ea7
> 2016-06-17 13:40:42,727 - INFO #pc: 0x58c4
> 2016-06-17 13:40:42,729 - INFO #   psr: 0x4000
> 2016-06-17 13:40:42,729 - INFO #
> 2016-06-17 13:40:42,729 - INFO # Misc
> 2016-06-17 13:40:42,731 - INFO # EXC_RET: 0xfff9
> 2016-06-17 13:40:42,735 - INFO # Attempting to reconstruct state for
> debugging...
> 2016-06-17 13:40:42,736 - INFO # In GDB:
> 2016-06-17 13:40:42,737 - INFO #   set $pc=0x58c4
> 2016-06-17 13:40:42,738 - INFO #   frame 0
> 2016-06-17 13:40:42,739 - INFO #   bt
>
>
> The OpenThread library is in C++, I programmed the hooks in C and C++ but
> I get the same hardfault.
>
> Any clue?
> Cheers
>
> [1]:
> https://github.com/RIOT-OS/RIOT/blob/b5497c3be43bdfecb0fb10e84bffbbd76d7a1ca1/cpu/cortexm_common/vectors_cortexm.c#L113
>
> ___
> devel mailing list
> devel@riot-os.org
> https://lists.riot-os.org/mailman/listinfo/devel
>
>
___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel