Error After uploading a code with BLE library to artemis ATP board

Hello all,

I have a red board Artimes ATP. I have a BLE application

I uploaded an arduino code to it and gets uploaded fine but when I open the serial monitor, I get the following error

++ MbedOS Fault Handler ++

FaultType: HardFault

Context:

R0: 0

R1: 0

R2: 4

R3: 14ACD

R4: 10001128

R5: 10001158

R6: FFFFFFFF

R7: 0

R8: 0

R9: 0

R10: 0

R11: 0

R12: 0

SP : 10007190

LR : 14AD7

PC : 111FC

xPSR : 1000000

PSP : 10007170

MSP : 1005FF70

CPUID: 410FC241

HFSR : 40000000

MMFSR: 0

BFSR : 82

UFSR : 0

DFSR : 0

AFSR : 0

BFAR : 1C

Mode : Thread

Priv : Privileged

Stack: PSP

– MbedOS Fault Handler –

++ MbedOS Error Info ++

Error Status: 0x80FF013D Code: 317 Module: 255

Error Message: Fault exception

Location: 0x111FC

Error Value: 0x10006180

Current Thread: main Id: 0x10004720 Entry: 0x29505 StackSize: 0x1000 StackMem: 0x100061E0 SP: 0x10007190

For more info, visit: https://mbed.com/s/error?error=0x80FF01 … TEMIS_NANO

– MbedOS Error Info –

Please help!

The ‘fault exception’ happens when memory is accessed that is not supposed to (e.g. protected). Often the result of an uninitialized pointer or exceeding allocated memory. It might be that a begin() or init() call was not performed.

You can look at https://os.mbed.com/docs/mbed-os/v6.15/ … -dump.html how to get an indication of what part of the code to look at.

Else share your source and we can see whether we can help.

Hi Paul,

The weird thing is that I uploaded the same source code into another red artemis ATP board and worked fine.

The source code is simple, it blinks the built in led by a button in a mobile app.

only one difference between the two boards is that one has SVL boat loader version 3 and the other has version 5.

The source code is attached,

Thanks,

Mousa,

LED_switch.rar (1.01 KB)

I can not find it directly, but there was a problem with an SVL version that was not disabling/stopping a timer before it jumped to running the user program. It then caused an error. Try to update the SVL to the latest version https://github.com/sparkfun/Apollo3_Uploader_SVL . I will look to see whether i can a link to the earlier problem.

This is the error message I am getting for the uploaded source code above:

++ MbedOS Fault Handler ++

FaultType: HardFault

Context:

R0: 0

R1: 0

R2: 8

R3: 14ACD

R4: 10001268

R5: 10001298

R6: FFFFFFFF

R7: 0

R8: 0

R9: 0

R10: 0

R11: 0

R12: 0

SP : 100072D0

LR : 14AD7

PC : 111FC

xPSR : 1000000

PSP : 100072B0

MSP : 1005FF70

CPUID: 410FC241

HFSR : 40000000

MMFSR: 0

BFSR : 82

UFSR : 0

DFSR : 0

AFSR : 0

BFAR : 1C

Mode : Thread

Priv : Privileged

Stack: PSP

– MbedOS Fault Handler –

++ MbedOS Error Info ++

Error Status: 0x80FF013D Code: 317 Module: 255

Error Message: Fault exception

Location: 0x111FC

Error Value: 0x100062C0

Current Thread: main Id: 0x10004860 Entry: 0x29505 StackSize: 0x1000 StackMem: 0x10006320 SP: 0x100072D0

For more info, visit: https://mbed.com/s/error?error=0x80FF01 … RTEMIS_ATP

– MbedOS Error Info –

I have just tried your source code on my ATP (SVL 5) and that works without a problem.

The issue I was referring to in an earlier post was https://github.com/sparkfun/Arduino_Apollo3/issues/388. Try updating the SVL.bin with the link provided before or https://github.com/sparkfun/Artemis-Firmware-Upload-GUI.

regards,

Paul