Comments (8)
I have not used the c utility (I use pyupdi) but the symptom sounds like the double break recovery is not quite right.
You see, UPDI needs a slight nudge to wake it up (negative edge), but if its awake already, then the nudge is seen as a start-bit, which results in a framing error, which needs a double-break to recover from.
Omitting that nudge and going straight ahead with a SYNC will result in the opposite problem in case its not awake, and a similar recovery is required.
Not offering a fix, just a hint at what could be going wrong.
from cupdi.
Ah thanks - that sounds very plausible. Does pyupdi not have the same problem in which case I'll look in there to see if they have a fix for this.
from cupdi.
Ah - just realised you're the person who wrote pyupdi. I had to try the c version as the Python one wouldn't run on my PC - serial not found errors.
from cupdi.
pyupdi should work just fine (and if not it should be fixed), so give it a try again perhaps.
If you are using Linux, remember you need to tweak the permissions of your serial port.
from cupdi.
Never used Python before but it gave this.
Traceback (most recent call last):
File "C:\Users\Mike\Downloads\pyupdi-master\pyupdi-master\pyupdi.py", line 11, in
from updi.nvm import UpdiNvmProgrammer
File "C:\Users\Mike\Downloads\pyupdi-master\pyupdi-master\updi\nvm.py", line 6, in
from updi.application import UpdiApplication
File "C:\Users\Mike\Downloads\pyupdi-master\pyupdi-master\updi\application.py", line 7, in
from updi.link import UpdiDatalink
File "C:\Users\Mike\Downloads\pyupdi-master\pyupdi-master\updi\link.py", line 6, in
from updi.physical import UpdiPhysical
File "C:\Users\Mike\Downloads\pyupdi-master\pyupdi-master\updi\physical.py", line 6, in
import serial
ModuleNotFoundError: No module named 'serial'
from cupdi.
Without going into detail, this should help:
pip install pyserial
Then start to learn python ;)
from cupdi.
I'm a pure C++ person - anything else other than HTML/Javascript are things I'd never actually program in if I can avoid it :-)
from cupdi.
Nice to see you, Mraardvark.
Hi, Mike:
Iām not suggest use CH340 for UPDI communication. You could see the datasheet:
https://cdn.sparkfun.com/datasheets/Dev/Arduino/Other/CH340DS1.PDF
It could not support 1.5 stop bit, not matches UPDI protocol.
The most USB/Serial part i suggested use for the UPDI are these below:
SiliconLab CP210x (be carefull don't use pirate copy part)
Or use MCU type like ATMEL SAML21/D21:
https://www.microchip.com/Developmenttools/ProductDetails/ATSAMD21-XPRO
https://www.microchipdirect.com/product/search/all/ATSAMD21-XPRO
Any question could message me by Wechart: 126676275
or Mail to [email protected]
from cupdi.
Related Issues (2)
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 cupdi.