SparkFun Forums 

Where electronics enthusiasts find answers.

Topics pertaining to the Arduino Core & software used with the Artemis module and Artemis development boards.
User avatar
By jgagnierphysCSteach
#240730
https://learn.sparkfun.com/tutorials/ge ... le-sensor

Hello,

With many hours of trying to trouble shoot, I have not been able to get my two artemis boards to communicate. Both individually allow the single muscle sensor to work, read data etc. Though, everytime I attempt this my 'sending' board posts this in serial (which seems right):
Code: Select all
MyoWare Single Sensor Example - BLE Central
BLE initiallized successfully
And regardless of which board I use, just uploading the code, my 'receiving board' posts this error in serial:
Code: Select all
MyoWare Single Sensor Example - BLE Peripheral

++ MbedOS Fault Handler ++

FaultType: HardFault

Context:
R0: 0
R1: 0
R2: 11
R3: 14A5D
R4: 100011E8
R5: 10001218
R6: FFFFFFFF
R7: 0
R8: 0
R9: 0
R10: 0
R11: 0
R12: 0
SP   : 10007260
LR   : 14A67
PC   : 111A0
xPSR : 1000000
PSP  : 10007240
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: 0x111A0
Error Value: 0x10006258
Current Thread: main Id: 0x100047E8 Entry: 0x295CD StackSize: 0x1000 StackMem: 0x100062B8 SP: 0x10007260 
For more info, visit: https://mbed.com/s/error?error=0x80FF013D&tgt=SFE_ARTEMIS
-- MbedOS Error Info --
Any help would be appreciated... I have tried updating the bootloader, made sure it was SVL and gone through most things I can google.
By paulvha
#240745
There are extensive debug tools that could be used, but that will take time to use and learn.

I could try to debug, but then next to the exact error message (as you provided) I also need the .map-file that is created in the temporary directory that is used during the build of the sketch (based in /tmp for linux). That map-file will contain the different addresses used for functions and variables for that sketch build. Based on the PC in the error message, it might give a clue.

You could also try to set in setup() breakpoints e.g. while(1); loop. That way you can discover whether this was a loading problem or an execution aspect and when it fails.

An often-made misunderstanding is that the central is the sending (server) and the peripheral is the receiving (client). It is completely the opposite. Peripheral is server/sending, central is client/receiving. Also see https://www.arduino.cc/reference/en/lib ... rduinoble/

The example2 sketches are correct. I have taken both and put the peripheral on my Artemis ATP and the central on Artemis Micromod. Both use SVL5.
They compiled without error and worked without error. In the peripheral, I added a simulation (sending a counter), but it also worked with nothing connected to A0. Attached are the sketches I used. See whether the peripheral works for you as well. Else try providing the mapfile and exact error message.
You do not have the required permissions to view the files attached to this post.
User avatar
By jgagnierphysCSteach
#240754
So.. I tried the code and it seems the code always worked with one of the boards. I think I just purchased a defective board.

The peripheral code and the central code work perfectly fine on one board, and the other board always has fault errors.

Upon visual inspection, the Bluetooth module looks blemished (rust? fire?). I'm going to return it and get a new board (as I ordered on amazon). I had the shield blocking the Bluetooth, and never bothered to try reversing the code as I had the sensor/shield on on of the boards the whole time.

Thanks for your help, and I'm sorry to have wasted your time. ... I think I've spent way too much time on a defective board. Though... I've learned a lot about the board? :roll:


Code: Select all
R3: 14A4D
R4: 10001168
R5: 10001198
R6: FFFFFFFF
R7: 0
R8: 0
R9: 0
R10: 0
R11: 0
R12: 0
SP   : 100071C8
LR   : 14A57
PC   : 11190
xPSR : 1000000
PSP  : 100071A8
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: 0x11190
Error Value: 0x100061C0
Current Thread: main Id: 0x10004760 Entry: 0x293C5 StackSize: 0x1000 StackMem: 0x10006220 SP: 0x100071C8 
For more info, visit: https://mbed.com/s/error?error=0x80FF013D&tgt=SFE_ARTEMIS
-- MbedOS Error Info --
Image
 Topic permissions

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum