Sony Spresense Hard Fault (ArduinoIDE)

Asked 2 years ago, Updated 2 years ago, 100 views

We implement hand sign recognition using spresense.
As per the PPT below, I finished writing the sketch without any errors, but I couldn't see the camera image that was supposed to be on the LCD screen, and it was white with vertical lines on it.

If you look at the serial port (currently), the Auto White Balance has not finished processing, and the screen is still white.dnnrt.forward() does not take any further action.When I set the spresense board manager to 1.1.2, the output on the serial monitor looks like this:

 16:20:19.997->up_hardfault:PANIC!!!Hard fault: 40,000000
16:20:19.997->up_assert:Assertion failed at file:armv7-m/up_hardfault.line:171 task:<pthread>

Hard fault.
The assertion in the file appears to have failed.
https://stackoverflow.com/questions/54224121/troubleshooting-sony-spresense-hard-fault

Thank you for your cooperation.

PPT→https://github.com/takayoshi-k/algyan_spresense_ai_hands_on/releases/download/tmp_version/20190615_ALGYAN_SPRESENSSE_AI_HAnds_ON_at_.pdf
Writing Sketch→https://github.com/takayoshi-k/algyan_spresense_ai_hands_on/releases/download/tmp_version/rps_sample.zip

This is the current connection between the LCD and the spresense.LCD to spresense connection status

It is white and no camera video is output.

Serial Monitor Output

16:20:17.391->USB Mass Storage start
16:20:18.981->Loading network model
16:20:18.981->Initialize DNNRT
16:20:19.692 - > Prepare camera
16:20:19.760->Start streaming
16:20:19.963->Set Auto white balance parameter
16:20:19.997 ->up_hardfault:PANIC!!!Hard fault: 40,000000
16:20:19.997->up_assert:Assertion failed at file:armv7-m/up_hardfault.line:171 task:<pthread>
16:20:20.031->up_dumpstate:sp:0d0439d4
16:20:20.031->up_dumpstate:IRQ stack:
16:20:20.031->up_dumpstate:base:0d043a00
16:20:20.031->up_dumpstate:size:00000800
16:20:20.031->up_dumpstate:used:00000128
16:20:20.031->up_stackdump:0d0439c0:0d0439d80d0254c100000000000000d0439d80d00c9e700000003000000000000c9ef
16:20:20.031->up_stackdump:0d0439e0:0d00c9cd0d025af5000000e00d0d0688bc0d0d06006000d04c0f00d0680100d025a6d
16:20:20.031->up_dumpstate:sp:0d068990
16:20:20.031->up_dumpstate:User stack:
16:20:20.064->up_dumpstate:base:0d068a48
16:20:20.064->up_dumpstate:size:000007fc
16:20:20.064->up_dumpstate:used:00000190
16:20:20.064->up_stackdump:0d068980:000000000041800000000000000001000d0134a10d0679e00d0679e00d0600600d011fbd
16:20:20.064->up_stackdump:0d0689a0:0d0680100d041dac068a140d068a140d041e5a0d003b2f0d041a900d068a14
16:20:20.064->up_stackdump:0d0689c0:0d068a140d041e5a0d002bc1000000000000000000000000000000000000d006c0b0d045b800d006cad
16:20:20.099->up_stackdump:0d0689e0:00000000000000e000000000000000000000000d045d400d041e440d068a140d068a100d041e5a
16:20:20.099->up_stackdump:0d068a00:0d002bc100000000000000000000000000d0048570d0690a00d0680a00d0668230
16:20:20.099 ->up_stackdump:0d068a20:0d049ca00d049cb80000000000000000006e3d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
16:20:20.099->up_stackdump:0d068a40:000000000000000000 deadbeef674d7d87e70272d2c27b5290000019080000810
16:20:20.099->up_registerdump:R0:0d067ba40d05fc240d0679e00d0553f000000010d0600600d04c0f00d068010
16:20:20.133->up_registerdump:R8:0d002bc100000000000000000000000000000000000000d0689900d0134a10d0553f0
16:20:20.133->up_registerdump:xPSR:00000000BASEPRI:000000e0 CONTROL:0000000000
16:20:20.133->up_registerdump:EXC_RETURN:fffffe9
16:20:20.133->up_taskdump:Idle Task:PID=0 Stack Used=0 of 0
16:20:20.133->up_taskdump:hpwork:PID=1 Stack Used=584 of 2028
16:20:20.133->up_taskdump:lpwork:PID=2Stack Used=352 of 2028
16:20:20.168->up_taskdump:lpwork:PID=3Stack Used=352 of 2028
16:20:20.168->up_taskdump:lpwork:PID=4Stack Used=352 of 2028
16:20:20.168->up_taskdump:init:PID=5Stack Used=960 of 8172
16:20:20.168->up_taskdump:cxd56_pm_task:PID=6Stack Used=320 of 996
16:20:20.168->up_taskdump:<pthread>—PID=7Stack Used=336 of 1020
16:20:20.168->up_taskdump:scsid:PID=8Stack Used=320 of 2028
16:20:20.168->up_taskdump:<pthread>: PID=9Stack Used=400 of 2044
16:20:20.202->up_taskdump:<pthread>: PID=10 Stack Used=480 of 1020

spresense

2022-09-30 20:14

3 Answers

Is the expansion board jumper JP1 (IO voltage switching) set to 5V?
The ILI9341 display does not support 5V, so the jumper should be 3.3V.

I didn't understand the picture because it was a little dark, but I'm sorry if it didn't work out


2022-09-30 20:14

Dear @Nmaru T,

If you do not save an nnb file called "network.nnb" on your sd card,
It seems that it will remain white.
名前The name is different.

I'm kind of into this.


2022-09-30 20:14

Dear @Nmaru T,

Hello.

I can't participate in Hands-On, you know.
Similarly, I tried the sketch by connecting it to the LCD display with a visual mimicry.

I fell in love with it in the same way.
At that time,

when you put it in a new Spresense board package. The reason was that the bootloader was not written again.

Just in case, make it current v1.3.1 and
I tried writing the bootloader, but
It worked properly.

Write the bootloader in the latest v1.3.1 and then
You might want to try running ino.


2022-09-30 20:14

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.