Open omerk opened 3 years ago
Hello @omerk How do I go about installing the firmware? I dont see a DIP switch on the board to toggle programming mode Thank you in advance Sylvain
@srandier programming zoe2 happens via BSL, much like zzh, as CC1352P has the ROM bootloader. Instructions for BSL: https://electrolama.com/projects/zig-a-zig-ah/#flashing-using-bsl
To put zoe2 into BSL mode:
1) press and hold BSL button 2) press and release RESET button after a second or so 3) release BSL button
CC1352P should be in BSL mode after this. You can run cc2538-bsl.py as shown in that link after that.
Please make sure you use CC1352P2_CC2652P_other_coordinator_20210120.zip
for now as using others might disable BSL and require JTAG intervention.
Thanks a lot @omerk ! I flashed it with success. More testing tomorrow.
sudo ./cc2538-bsl/cc2538-bsl.py -p /dev/ttyAMA0 -evw CC1352P2_CC2652P_other_coordinator_20210120.hex
Opening port /dev/ttyAMA0, baud 500000
Reading data from CC1352P2_CC2652P_other_coordinator_20210120.hex
Your firmware looks like an Intel Hex file
Connecting to target...
CC1350 PG2.0 (7x7mm): 352KB Flash, 20KB SRAM, CCFG.BL_CONFIG at 0x00057FD8
Primary IEEE Address: 00:12:4B:.....
Performing mass erase
Erasing all main bank flash sectors
Erase done
Writing 360448 bytes starting at address 0x00000000
Write 104 bytes at 0x00057F980
Write done
Verifying by comparing CRC32 calculations.
Verified (match: 0x1e5bc0ae)
sudo ./znp-uart-test.py
Got 7 bytes in response to PING command: b'\xfe\x02a\x01Y\x06='
PASS|OK
These are running notes for the zoe2 prototypes. Documentation is a work in progress but this should serve as a good starting point for setting up your Pi with zoe2.
Initial Setup: Follow instructions here to reclaim the UART on the Pi and disable WiFi and Bluetooth.
Firmware: A firmware that supports the module on zoe2 is not released yet (discussion), for now you can experiment with the
CC1352P2_CC2652P_other_coordinator_20210120.zip
firmware from @Koenkk's firmware repo although this probably won't work great. IMPORTANT: Do not use any other firmware file as you will disable the BSL on the board and will need to use JTAG to reset your board Probably best to keep an eye on this issue here as I will be doing some testing this weekend.Serial port: After you disable the console, use
/dev/ttyAMA0
in your z2m/HA config. You can also test if your module is running the ZNP coordinator firmware with znp-uart.test.py (don't forget to change the port!)PoE: See notes here. Summary: Use either passive 48V or plug your Pi into a 802.3af compliant PoE port.
Please add comments/your findings here.