patience4711 / read-APSystems-YC600-QS1-DS3

Software for an esp8266 nodemcu to read data from APS inverters.
130 stars 24 forks source link

objcopy CC2530ZNP-with-SBL.hex fails #63

Closed silbor closed 2 years ago

silbor commented 2 years ago

Hi there,

I am trying to convert ESP-ECU-9_6/CC25xxfirmware ds3/CC2530ZNP-with-SBL.hex to a bin to flash to a regular 2530 board, using ccloader on a D1.

Using the instructions on https://zigbee.blakadder.com/flashing_ccloader.html I tried first on Linux (Ubuntu), then on Windows 10 with objcopy(.exe) --gap-fill 0xFF --pad-to 0x040000 -I ihex CC2530ZNP-with-SBL.hex -O CC2530ZNP-with-SBL.bin

On both platforms this fails with Invalid bfd target

Flashing the 2530 with the regular Zstack bin works fine using ccloader, and ECU works fine, reports Zigbee is up etc, but of course that does not support the DS3.

My question :

Thank you,

patience4711 commented 2 years ago

You missed the -O binary flag. I renamed the ds3 file to from CC2530ZNP-with-SBL.hex to CC2530ZNP-with-SBL-ds3.hex Now i tried it with objcopy --gap-fill 0xFF --pad-to 0x040000 -I ihex CC2530ZNP-with-SBL-ds3.hex -O binary CC2530ZNP-with-SBL-ds3.bin and it works.

I used Bash on ubuntu on Windows, a linux shell running on windows10

silbor commented 2 years ago

Confirmed from this side, thank you!