smoothieware / smoothie-nuttx Goto Github PK
View Code? Open in Web Editor NEWA version of nuttx used by smoothie-v2
A version of nuttx used by smoothie-v2
Hi,
Any one have sample code for this ethernet driver (ENC424J600).
This is called in ostreams...
https://github.com/Smoothieware/smoothie-nuttx/blob/master/nuttx/include/libcxx/ostream#L279
and causes an abort.
Temporary workaround is to return 0 in uncaught_exceptions() in libcxx/exception.cxx when nuttx is defined
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.
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.
Using the std::promise() I get this error...
exception_ptr not yet implemented
when calling set_value()
Even though exceptions are disabled.
boardctl(BOARDIOC_INIT, 0) hangs if an sdcard is not plugged in.
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.
#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.
If I set CONFIG_LPC43_USE_LOCSRAM_BANK1=y
then the memory free command returns bogus information...
total used free largest
Mem: 173136 7728 269066884 268969668
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.