Comments (4)
Looks like something is going wrong indeed, the calculation of the CRC seems to be correct the first time, but the second time the chip is giving you a different value.
What happens when you do a read
and compare the read hex file with the original?
Could it be that your code altered its own contents in between the flash and then the second verification?
from cc2538-bsl.
Thank's for the fast reply :-). Meanwhile I tested with another firmware-image, but the same issue here as well.
Could it be that your code altered its own contents in between the flash and then the second verification?
I do not know - It's an image of @Koenkk resp. slae.sh.
Here are the results of the read
followed by a CRC32-check, which results in different checksums :-( Maybe the image works as designed despite the crc32-difference? I will try to check this out with @Koenkk.
Read from CC2652RB-Stick followed by a CRC32-check:
$ sudo cc2538-bsl/cc2538-bsl.py -r -l 360448 -p /dev/ttyUSB0 -b 115200 znp_CC2652RB_20200715-from-stick.bin_
Opening port /dev/ttyUSB0, baud 115200
Connecting to target...
CC1350 PG2.0 (7x7mm): 352KB Flash, 20KB SRAM, CCFG.BL_CONFIG at 0x00057FD8
Primary IEEE Address: 00:12:4B:00:23:93:37:48
Reading 360448 bytes starting at address 0x0
Read done
$ ls -l
insgesamt 1108
drwxr-xr-x 4 pi pi 4096 Nov 27 18:48 cc2538-bsl
-rw-r--r-- 1 pi pi 404980 Jul 8 19:52 CC2652RB_coordinator_20210708.hex
-rw-r--r-- 1 pi pi 360448 Jul 22 2020 znp_CC2652RB_20200715.bin
-rw-r--r-- 1 root root 360448 Nov 29 18:03 znp_CC2652RB_20200715-from-stick.bin
$ rhash --simple --crc32 *.bin
47570b28 znp_CC2652RB_20200715.bin
747f9c98 znp_CC2652RB_20200715-from-stick.bin
from cc2538-bsl.
I finally succeeded in bringing the application on the stick to cooperate with zigbee2mqtt by @Koenkk :-) So the flashing must have been correct, otherwise it would not run, right?
The question, why the checksums are different is still unsolved, but as long as the software runs...
So, thank's a lot for your help. This issues can be closed from my point of view.
from cc2538-bsl.
Seeing the same size but different hashes on the read operation, it does look like the code altered its own flash in some way. That would be my best guess, since the crc does match on the write operation.
You could do a diff between both and check which sections are different, and look what those sections mean.
I'll close this one for now since it looks like the script isn't malfunctioning.
Anyone feel free to re-open if you discover otherwise.
Thanks for the report @charraeus
from cc2538-bsl.
Related Issues (20)
- Move size check before erase HOT 2
- Flashing ZBDongle-P is only temporary HOT 1
- setuptools.installer and fetch_build_eggs are deprecated. HOT 1
- add cc2651 HOT 2
- SyntaxError invalid character HOT 1
- Timeout waiting for ACK/NACK after 'Bank Erase (0x2C)'
- ERROR: cannot access local variable 'chip' where it is not associated with a value HOT 1
- --bootloader-sonoff-usb doesn't work as expected HOT 12
- help needed: flash/wiring custom cc2652p?
- ERROR: local variable 'chip' referenced before assignment HOT 1
- [REQUEST] Backport improvements from "CC1352 Flasher" fork by the BeagleConnect project HOT 7
- Q: Any way to export the current firmware HOT 1
- [NEW HARDWARE] CC2674 (CC2674P/CC2674R) and CC1354 (CC1354P) compatibility? HOT 1
- -p/--port option seems broken HOT 16
- ERROR: 'Namespace' object has no attribute 'force_speed' HOT 10
- General Code improvements HOT 3
- "ERROR: int() can't convert non-string with explicit base" when flashing CC2652P HOT 1
- Duplicate of #170 (solved): ERROR: int() can't convert non-string with explicit base HOT 1
- ERROR: int() can't convert non-string with explicit base HOT 12
- Hangs on 'Reading data from ***.hex HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cc2538-bsl.