Comments (8)
Ah, I didn’t know macOS was more restrictive.
That’s a pity.
Does Miniterm start if you set it to 256000? (You wouldn’t see sane output though, because the Kerne binary is hardcoded to 576000.
from rust-raspberrypi-os-tutorials.
I read up a bit on it. Seems macOS usually doesn’t allow more than 230400 when opening the device, but it seems there is a way to circumvent it using stty.
Can you do a test for me?
- change the baudrate in miniterm.rb back to 230400.
- Start the Miniterm.
- In a different console, execute
stty -f /dev/USB_SERIAL_NAME 576000
- Only now power the RPi and check if you can see the console output.
For reference: https://stackoverflow.com/a/32083512
from rust-raspberrypi-os-tutorials.
Does Miniterm start if you set it to 256000? (You wouldn’t see sane output though, because the Kerne binary is hardcoded to 576000.
Yes. It works fine when I revert ee52e8e288ef6f00416eed94921c2b0e1acfab73
❯ DEV_SERIAL=/dev/tty.usbserial-1420 make miniterm
Miniterm 1.0
[MT] ✅ Serial connected
[0] Booting on: Raspberry Pi 4
[1] Drivers loaded:
1. BCM GPIO
2. BCM PL011 UART
[2] Chars written: 93
[3] Echoing input now
kjkdsafdsa
[MT] Bye 👋
I'll try the test using stty.
from rust-raspberrypi-os-tutorials.
@andre-richter It seems 576000
is invalid value on macOS.
stty -f /dev/tty.usbserial-1420 576000
stty: tcsetattr: Invalid argument
The value 460800
which is mentioned in the stackoverflow was valid.
$ stty -f /dev/tty.usbserial-1420 460800
$ echo $?
0
from rust-raspberrypi-os-tutorials.
Thanks!
Then I might need to make the whole tutorials use 460800 to solve this issue and adapt miniterm.rb to spawn the stty when on macOS.
from rust-raspberrypi-os-tutorials.
@andre-richter I've created PR to fix this problem.
I've checked it works on my macOS.
Please review & merge it If it looks good. #96
from rust-raspberrypi-os-tutorials.
Hi @sachaos,
could you please try out #97 on your Mac and tell me if it works?
I bumped to 921_600 baud + some more fixes.
I added you as co-author of this new PR to credit your findings.
from rust-raspberrypi-os-tutorials.
@andre-richter Thank you! I'll try the PR.
from rust-raspberrypi-os-tutorials.
Related Issues (20)
- invalid file operation error HOT 3
- error[E0463]: can't find crate for `core` HOT 2
- Complete Chinese Translation HOT 3
- I want to know about other microcontrollers, you can refer to this example HOT 3
- Pure rust chainboot HOT 1
- Cannot start to work with this repo
- error: linker `cc` not found [Makefile:123: target/aarch64-unknown-none-softfloat/release/kernel] Error 101 HOT 1
- chapter 6 can not get correct output, stuck at: [ML] Requesting binary HOT 1
- everything seems to work fine but I cant input anything HOT 3
- Miniterminal not working on Raspberry pi 4 HOT 1
- ICR management question
- Error regarding Github CI/CD HOT 3
- Depracated link in The tl;dr Version subsection of README.md file HOT 2
- Invalid links in 11_exceptions_part1_groundwork/README.md HOT 2
- Consider generating these documents into a website
- Plans for even more embedded devices
- Please Change README HOT 2
- Why use Makefile handle build process? HOT 1
- Currently porting to RISC-V
- What determines the value of GPIO_PUP_PDN_CONTR_REG ?
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 rust-raspberrypi-os-tutorials.