-
Notifications
You must be signed in to change notification settings - Fork 1.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
[BUG] Hard fault in irq on raspberrypi-pico-2:nsh since 0e1b432dd #15503
Comments
For some reason I'm also not able to see the serial console unless I reset the board with the openocd That's a separate issue though. |
@hujun260 will look at the hardfault issue. |
@ids1024 |
I see this behavior with just the default |
looks like missing SVC call priority configuration in RP2350, compare with nrf53. |
Ah yeah, makes sense to compare a different chip using the Cortex-M33. That does seem to be the issue. coping |
Fixes apache#15503. Signed-off-by: Ian Douglas Scott <[email protected]>
Fixes #15503. Signed-off-by: Ian Douglas Scott <[email protected]>
Looks like the issue with resets is fixed by changing the xosc startup delay. (raspberrypi/pico-sdk#2136). Probably an issue on the feather-rp2040 too (at least with some units). With that So I guess that needs some kind of configuration so the specific rp2040/rp23xx board can specific a delay multiplier, like in pico-sdk. |
Fixes apache#15503. Signed-off-by: Ian Douglas Scott <[email protected]>
Description / Steps to reproduce the issue
(I'm testing on an Adafruit Feather RP2350, so the LED is on a different pin, the flash is larger, etc., but I don't think that's relevant here.)
NuttX doesn't seem to work as expected. Connecting with gdb using the Pi Debug Probe, I see it's in the hard fault handler:
Bisecting, this seems to start with 0e1b432. Using the previous commit, or reverting that commit on master, prevents this, and it's able to run the nsh task.
That commit removed the code in
arch/arm/src/armv8-m/arm_hardfault.c
that forwarded toarm_svcall
if a hard fault was triggered bysvc 0
. That may be correct, but I guess something needs to be changed to make sure a hard fault doesn't happen here.On which OS does this issue occur?
[OS: Linux]
What is the version of your OS?
Debian Sid
NuttX Version
master (5f4a15b)
Issue Architecture
[Arch: arm]
Issue Area
[Area: Board support]
Verification
The text was updated successfully, but these errors were encountered: