Comments (8)
Ok, I think I managed to get it correct. Maybe it is the fault of python 2.7?
mdebug(5, " 0x%x: 0x%02x%02x%02x%02x" % (conf['address']+(i*4), rdata[3], rdata[2], rdata[1], rdata[0]), '\r')
file(args[0], 'ab').write(''.join(str(reversed(rdata))))
from cc2538-bsl.
Interesting bug, thanks for reporting it.
Are you getting back the correct data after making your proposed fix? It sounds to me that cmdMemRead
is returning something that it shouldn't into rdata
from cc2538-bsl.
Hi!
Sorry for slow response.
Actually this fix did not work, it just enabled to run the script with no problems, but inside the memory file was still incorrect data. And I have lost the file now, but there was text something about the iterator or object at 0x######. Can you assert which python version you are specifically running.
from cc2538-bsl.
The script should work with both 2.7 and 3.4.
Are you maybe willing to share the firmware file with me, so I can try to reproduce the error? If you still have it.
from cc2538-bsl.
It is Contiki build, I simply am not allowed to share the specific binaries :(
from cc2538-bsl.
I understand, can you share the command you used to try to read the memory? Could have something to do with the length and location.
from cc2538-bsl.
Sorry all gone by now. I will try to reproduce it when I have time, I will just try out and experiment with the script. Could you please hold on for now?
from cc2538-bsl.
No problem, I'll close this for now, feel free to comment when you come across the problem again.
from cc2538-bsl.
Related Issues (20)
- Writing 360382 bytes starting at address 0x00000000 ERROR: Invalid data size: 360382. Size must be a multiple of 4. HOT 5
- SyntaxError: invalid syntax (Line 82) HOT 4
- Flashing z-stack examples fail with error "Timeout waiting for ACK/NACK after 'Get Status (0x23)'" HOT 3
- Automatically start BSL mode on Itead Sonoff USB stick HOT 41
- Verify CRC32 results in error HOT 4
- Timeout waiting for ACK/NACK after 'Synch (0x55 0x55)' HOT 15
- ERROR: Could not determine firmware type. Magic indicates 'inode/chardevice' HOT 1
- Docker support HOT 5
- Am I doing it right?? HOT 4
- [REQUEST] Ability to auto-detect known dongles based on information provided in info USB-to-UART bridge/converter chip HOT 2
- ERROR: Timeout waiting for ACK/NACK after 'Send data (0x24)' HOT 3
- Executing cc2538-bsl require pyserial which I already have installed HOT 3
- Timeout waiting for ACK/NACK after 'Get ChipID (0x28)' HOT 4
- Timeout waiting for ACK/NACK after 'Send data (0x24)'. HOT 2
- --ieee-address does not update work with sonoff zigbee 3.0 USB dongle plus HOT 3
- Which Pyhon version is supported? HOT 7
- [REQUEST] SL Web Tools implementation of cc2538-bsl for flashing TI firmware via a web browser? HOT 4
- Sonoff zigbee 3.0 USB dongle plus doesn't stay connected as a ROUTER - goes offline HOT 1
- Timeout waiting for ACK/NACK HOT 1
- [SUGGESTION] Copy CLI syntax from "Universal Silicon Labs Flasher" and rename to "Universal Texas Instruments Flasher"
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.