Jump to content

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


vamzi

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines