View Code? Open in Web Editor
NEW
This is a open source utility tool for the ClusterDuck Protocol. The reason of building this tool is to create binary files with unique id's from a master Arduino ino file using Arduino-CLI. In turn this helps speed up the process of flashing esp32 (CDP Duck) devices
License: GNU General Public License v2.0
cdpbinutility's People
Contributors
Stargazers
Watchers
cdpbinutility's Issues
How to recreate this error:
get CDP Bin Utility installed and running via instructions on the READMD
generate some Bin files with unique ID's by running this ./ -c 2 -f <your_master_Ino>
Now turn on your Duck device and navigate to <your IP/update> usually 192.168.1.1/update
username and password are the credentials to update
find the .bin file you want to update to and hit the upload button
once you hit the upload button watch the duck device serial log you will see the following error
ERROR: [INF: DuckNet.cpp] Pause Radio and starting OTA update [LINK] sensor data: link samd:1 [INF: DuckPacket.cpp] prepareForSending: DATA LENGTH: 11 TOPIC: 16 [DBG: DuckPacket.cpp] SDuid: 5A69385861457957 [DBG: DuckPacket.cpp] DDuid: 0000000000000000 [DBG: DuckPacket.cpp] Muid: 5A6938586145795700000000000000003734304D [DBG: DuckPacket.cpp] Topic: 5A6938586145795700000000000000003734304D10 [DBG: DuckPacket.cpp] Offset: 5A6938586145795700000000000000003734304D1027 [DBG: DuckPacket.cpp] duck type: 5A6938586145795700000000000000003734304D102703 [DBG: DuckPacket.cpp] hop count: 5A6938586145795700000000000000003734304D10270300 [DBG: DuckPacket.cpp] Data CRC: 5A6938586145795700000000000000003734304D102703001127F61D [DBG: DuckPacket.cpp] Data: 5A6938586145795700000000000000003734304D102703001127F61D6C696E6B2073616D643A31 [DBG: DuckPacket.cpp] Path: 5A6938586145795700000000000000003734304D102703001127F61D6C696E6B2073616D643A315A69385861457957 [DBG: DuckPacket.cpp] Built packet: 5A6938586145795700000000000000003734304D102703001127F61D6C696E6B2073616D643A315A69385861457957 [INF: DuckRadio.cpp] TX data [DBG: DuckRadio.cpp] -> 5A6938586145795700000000000000003734304D102703001127F61D6C696E6B2073616D643A315A69385861457957 [DBG: DuckRadio.cpp] -> length: 47 Guru Meditation Error: Core 1 panic'ed (Cache disabled but cached memory region accessed) Core 1 register dump: PC : 0x400d5d9c PS : 0x00060034 A0 : 0x40084774 A1 : 0x3ffbe7b0 A2 : 0x0000001a A3 : 0x3ffc287c A4 : 0x00000000 A5 : 0x04000000 A6 : 0x3ff42000 A7 : 0x700000bb A8 : 0x80080f80 A9 : 0xd0000070 A10 : 0x00000000 A11 : 0xb0000000 A12 : 0x00060023 A13 : 0x3ffbe790 A14 : 0x3ffbe7d8 A15 : 0x00000001 SAR : 0x00000016 EXCCAUSE: 0x00000007 EXCVADDR: 0x00000000 LBEG : 0x4000c349 LEND : 0x4000c36b LCOUNT : 0x00000000 Core 1 was running in ISR context: EPC1 : 0x40062235 EPC2 : 0x00000000 EPC3 : 0x00000000 EPC4 : 0x400d5d9c Backtrace: 0x400d5d9c:0x3ffbe7b0 0x40084771:0x3ffbe7d0 0x40062232:0x3ffd9530 0x4009237b:0x3ffd9550 0x400923b2:0x3ffd9580 0x40092451:0x3ffd95b0 0x400928e6:0x3ffd95d0 0x40086dd1:0x3ffd95f0 0x40086e42:0x3ffd9610 0x400e4ded:0x3ffd9630 0x400da992:0x3ffd9650 0x400dab49:0x3ffd9670 0x400d23ea:0x3ffd9690 0x4015a7bb:0x3ffd9700 0x4015a6b2:0x3ffd9750 0x400dc835:0x3ffd9780 0x400ddf92:0x3ffd97f0 0x400de16d:0x3ffd9830 0x400e0391:0x3ffd9850 0x400e0411:0x3ffd9890 0x400e0a22:0x3ffd98b0 0x40088b7d:0x3ffd98e0
Notes:
The bin files seem to be getting corrupted by Arduino-CLI since it does compile differently than Arduino IDE