• Quick status ... still putting in lots of hours on this. Steep learning curve for me. Achieved so far,

    • building Espruino for pico on Ubuntu and getting vars for build
    • building Espruino in Stmcube ide with hacked make file.
    • Wired up pico with swd via a Nucleo SWD and so able to run debug via stmcube ide on Espruino interpreter, with power and active console via serial on pico, so can trace thru existing interpreter functionality eg serial.inject. (See pics attached)
    • Started custom lib in Espruino Usbhost , with jswrap_usbhost
    • got standalone stmcubef4 usb host library running with a simple main on discovery board. Can see init and receive data callbacks that need to be implemented in Espruino idle loop via wrapper.
    • Currently copying over usbhost library components from stmcubef4 and trying to build Espruino with them included, issues are newer versions of common files down the usb stack that are shared With existing Espruino usb client stack. Trying to understand and work the overlap. Don’t want to give up on building with both host and client stacks in place.
    • Initial dev target is ‘just’ disable usb client, init usbhost, and print received data to console.
    • I will be seeking advice , in due course, on plumbing in usbhost cdc get data into an usbhost.on(‘data’, callback) via the wrapper functionality. Looks like serial.inject has some clues.

    2 Attachments

    • 11C2601C-9015-414E-8FA0-03EDADBDE9B8.jpeg
    • 5BB08B8F-7589-4765-BF62-D972BE13C992.jpeg
About