STM32L496xx | Boots issues :( Topic is solved

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderators: RoccoMarco, barthess

Sleuek
Posts: 2
Joined: Wed Feb 24, 2021 9:36 am
Been thanked: 1 time

STM32L496xx | Boots issues :(

Postby Sleuek » Wed Feb 24, 2021 9:58 am

Hi everyone!

I'm really new in ChibiOS devlopment.


1. A boot not interrupted result in receiving a SIGTRAP signal like this :

Code: Select all

Program received signal SIGTRAP, Trace/breakpoint trap.
Reset_Handler () at chibios/os/common/startup/ARMCMx/compilers/GCC/vectors.S:259
259            b          _crt0_entry

This SIGTRAP never end, if I continue I will receive this signal.

2. A boot interrupted with CTRL+C result in landing in sys.cpp:94 :

Code: Select all

0x0800172c in systemHaltHook (msg=0x8008da0 "HardFault") at src/os/sys.cpp:94
94       os::emergencyPrint("\r\n");


And here is the bt full result :

Code: Select all

(gdb) bt full
#0  0x0800172c in systemHaltHook (msg=0x8008da0 "HardFault") at src/os/sys.cpp:94
No locals.
#1  chSysHalt (reason=reason@entry=0x8008da0 "HardFault") at chibios/os/rt/src/chsys.c:209
No locals.
#2  0x08005858 in chibios_rt::System::halt(char const*) () at chibios/os/various/cpp_wrappers/ch.hpp:77
        reason = 0x8008da0 "HardFault"
#3  HardFault_Handler () at src/os/sys.cpp:193
No locals.
#4  <signal handler called>
No symbol table info available.
#5  0x55555554 in ?? ()
No symbol table info available.
Backtrace stopped: previous frame identical to this frame (corrupt stack?)


I don't understand where is located the error and where is called the hardfault handler.

If you have some time for me it would be a pleasure to discuss of this problem with you.
Best regards :).
A.

mikeprotts
Posts: 166
Joined: Wed Jan 09, 2019 12:37 pm
Has thanked: 19 times
Been thanked: 31 times

Re: STM32L496xx | Boots issues :(

Postby mikeprotts » Wed Feb 24, 2021 11:04 am

Are you using a standard dev board, running one of the demo or test programs?

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: STM32L496xx | Boots issues :(

Postby Giovanni » Wed Feb 24, 2021 11:28 am

mikeprotts wrote:Are you using a standard dev board, running one of the demo or test programs?


Yes, that looks like a custom project setup. It is stopping on _crt0_entry which is very strange, the branch to _crt0_entry is the very first instruction executed. I would look at the linker script, the map file and check the flashed image.

Giovanni

Sleuek
Posts: 2
Joined: Wed Feb 24, 2021 9:36 am
Been thanked: 1 time

Re: STM32L496xx | Boots issues :(  Topic is solved

Postby Sleuek » Fri Mar 12, 2021 12:14 pm

I hadn't seen you answered so quickly.

I actually had a problem with Kocherga from Zubax. It was not related to Chibios.

Sorry to respond so late :(.

Thanks to both of you.


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 18 guests