-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
__libc_init_array () trigger HARD FAULT HANDLER on SAML21E18B arm core bug #9155
Comments
I put a copy of my try here: https://github.com/nunux13/saml21-jn |
Also, i remove most of the features to keep it light at beginning. Hope it's ok ... https://github.com/nunux13/saml21-jn/blob/master/boards/saml21-jn/Makefile.features |
Hi @nunux13, |
Hello, Based on your remark, I setup everything including PIN for Feature not activated like SPI. I also changed this array: static const int8_t exti_config[2][32] = { It'seems now possible to have some output ... between 2 crashs. |
Reading symbols from bin/saml21-jn/hello-world.elf...done. Program received signal SIGINT, Interrupt. |
enabling timer get better startup |
Can you also share the output of |
|
Can you format better the output? it's almost not readable... You can use ``` (github markdown) to format your output at the beginning and the end of the text, so it shows as if it was on the console. |
Anyways it looks good. |
Pressing a key make crash. Still maybe a problem with UART and interupts ... |
I remove the debugger and run from externe power supply, and that is looking great now. |
After 5 days to try, I can confirme now RIOT OS is working on SAML21E18B. The only fix you have to do regarding RIOT-2018.04 is:
Cave-int and pits falls: Thanks to everyone for patience and support. Nunux |
Hi @nunux13. |
Yes, doing "ps" to show process on shell make crash. I still have to fix things... Can you point me more "some changes" to check ? I need to setup MRF24J40MA, done my first try, but need to try harder: I get crashs or no interface on "ipconfig" shell command ... Regards, |
Regarding EXTI, you just have to fix the array like you already do. You're having an issue only with the ps command ? If you're having issue regarding the network part, I suggest you to post a mail on the user's mailing. The real specialist will point you to the solution. |
Description
Cannot run helloworld or test/leds for saml21-custom board.
Steps to reproduce the issue
Expected results
Hello world or blinking led
Actual results
#0 0xfffffffe in ?? ()
#1 0x00000648 in core_panic (crash_code=crash_code@entry=PANIC_HARD_FAULT, message=message@entry=0x3c8c "HARD FAULT HANDLER")
at /home/parallels/RIOT-2018.04/core/panic.c:61
#2 0x000003da in hard_fault_default () at /home/parallels/RIOT-2018.04/cpu/cortexm_common/vectors_cortexm.c:347
#3
#4 0x7fffcf78 in ?? ()
#5 0x00002e26 in __libc_init_array ()
#6 0x0000041a in reset_handler_default () at /home/parallels/RIOT-2018.04/cpu/cortexm_common/vectors_cortexm.c:124
More infos
The custom board I try to make work has only ports PA8/PA9/PA10/PA11 as PIN OUT and SWD port for J-Link flashing.
PA8 TX Uart
PA9 RX Uart
PA10 LED0
PA11 LED1
I got also a SAML21 Xpro, that is full working (and a SAMR21 not tried)
Versions
parallels@parallels-vm:~/RIOT-2018.04$ ./dist/tools/ci/print_toolchain_versions.sh
Installed compiler toolchains
riscv-none-embed-gcc: missing
clang: missing
Installed compiler libs
arm-none-eabi-newlib: "2.5.0"
mips-mti-elf-newlib: missing
riscv-none-embed-newlib: missing
avr-libc: missing (missing)
Installed development tools
Thanks for helping me :)
The text was updated successfully, but these errors were encountered: