Comments (4)
I traced this back to revision r1955. In that revision, the "wait for TX done"
line that is ran after $ is changed. It used to read:
while (UART1TXRdy == 0); //wait untill TX finishes
But since that takes the address of the UART1TXRdy function (which is always
non-zero) this comparison would always be false and this loop would never
block. After r1955, the line reads:
while (0 == UART1TXRdy()); //wait untill TX finishes
So now the function is actually called. I presume that for some reason that
loop never finishes. Perhaps the TX never completes because it doesn't use
interrupts on the BPv3 (that's just a guess, though).
In any case, if I comment out this while loop, the $ command works as expected
again.
Original comment by [email protected]
on 20 Oct 2013 at 8:58
from dangerous-prototypes-open-hardware.
Cool, thanks :)
On 20 October 2013 21:58, <[email protected]
Original comment by [email protected]
on 20 Oct 2013 at 11:31
from dangerous-prototypes-open-hardware.
There is more related discussion here:
http://dangerousprototypes.com/forum/viewtopic.php?f=4&t=5052&p=54931#p54923
Original comment by [email protected]
on 21 Oct 2013 at 8:29
from dangerous-prototypes-open-hardware.
I think I found a solution for the issue:
Change
while (0 == UART1TXRdy()); //wait untill TX finishes
To
while (U1STAbits.TRMT == 0); //wait untill TX finishes
This way we wait to empty the WHOLE TX buffer before jumping to the bootloader.
Original comment by [email protected]
on 31 May 2014 at 8:43
from dangerous-prototypes-open-hardware.
Related Issues (13)
- Can't set per connection window size in uip HOT 1
- I2C software baud rates much different from hardware baud rates
- Patch for /trunk/Bus_Pirate/Firmware/SPI.c HOT 1
- Update for I2C script in PyBusPirateLite
- Update to SPI script in pyBusPirateLite
- You do not have sufficient permissions to access this page. HOT 2
- RTCK signal wrong direction on BusBlaster
- CDC serial driver for BusPirate v4 on windows 7 64-bits HOT 2
- No communication with V4
- Patch for /trunk/Bootloaders/USB-CDC-JTR/pirate-loader/pirate-loader.c
- Patch for /trunk/Bootloaders/USB-CDC-JTR/pirate-loader/build-unix.sh
- no exceptions in case of failures
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 dangerous-prototypes-open-hardware.