Giter VIP home page Giter VIP logo

smoothie-nuttx's Issues

CDC driver crashes when given buffers > 64

Writing to the USB CDC with write() will crash if the buffer is more than about 64 bytes.
This makes sense as the USB blocks are 64 bytes, but the driver should not crash it should split the buffer up into 64 byte chunks.

CDC serial on nuttx needs to honor USB flow control

Right now if you stream over the USB serial most of the buffers are lost as there is no flow control.
Smoothie V1 uses USB native flow control so the amount of data from the host to the board is controlled by the flow control and no buffer are lost and we can do things like upload and fast-stream.

Fix ENOTCONN for USB CDC driver

opening a USBCDC that is not connected should return ENOTCONN, but it only does so the first time. The second call always returns ok. This makes it impossible to properly detect if a host is connected or not, and also no way to see if the host has disconnected.

ethernet init hangs if no ethernet present

#0  0x140842fe in lpc43_ethreset (priv=0x10002624 <g_lpc43ethmac>) at chip/lpc43_ethernet.c:3423
#1  0x1408432c in lpc43_ifdown (dev=dev@entry=0x10002660 <g_lpc43ethmac+60>) at chip/lpc43_ethernet.c:2305
#2  0x14084a1a in lpc43_ethinitialize () at chip/lpc43_ethernet.c:3842
#3  up_netinitialize () at chip/lpc43_ethernet.c:3869
#4  0x1405c1e6 in up_initialize () at common/up_initialize.c:267
#5  0x14059e5a in os_start () at init/os_start.c:691
#6  0x1405bd4c in __start () at chip/lpc43_start.c:355

Certain boards will have no ethernet populated, and we do not want to have to support two different versions of nuttx, it would be nice if ethernet setup could gracefully fail if the ethernet chips are not present.

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.