Git Product home page Git Product logo

Comments (6)

andre-richter avatar andre-richter commented on April 28, 2024 1

From the datasheet, your USB-serial looks good. It supports the 921_600 that is needed.

Maybe there is an issue with the ruby-serial used by Miniterm to program the baud rate. A bit of googling turned up this interesting article:
https://www.turais.de/mac-os-x-screen-wont-connect-with-the-correct-baudrate/

Can you please use the binary from Tutorial 8 (it will be useful because it will constantly output timestamps), and then try to connect to the RPi using the two methods described in the link?

Will be interesting to see if you can see the time stamps appear.

from rust-raspberrypi-os-tutorials.

andre-richter avatar andre-richter commented on April 28, 2024

Hi!

From what you have written, it seems you did everything correctly from SW perspective.

The fact that you see two malformed characters appearing on the console could be a hint that there is a problem with the baud rate.

I could think of two reasons:
It is either your UART hardware that does not support the selected baud rate of the tutorials, or the programming of the baud rate of the UART’s driver in your OS fails.

Could you first check the data sheet of the specific HW you are using if the baud rate is supported?

If yes, then we’d have to look what happens on the driver side. You are using macOS?

from rust-raspberrypi-os-tutorials.

martinomburajr avatar martinomburajr commented on April 28, 2024

Hey thanks for getting back to me! 🙏

I am using MacOS to develop (10.15.7), I checked the Raspberry PI website for the RPI4, it seems that the baud rate is accepted.

USB Debug Cable

The datasheet of the cable Im using on programmable baud rate from 75 bps to 6 Mbps which I guess is less than the 48000000 in the tutorial, however the cable is made by Adafruit for Raspberry PI.

I went through the following link talking about baud rates on the RPI-4, wondering if I should try the 64000000 value instead
https://raspberrypi.stackexchange.com/questions/118887/error-when-setting-4000000-uart-baud-rate-at-rpi-4

from rust-raspberrypi-os-tutorials.

martinomburajr avatar martinomburajr commented on April 28, 2024

I attempted running the following.

  1. cd into Tutorial 8
  2. In Terminal 1: I ran BSP=rpi4 make && screen /dev/cu.usbserial-14220 921600 in one terminal
  3. In Terminal 2: I ran sudo stty -f /dev/cu.usbserial-14220 921600
  4. I powered the RPI4 and got the following output in Terminal 1.

Output

���

Still seems to be the same error. I also used the first method outlined in the article and got a response. Does this have anything to do with perhaps the files in the SD card?

from rust-raspberrypi-os-tutorials.

andre-richter avatar andre-richter commented on April 28, 2024

After the make, and before launching screen, did you copy kernel8.img on the SD card?

from rust-raspberrypi-os-tutorials.

andre-richter avatar andre-richter commented on April 28, 2024

Closing this for now due to no process. I can reopen anytime if needed, just comment here again 👍

from rust-raspberrypi-os-tutorials.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.