-
Hello Gordon,
thanks for the detailled feedback. I did not check the changes you mentioned yet, but I followed your suggestion to add functions to your WEB IDE.
There is a download for testing available at http://www.jumware.com/espruino/webapp/EspruinoWebIDE.zip
Changes, you can find them by searching for comment with "juergen" in.- added buttons for scripts, snippets and tutorials in main.html. All open a short form with a selectbox and a checkbox to switch between replace and append.
- added initialization of new buttons in terminal.js
- added a lot of plugins for codemirror in main.html
- added initialization for extensions in terminal.js
- added additional javascript to handle new buttons
- added a minify button in main.html. Opens a short form with selectbox for type of minify, a checkbox for sending directly to device, and a button to start minify
I would like any feedback. If this is helpful, feel free to do whatever you want withit.
Now lets go through other items: - I would not automate connecting/disconnecting to COM. I like to send infos to console during debugging, which would not appear anymore. I would prefer to switch this manually.
- the "problems" found by lint are not important, missing semicolon or spaces at the end. Don't waste any time on that.
- binary format is not only a problem of lint, its also a problem for minify. As soon as more browser will support this, the problem will disappear sooner or later. Please take it as a hint only.
- extensions for code completing and for lint to match functions and syntax fo Espruino is a good direction. Right now my lack of knowledge is the main hurdle doing this.
- I am not familiar with python, therefore I would like to wait for you wasting some time for creating JSON files ;-)
regards from Krefeld(Germany about 12 degrees celsius and rainy)
Juergen
- added buttons for scripts, snippets and tutorials in main.html. All open a short form with a selectbox and a checkbox to switch between replace and append.
-
Waiting for espruinos, I decoded to start first test on STM32F4Discovery.
I had to spend some time get it running, as usualthe problem was in front of the keyboard.
Anyway, these times are gone.
First start was done with Chrome based IDE. A simple blinking started soon, perfect.
Problem I found was the CPU load.
Connecting to the COM-Port eats CPU like crazy.
Usually Chrome takes 40%, on my AMD quad core with windows 64 and 8GB.
Therefore a search started to compare against a simple terminal:
Putty and others refused to connect to COM port, at the end I got Tera Term running.
BTW, it does not take any remarkable power, so chrome does something strange.Next step was to write some short snippets.
At that time I missed the IDE, so why not write my own ?
Codemirror is a beautiful starting point, and together with some additional lines, a very, very, very first editor was born. http://www.jumware.com/espruino/espruino.html. Testing ran on FireFox only.
Added are options to- load code from espruino Github
- load examples from Github
- load some first snippets
- minify the code using Google closure compiler
During testing I found that: - console.log takes logs one parameter only
- arguments keyword is not supported
- lint finds a lot of minor problems like missing ";"
- binary format is often unknown in the big world of javascript
- minify seems to work fine with WHITESPACE ONLY
- minify my snippet for stepper with SIMPLE_OPTGIMIZATION does not work on Espruino. Syntax looks very strange to me, but all browsers took it.
- example for stepper does not work with Microstepping, I had to use a different port. Espruino gave helpful error message. Somewhere in the background Espruino seems to have helpful information about ports.
There are some COM-Plugins in the big wide world for Firefox, but I did not get any of them running. Copy & Paste was my solution to this problem. Hopefully the WebSerial API group, mentioned by Florian Bender will be succesful soon.
Anyway, I would like to add some more functions to the editor. One is to give some help to select a board and get informations to choose available pins.
There is a lot of information available in Espruino GitHub. My problem is 1st to understand and 2nd to download, since this would be a cross-Domain call. Easy solution (at least for me) would be a JSON file.
As soon as I get more devices running more snippets will be added. - load code from espruino Github
-
Hello Gordon,
good news first, it works.
@ Gordon LD7 lighted up all the time.
Thanks to your and tickTock's help most possible problems could be checked.
So at the end there was only one thing left, I took a new USB-cable out of my box and thats it. Should have done this before, its always the unexpected.
Espruino Web IDE found the port and first test with LED blinking is working.
Thanks for your help and sorry for wasting the time.
Jürgen -
Thanks tickTock and Gordon,
@tickTock, drivers are installed now, but result is the same, there is no Ports (COM & LPT) folder on my Windows 8(64 bit) PC in device manager. Chrome application does not show any port.
I tried the same on my 2nd computer (Windows 7, 32 bit). There the Ports-folder is available, showing 2 bluetoth ports (com4/com5) only. Chrome application shows com3/com4/com5, none of them works.
@Gordon, the Led (ld4?) flashes very shortly. I could install the sample application without problems, so ST-Link and flashing works. Waiting for up to 30 minutes didn't change anything.
BTW, cn1 is connected to power, cn5 is connected to PC, power LED is on, Com LED flashes red and cn5 LED is on.
If only cn1 is connected to PC, power is on, Com is on. After connecting ST-Link, com LED flashes red/green.
For testing I take 1v39, some tests with other version from nightly build gave same problems.
Regards from Krefeld(Germany, about 18 degrees Celsius and sunshine)
Jürgen -
Waiting for my espruinos I decided to start with STM32F4Discovery.
Everything worked fine up to the point, where I tried to connect to Espruino itself.
Installation of ST-Link and flashing of the software worked fine.
See images of steps:- http://www.jumware.com/STM32/Startpoint_nothing_installed.jpg
- http://www.jumware.com/STM32/STM_Connected.jpg
- http://www.jumware.com/STM32/Link_Utility_InstalledAsAdmin.jpg
- http://www.jumware.com/STM32/StLink_Installed.jpg
- http://www.jumware.com/STM32/STM_ConnectedAgain.jpg
- http://www.jumware.com/STM32/STLink_Started_connected.jpg
- http://www.jumware.com/STM32/ConnectedVia_CNN5.jpg
Now I reached the point to enter first command but I don't get a connection.
Last step was to connect the board via cn1 to power and via cn5 to my computer.
I tried a lot of other options, but result always was the same, nothing.
Internet is full of instructions but right now I am more confused than ever before.Hopefully there is somebody helping me.
- http://www.jumware.com/STM32/Startpoint_nothing_installed.jpg
I tried to interprete Boards and Pins files in javascript.
Its a new button in WEB IDE, which
There are more options than on Espruino homepage.
I checked STM32F4Discovery and found CAN and SD ports.
On some pins I found more devices (e.g. PC10,PC11 are uart and usart)
Any idea what I forgot to check ?