Comments (4)
Sming doesn't use the IDF console code so alternative output mechanisms won't work.
The C3 doesn't have real USB hardware but instead provides ROM functions (esp_rom_uart_xxx()
) to access USB/CDC port.
The issue with Serial
specifically is that it refers to an instance of HardwareSerial
which is a wrapper for the low-level uart driver: code is in Sming/Arch/Esp32/Components/driver/uart.cpp
. The Esp8266 implementation supports 'virtual' ports to allow redirection inside GDB, so a similar approach could be taken here. However, serial input would need to be polled as there's no interrupt provision for the C3 that I can see.
An initial, simpler approach would be to implement a Stream
class to provide access specifically for the C3.
If you only require the port for debug_x
functions then provide an m_nputs
implementation and pass it to m_setPuts()
.
The boot loop (rapid resetting) cause could be caused by a number of issues but can usually be diagnosed via bootloader messages.
from sming.
thanks for info
from sming.
Just looking at this issue again and I was wrong about the use of esp_rom_uart_xxx
. In fact, it's got a well-defined set of low-level routines with interrupts available which can be used. I'm working up an extension to the esp32 uart driver so this can be used easily.
from sming.
The reference code is in the IDF under components/driver/usb_serial_jtag
.
from sming.
Related Issues (20)
- HostTests stalling on esp8266 `Waiting for timer1 callback test to complete` HOT 4
- Can't build for SMING_ARCH=Host in Apple M1 Pro HOT 15
- Websocket server has big delay when sending messages HOT 3
- ESP32C3 WiFi problems HOT 8
- #warning "**Y2038** time_t is only 32-bits in this build configuration stops the build for esp32 due to -Werror=cpp HOT 5
- make flash does not upload modified javascript file HOT 2
- Windows Esp8266 CI build randomly failing due to lwip2 HOT 3
- can't build for Arch host on Fedora 39 HOT 5
- ESP32 builds are massive HOT 4
- HostTests failing for esp32c3, UP timer not zero HOT 2
- Handling TCP connection errors
- DateTime checks failing on esp32 HOT 1
- ESP32 IDF defines different value for LittleFS partitions
- Esp8266 and Esp32 PHY init data storage HOT 1
- Documentation build fails in Windows
- Manual approval required for workflow run 9989247967 HOT 2
- *** Preparation for Release 6.0.0 ***
- [NEWS] Sming appears in the German "Make Magazin"
- Error during compiling HOT 2
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 sming.