whatnick / ATM90E26_Arduino

Demo Arduino code to test the ATM90E26 breakout
MIT License
57 stars 34 forks source link

ATM90E26 FeatherWing (Huzzah) crashing #27

Open MrPivato opened 4 years ago

MrPivato commented 4 years ago

Hi! I am using an ATM90E26 Featherwing v1.5, with an Adafruit Huzzah. The problem comes when I try the example skecth ATM90E26_Full_App.ino, I only updated it to run newer versions of ArduinoJson and WifiManager, as you can you can see here: My Fork.

When it tries to check the checksum, the result is a crash, but connection to WiFi and Thingspeak is ok. Here is the error message

{"auth":"XXXXXXXXXXX","server":"api.thingspeak.com"}connected...yeey :)
Key:XXXXXXXXXXXX
Server:api.thingspeak.com
Start ATM90Checksum 1:FFFF
Checksum 2:FFFF
Checksum 1 Error!!
Checksum 2 Error!!
Checksum 1:FFFF
Checksum 2:FFFF
Checksum 1 Error!!
Checksum 2 Error!!

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 3584, room 16 
tail 0
chksum 0xb0
csum 0xb0
v2843a5ac
~ld

If anyone could help me solve this problem I would be grateful, thanks in advance!

whatnick commented 4 years ago

In firmware interaction of the various parts is crucial. I haven't checked the code in your fork, but do you have the SPI/ UART jumpers set correctly ? Can your monitor transactions on the serial bus using a logic analyser ? Some images of your stack up and jumper settings will help with this issue. Looks like no values are being read from the ASIC hence the FFFF.

MrPivato commented 4 years ago

I am using the stacked version. Here is the image: 7a81d83a-9e7c-456e-aeaf-c8ecc3c1055c

MrPivato commented 4 years ago

Hello @whatnick Any tips?

whatnick commented 3 years ago

Could I please see the jumper settings underneath.

MrPivato commented 3 years ago

You mean here?

20201126_135546

whatnick commented 3 years ago

Please set jumpers for SPI or UART mode as appropriate. No jumpers have been set. Here please check the PCB or code repo for the jumper options.

On Fri, Nov 27, 2020, 03:57 Gabriel Pivato notifications@github.com wrote:

You mean here?

[image: 20201126_135546] https://user-images.githubusercontent.com/36276555/100376989-3a7ea680-2fef-11eb-9878-e5ff57fdbefe.jpg

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/whatnick/ATM90E26_Arduino/issues/27#issuecomment-734405123, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADX7BBPPNNGO2YQPOLY66LSR2CJHANCNFSM4SIUGOIA .