Hi all,
Recently I bought a new UNO R4 WiFi for a project with Arduino Cloud, and it was working till today where I've been getting Mqttbroker issues, and was unable to connect to the cloud. Thus, I tried to reupdate the firmware using the IDE method, and tried to reflash 0.4.1 and 0.3, which both failed. I tried to reupload an original sketch after creating a thing on arduino cloud (bare bones code to connect to the cloud). This started giving me this error in serial monitor:
SHA256: 0 bytes (of 0) read
ArduinoIoTCloudTCP::begin could not read device id.
***** Arduino IoT Cloud - configuration info *****
Device ID:
MQTT Broker: iot.arduino.cc:8883
WiFi.status(): 0
Current WiFi Firmware: 0.4.1
Firmware name: "C:\Users\admin\AppData\Local\Temp\arduino\sketches\3195BCE7394DE5B4C9296055FAF6B006/Capstone_apr17a.ino", compiled on: Apr 18 2024
Fault on interrupt or bare metal(no OS) environment
===== Thread stack information =====
addr: 20007ec8 data: 20000c50
addr: 20007ecc data: 0000587f
addr: 20007ed0 data: 00000000
addr: 20007ed4 data: 00012c79
addr: 20007ed8 data: 0001ced9
addr: 20007edc data: 40046f00
addr: 20007ee0 data: 00000000
addr: 20007ee4 data: 00012cb7
addr: 20007ee8 data: 0001ced9
addr: 20007eec data: 0000c5bf
addr: 20007ef0 data: 0001ced9
addr: 20007ef4 data: 0000ffcb
addr: 20007ef8 data: 0000ffc1
addr: 20007efc data: 00002599
====================================
=================== Registers information ====================
R0 : 00000000 R1 : 20002c9c R2 : 20002ca8 R3 : 762fbb35
R12: 20007d73 LR : 0000b2bf PC : 762fbb34 PSR: a10f0000
==============================================================
Bus fault is caused by instruction access violation
Show more call stack info by run: addr2line -e "C:\Users\admin\AppData\Local\Temp\arduino\sketches\3195BCE7394DE5B4C9296055FAF6B006/Capstone_apr17a.ino".elf -a -f 762fbb34 0000b2be 0000587e 00012c78 00012cb6 0000c5be 0000ffca 0000ffc0
Sometimes it also says "Memory management fault is caused by instruction access violation"
I've also tried to manually reflash the firmware using espflash from this guide.
but still receive the same error. Using example code from the ledmatrix works though.
Any help would be greatly appreciated. Thanks!