hardfault

Post Reply
Martoni
Posts: 18
Joined: Fri Mar 19, 2021 8:37 am

Hello,

I can't flash my quickfeather with TinyFPGA-Programmer-Application. If I push reset button then user button, I have the blue blinking led first then green led on about 1 second. And, finally, the led switched off.

If I plug an UART on J3.2/J3.3 I get this hardfault message :

Code: Select all

Quicklogic QuickFeather Bootloader
SW Version: qorc-sdk/qf-apps/qf_bootloader(v2) (GCC)
Jun  7 2020 11:50:58
##########################

User button pressed: switch to download mode
FPGA Programmed
Presss Reset button after flashing ..


**hardfault**
r0: 0x000000ac
r1: 0xacacacac
r2: 0x00071af1
r3: 0x00071af0
r12: 0x00000040
lr: 0x20002f91
pc: 0x20003e88
SP: 0x01000000
stackdump x256
2000b7f8: 00000000 0000000a-60000000 000128b8  |........-...`.(..|
2000b808: b46ceac3 a5a5a5a5-a5a5a5a5 a5a5a5a5  |..l.....-........|
2000b818: a5a5a5a5 a5a5a5a5-a5a5a5a5 2000756f  |........-....ou. |
2000b828: 40005000 200001ac-2000016a 20001b01  |.P.@... -j.. ... |
2000b838: a5a5a5a5 a5a5a5a5-a5a5a5a5 200039b1  |........-.....9. |
2000b848: a5a5a5a5 a5a5a5a5-2000b79c 00000cce  |........-... ....|
2000b858: 2000ca94 2000ca94-2000b850 2000ca8c  |... ... -P.. ... |
2000b868: 00000012 00000000-00000000 2000b850  |........-....P.. |
2000b878: 00000000 00000004-2000b450 545f4c42  |........-P.. BL_T|
2000b888: 006b7361 00000000-00000000 00000001  |ask.....-........|
2000b898: 00000000 00000004-00000000 00000000  |........-........|
2000b8a8: 00000000 00000000-00000000 00000000  |........-........|
2000b8b8: a5a5a5a5 a5a5a5a5-a5a5a5a5 a5a5a5a5  |........-........|
2000b8c8: a5a5a5a5 a5a5a5a5-a5a5a5a5 a5a5a5a5  |........-........|
2000b8d8: a5a5a5a5 a5a5a5a5-a5a5a5a5 a5a5a5a5  |........-........|
2000b8e8: a5a5a5a5 a5a5a5a5-a5a5a5a5 a5a5a5a5  |........-........|
Does somebody know this problem ?

Thanks
phil_quik
Posts: 36
Joined: Mon May 18, 2020 12:33 am

What is the M4 firmware you are running?
Maybe try qf_helloworldsw project first.
Martoni
Posts: 18
Joined: Fri Mar 19, 2021 8:37 am

I'm running the default software I think, because I tryied to download some software before but without success.

This error come just after I press user button. Without any programation.
Martoni
Posts: 18
Joined: Fri Mar 19, 2021 8:37 am

I tryied qf_helloworldsw version, but I think the hardfault disable it :

Code: Select all

 python ../../../TinyFPGA-Programmer-Application/tinyfpga-programmer-gui.py --port /dev/ttyACM0 --reset --mode m4 --m4app output/qf_helloworldsw.bin
CLI mode
ports =  ['/dev/ttyACM0 (QuickFeather)'] 1
Using port  /dev/ttyACM0 (QuickFeather)
Programming m4 application with  output/qf_helloworldsw.bin
Erasing designated flash pages
Erase  64.0 KiB ( 0xd8 ) at  0x80000
The program seems to freeze in Erase state.
phil_quik
Posts: 36
Joined: Mon May 18, 2020 12:33 am

You might check this one, viewtopic.php?f=9&t=99
Martoni
Posts: 18
Joined: Fri Mar 19, 2021 8:37 am

In fact I reflashed the «bootloader» with another swd adapter and that works now.
Post Reply