[5.14-OOB] mbed-os-example-nfc\NFC_SmartPoster failed when building with IAR compiler
korjaa opened this issue · 3 comments
korjaa commented
Board: DISCO_L475VG_IOT01A
Build command: mbed compile -m DISCO_L475VG_IOT01A -t IAR --flash --clean
Log Output:
++ MbedOS Fault Handler ++
FaultType: HardFault
Context:
R0 : 20001328
R1 : 00000000
R2 : 08003C21
R3 : 080110F4
R4 : 00000000
R5 : 00000000
R6 : 00000000
R7 : 00000000
R8 : 00000000
R9 : 00000000
R10 : 00000000
R11 : 00000000
R12 : 08001C59
SP : 20000B68
LR : 0800234B
PC : 08003AD0
xPSR : 01000000
PSP : 20000B48
MSP : 10007F10
CPUID: 410FC241
HFSR : 40000000
MMFSR: 00000082
BFSR : 00000000
UFSR : 00000000
DFSR : 00000008
AFSR : 00000000
MMFAR: 00000074
Mode : Thread
Priv : Privileged
Stack: PSP
-- MbedOS Fault Handler --
++ MbedOS Error Info ++
Error Status: 0x80FF013D Code: 317 Module: 255
Error Message: Fault exception
Location: 0x0
Error Value: 0x8003AD0
Current Thread: main Id: 0x200003B8 Entry: 0x80019F5 StackSize: 0x1000 StackMem: 0x20000418 SP: 0x10007EB0
For more info, visit: https://armmbed.github.io/mbedos-error/?error=0x80FF013D
-- MbedOS Error Info --
= System will be rebooted due to a fatal error =
= Reboot count(=1) reached maximum, system will halt after rebooting =
crash_log_parser.py
Crash Info:
Crash location = mbed::nfc::NFCController::start_discovery() [0x08003AD0] (based on PC value)
Caller location = main [0x0800234B] (based on LR value)
Stack Pointer at the time of crash = [20000B68]
Target and Fault Info:
Processor Arch: ARM-V7M or above
Processor Variant: C24
Forced exception, a fault with configurable priority has been escalated to HardFault
Data access violation. Faulting address: 00000074
korjaa commented
After updating to mbed-os-5.14.0-rc2 I still get HardFault.
++ MbedOS Fault Handler ++
FaultType: HardFault
Context:
R0 : 10001760
R1 : 00000000
R2 : 08004655
R3 : 0801072C
R4 : 00000000
R5 : 00000000
R6 : 00000000
R7 : 00000000
R8 : 00000000
R9 : 00000000
R10 : 00000000
R11 : 00000000
R12 : 08001FAF
SP : 10001018
LR : 08002487
PC : 0800450E
xPSR : 01000000
PSP : 10000FF8
MSP : 10000510
CPUID: 410FC241
HFSR : 40000000
MMFSR: 00000082
BFSR : 00000000
UFSR : 00000000
DFSR : 00000008
AFSR : 00000000
MMFAR: 00000074
Mode : Thread
Priv : Privileged
Stack: PSP
-- MbedOS Fault Handler --
++ MbedOS Error Info ++
Error Status: 0x80FF013D Code: 317 Module: 255
Error Message: Fault exception
Location: 0x0
Error Value: 0x800450E
Current Thread: main Id: 0x10002C20 Entry: 0x80019B1 StackSize: 0x1000 StackMem: 0x10000850 SP: 0x100004B0
For more info, visit: https://mbed.com/s/error?error=0x80FF013D&tgt=DISCO_L475VG_IOT01A
-- MbedOS Error Info --
= System will be rebooted due to a fatal error =
= Reboot count(=2) reached maximum, system will halt after rebooting
jamesbeyond commented
without shield would be a main cause to the initialization hard-fault
jamesbeyond commented
The example itself is working fine with the shield correctly connected,
Here is an update on the readme #50