flash fails from cli #7410
Replies: 1 comment
-
Posted at 2020-08-22 by @MaBecker well, do you want to flash firmware or transfer jscode or save your code or anything else? Posted at 2020-08-23 by dgk no firmware that's fine. Just trying to upload code and get it to persist across boot (.i.e. move from ram to flash). That's a little sample code above that causes the error. Actually any code will. The The error occurs when I use Posted at 2020-08-23 by @MaBecker check this conversation http://forum.espruino.com/conversations/342729/#comment15065783 Posted at 2020-08-23 by dgk Looking at the api Posted at 2020-08-23 by @MaBecker look's like there is some trash in the save area. try this to save the sample code and preserve boot.
Posted at 2020-08-24 by dgk Seems the espruino tool doesn't have a way to start a terminal session in the same command right after an upload (and save)? so I've been running a second command right afterwards and that's what has been throwing the error whenever save is called I did use the suggestions from the link you provided to that was helpful.
So I guess my question is how does one start a terminal session after upload (no save) in order to see the beginning stdout output. Alternatively I suppose I could send stdout tee'd to a file and view the file after connect (I have no clue how to do that on esp32) I guess in general I'm used to my nodejs 14+ coding degugging/workflow under linux (i.e. full sbc running linux and nodejs) so I have some learning regards rolling up of es2017+ and then debugging and logging code on the esp32 device. Although the webide is fine I'm only interested in using my dev IDE's that being Atom and VsCode and writing in 2017+. That explains why I am using the cli directly. Thx for you input @MaBecker |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2020-08-22 by dgk
Running esp32 wroom
trying to flash from the cli
results in this error and the code is not written to flash.
code and cli command
espruino --port /dev/ttyUSB0 -b 115200 --no-ble --board ../boards/ESP32.json
I was able to flash from the webIDE so it must be something particular to my direct use of the cli.
I must be missing some setting?
Related: Maybe the json job file is the way to go so I can set config details other than from "switches. Does the job file merge with defaults so I can just set those I need or do I have to set all values if I use it. Can I still use command line switches with a job file? ex. the --board switch as it seems the config for board only takes a url not a local path.
Beta Was this translation helpful? Give feedback.
All reactions