New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash on IO Serial constructor #1226
Comments
I think this is a kind of null pointer exception.
The current serial.c has stopped using the inline copy of uart functions, despite the discussion suggesting its use in Issue #931. It appears that the same problem is still occurring. Is that correct? |
Thank you for the analysis. I'm not sure how that change was disabled. After re-enabling, some small changes were needed to get it building. But then it works. We'll get that merged. |
Could someone please confirm this is truly fixed? I'm unable to run the serial echo example even with the latest SDK (4.3.0-31-g1918979ce). Tried this on a Any idea what I'm potentially doing wrong? |
@ralphwetzel, yes it is working. But, what your are trying won't work as-is. Let me explain. The default serial port on Moddable is on pins 1 and 3. You can confirm that in xsbug: Those are the same two pins are used for by the debugging communication in a debug build. When the serial instance is created, it overrides the debugging connection and so xsbug stops responding. (We should change that so it throws an exception, so that you would have a better idea what is happening) You have a couple options.
|
Hi Peter! |
(Closing as this has been fixed) |
Build environment: Linux (22.04)
Moddable SDK version: v4.2.0
Target device: M5Stack Basic
Description
The application crashes when instantiating the Serial class of TC53 IO. As a result, examples/io/serial/echo keeps rebooting.
Steps to Reproduce
cd $MODDABLE/examples/io/serial/echo
mcconfig -m -i -p esp32/m5stack
Expected behavior
Serial
correctly instantiates and work.Other information
Below is the core dump printed via instrumental build.
The text was updated successfully, but these errors were encountered: