-
News of simpler solution to install tool chain for developing for Raspberry Pi Pico using C or C++ on Windows in VS Code. https://www.raspberrypi.com/news/raspberry-pi-pico-windows-installer/
Also new debug probe for £12. https://www.raspberrypi.com/news/raspberry-pi-debug-probe-a-plug-and-play-debug-kit-for-12/
-
-
Looks like Raspberry Pi Pico W (wireless) is also to get Bluetooth LE support very soon according to this .
On another thread @JumJum wrote last year on his efforts on a port to the Pi Pico W but has gone quiet now.I’m very intrigued. But also recognise the challenge to Espruino commercial model.
I had a look at how to build on all the above, but can’t quite see the way through. -
Hi,
Ive got a version of this change that im testing. Ive set out an issue https://github.com/espruino/EspruinoTools/issues/154
to track this as a change. See the issue for more detail and link to my fork. -
-
Thanks @fanoush , that's a great start.
-
-
Hi,
Is there an existing way to colour text being displayed in the Web IDE Terminal window.
Specifically for colouring the text from the execution of console.log('string') in espruino.It seems a common method would be to prefix the string with an ANSI escape sequence such as
Red: \u001b[31m. or green
Green: \u001b[32m
This works in node in vscode.Ive tried this in Espruino WebIDE
console.log (" \u001b[31m HelloWorld ");
and it looks like the the escape sequence is being trapped , because not all of it is printed.
Ive had a poke around the WebIDE code on github but I cant find the code that handles the terminal window. I can see that there is colour styling of the code editor window.
My use case is im having a quick look at the feasability of a simple jest style unit testing tool and would like to colour the output to the console. Which looks good so far. (colour is a bit of a nice to have I would agree)
Any cluse on an approach to implement the coloured output text appreciated. And a high level of how the terminal window is driven ??. Is there is some escape sequence to HTML going on somehwere ??
Thanks in advance, Simon
-
@JumJum , i hope you are well.
Do think you will be sharing anything further on this ?
No pressure just interested in seeing this happen one day, and supportig if needed. -
-
I have got your port building using VSCode on Windows. Espruino is firing up in the Espruino IDE. Interactive is executing but save to flash and execute is not. Im going to try and setup a Debug test rig (with RP Pico W) as per https://community.element14.com/products/raspberry-pi/b/blog/posts/debugging-the-raspberry-pi-pico-on-windows-10
Please can you share any updates when you can.
-
-
@JumJum thanks for sharing this. And well done.
-
-
so Ive had my implementation of Xstate in Espruino on hold while working on getting USB Host working on Pico (both essential to my project) . But the status of Xstate in Espruino work is well beyond proof of concept and is a point of testing nested states , which are one of the most basic yet usefull extensions of statecharts over simple finite state machines.
But in parallel the Xstate world is moving on leaps and bounds.
https://stately.ai/blog/stately-editor-public-beta
Now the capability is there to design with drag and drop , inside visual studio, a state chart representation of a finite state engine and generate the javascript code and object definition of the state engine.
So this means with a small javascript framework in Espruino we would be able to change the logic of our microcontroller in a standard , visual representation, readily transferrible from one Espruino Hardware environment to another. Theres a great vision here. (just got to get USB host working !!)check out Xstate when you can and imagine it working in Espruino.
will update ASAP
-
-
-
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.
- building Espruino for pico on Ubuntu and getting vars for build
-
-
-
-
-
From the GitHub commits and changes of the STM drivers in Espruino (targetlibs/stm32usb/Src/) back in 2015 , it looks like GWilliams was very busy and there were a ton of changes to the STM libraries to get USB working in Espruino. SO .... clearly changing existing functionality to use more recent STM libraries is not agood idea ! So approach has to be that any Host functionality is all incremental and sits beside existing device virtual com and HID. However that also makes sense, looking at the current STM host libraries in
https://www.st.com/resource/en/user_manual/dm00105256-stm32cube-usb-host-library-stmicroelectronics.pdf... they would be a parallel set to the existing device libraries on the stack. See Attached pic.
-
Ah … funny indeed … I missed the link. Well done on the tools. Hopefully these will inspire a few to get involved in a port of espruino. I’m still up for supporting but can’t manage it on my own. I’ll be trying the out the probe soon. Cheers