Order number: 5060660
I received my order of 2 SparkFun Mini Linear 3D Hall-Effect Sensors a few days ago.
After soldering on some leads I opened and ran “Example1_BasicReading” which worked. Then I try Example3+AngleCalculations and, “Device failed to setup - Freezing code” prints to the console. I try Example1 again, and I get the “Freezing code” error message.This pattern repeats until a day passes then I try again and it works only once.
Perhaps I should of led with this, occasionally this error is printed when uploading:
/Users/bwh/Documents/Arduino/libraries/SparkFun_TMAG5273_Arduino_Library/src/SparkFun_TMAG5273_Arduino_Library.cpp: In member function ‘uint8_t TMAG5273::readRegister(uint8_t)’:
/Users/bwh/Documents/Arduino/libraries/SparkFun_TMAG5273_Arduino_Library/src/SparkFun_TMAG5273_Arduino_Library.cpp:138:23: warning: array subscript 1 is outside array bounds of ‘uint8_t [1]’ {aka ‘unsigned char [1]’} [-Warray-bounds]
138 | dataBuffer = Wire.read();
| ~~^
/Users/bwh/Documents/Arduino/libraries/SparkFun_TMAG5273_Arduino_Library/src/SparkFun_TMAG5273_Arduino_Library.cpp:178:13: note: while referencing ‘regVal’
178 | uint8_t regVal = 0;
| ^~~~~~
I have triple checked my wiring, tried different computers, tried all three versions of the library, and tried running the code on several Uno’s and a Teensy 3.6. I have searched the Forum and the Internet but didn’t find anything. If I missed a relevant post please send me a link.
Particulars:
Hardware/Software
mac-mini m1 2020
OS Sonoma 14.5
Arduino IDE 2.3.2
macbook pro 2019
OS Sonoma 14.5
Arduino IDE 2.3.2
SparkFun_TMAG5273_Arduino_Libraries
1.0.3
1.0.1
1.0.0
Thanks in advance.