Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

trying to read debug output of rock 3a using esp 32

Featured Replies

i am using arduino ide, my plan is to keep the eps32 connected to rock3a, and access the debug logs from the browser,

this is the code i have used to see if the esp32 is able to read data form rock 3a,
 

#define RXD2 16

#define TXD2 17


void setup() {

  // Note the format for setting a serial port is as follows: Serial2.begin(baud-rate, protocol, RX pin, TX pin);

  Serial.begin(115200);

  //Serial1.begin(9600, SERIAL_8N1, RXD2, TXD2);

  Serial2.begin(15000000, SERIAL_8N1, RXD2, TXD2);

  Serial.println("Serial Txd is on pin: "+String(TX));

  Serial.println("Serial Rxd is on pin: "+String(RX));

}


void loop() { //Choose Serial1 or Serial2 as required

  while (Serial2.available()) {

    Serial.print(char(Serial2.read()));

  }

}

 

on serial monitor i am getting the data but only able to see boxes you can see the same in the image attached

can esp32 read the serial debug uart messages?

what am i doing wrong?

my rock 3b keeps hanging after a while and i am unable to pinpoint the exact reason it hangs, so only trying to this

 

 

 

Screenshot (2).png

Max theoretical esp32 chip UART speed is 5Mbps, but nobody can reach this speed - max "config speed" is 921600 and even on 460800 you can get garbage and data loss 😞

 

For RockPi you need 1.5Mbps. I don't know why Radxa need such speed, may be they think "fast is better"

 

I use BeagleBone single board computer for connecting to my RockPi3A (because HDMI not working in modern kernels), and it is working perfectly. BeagleBone has fastest UARTs avaliable in pocket size

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.