1 year, 6 months ago.

example project for lorawan compiling many warnings,resulting project hardfaults on nucleo L152RE

I have been trying to compile the example LoRaWAN project ( https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-lorawan/) for my Nucleo L152RE for a couple of days noe. The compiling gives a lot of warnings on type in extras/mbed-os.lib/components/* about type conversions and stuff like "Warning: Unelaborated friend declaration is a C++11 extension; specify 'class' to befriend 'LWIP'" all of these warnings are in the mbed library so i cant see the source of the error to debug it

when i flash the program (the bin file i get inspite of all the warnings) my board hard faults before the first line of code is executed in main like so: ++ MbedOS Fault Handler ++

FaultType: HardFault

Context: R0 : 20014000 R1 : 00000001 R2 : 00000000 R3 : 20014000 R4 : 20002DF8 R5 : 20002E80 R6 : 00000000 R7 : 200005A4 R8 : 20000C48 R9 : 20003C20 R10 : 00000000 R11 : 00000000 R12 : 00000000 SP : 20001FD8 LR : 08006773 PC : 0800E90E xPSR : 21000000 PSP : 20001FB8 MSP : 20013FC0 CPUID: 412FC230 HFSR : 40000000 MMFSR: 00000082 BFSR : 00000000 UFSR : 00000000 DFSR : 00000008 AFSR : 00000000 MMFAR: 00000000 Mode : Thread Priv : Privileged Stack: PSP

MbedOS Fault Handler

++ MbedOS Error Info ++ Error Status: 0x80FF013D Code: 317 Module: 255 Error Message: Fault exception Location: 0x800F869 Error Value: 0x800E90E Current Thread: main Id: 0x20002824 Entry: 0x800FB3D StackSize: 0x1000 StackMem: 0x200010B8 SP: 0x20013F3C

I have tried everything i can think of it would be great if anyone can help me, i really need to get this working!!

Be the first to answer this question.