From ed5f13988b81e116cc323e18ef7fbe888337dc57 Mon Sep 17 00:00:00 2001 From: ma261065 Date: Sun, 10 Nov 2019 21:35:13 +1100 Subject: [PATCH] Added steps on how to get around Flash too Small error --- Zigbee.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Zigbee.md b/Zigbee.md index e8f1d7df..26d121f6 100644 --- a/Zigbee.md +++ b/Zigbee.md @@ -114,6 +114,11 @@ The CC2530 requires `Z-Stack_Home_1.2`, of type `Default` (not `Source Routing`) [ ] TIMER_SUSPEND ``` +If you get a message about the flash size not being big enough, this will be because the CC2530 is Debug Locked. This limits the ability of certain commands to report the true flash size. To fix this you need to erase the chip, which can be done as part of flashing the chip. So you will need a 16kb file to flash. The easiest way is to read the existing flash, then re-flash it, using the erase option to erase the chip. + +python Python/cc_read_flash.py -o x.hex +python Python/cc_write_flash.py --erase -p /dev/cu.usbserial-xxx -i x.hex + 4. Flash the firmware using the following command: _Flashing the CC2530 **takes about 30 minutes**_