COMMUNICATION INTERRUPTED WITH WEB IDE or SERIAL TERMINAL #393
Replies: 12 comments
-
Posted at 2014-02-21 by user6350 I erased the flash and then connected again the board to the Web IDE. My question is : |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-02-21 by @gfwilliams How are you using the SD card? Did you recompile your own version of Espruino? It's entirely likely that something is broken there and is causing Espruino to crash when it tried to load from the SD card... Try holding down the blue button and resetting - that will start Espruino without loading the stored program. If I were you I'd use the Web IDE to load the module into Espruino directly (write the require statement in the right-hand pane) and then you don't need an SD card at all. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-02-21 by @gfwilliams
Yes, it should be possible to do this - it is on the Espruino board. It's probably related to the way you have compiled in Filesystem support... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-02-21 by user6350 I understand now that the SD card is better to be used for data storage instead of modules downloading. Now after having done the same operations the serial link is operative. The LCD is working fine when the code is downloaded from the WEB IDE. P.S. Attachments: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-02-21 by @gfwilliams Maybe try executing the code after a timeout on Are are you sure you haven't connected the LCD to pins that are used for other peripherals? These could be interfering with it: http://www.espruino.com/ReferenceSTM32F4DISCOVERY It is seriously unlikely to be because of the warnings when compiling. If you want to fix them and issue a pull request it'd be great though - I've been trying to work my way around doing it. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-02-21 by user6350 I am going to check. Maybe try executing the code after a timeout on onInit? If the USB cable is linked led doesn't flash
What does it happens with using a timeout on onInit() ? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-02-21 by user6350 Strange behavior. after several resets with USB cable unplugged the LCD begins to be be filled with garbages. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-02-21 by user6350 Unable to understand what it happened since this morning . Attachments: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-02-21 by @gfwilliams Looks strange - It looks a lot like you're using some beta version of Chrome? Are you using the Web IDE from the app store? Looks like you're not initialising the LCD properly on onInit. Try:
or you could try executing it all 1 sec after bootup:
The not running when you plug into USB has been covered here so many times I've lost count. But you've just done WAY too much stuff (custom compile, discovery board, beta chrome, your own SD card connector) for me to have any chance of helping you out properly I'm afraid. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-02-21 by user6350 Thanks a lot for your firm reply, considering that I am working on an unsupported board. I know that I changed a lot of things and I know that I must learn Javascript to a deeper level of detail before using it. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-02-21 by user6350 OK |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-02-21 by user6350 Using the new WEB IDE version it is becoming clear what is going on … Attachments: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-02-21 by user6350
I am using an STM32F4discovery board, but I think this time the problem doesn't depend on the board.
I put the HD44780.js file on a SD card into the node_modules directory in order to load the file from a local filesystem( the SD card )
Then wrote a simple javascript to display a greetings message on LCD and flash a led ever 1 s .
I saved the script on the flash by using save().
This works fine as soon as the board starts standalone or linked to a PC with the serial USB cable.
Anyway I am no longer able to get any communication over the serial USB channel and I have no way to access the board interactive shell either by using a terminal emulator or the Web IDE.
Is there a reason for this behavior related to the way the "require" machinery works ?
Beta Was this translation helpful? Give feedback.
All reactions