-
I have spent a lot of time on code that when loaded from the IDE works great. When I do a save and power cycle, it never seems to run the same. I have done a dump() and the code looks like it is missing whole sections. Doing this on a STM32Fdiscovery.
Code from IDE:
function delay(count) { for(x=0; x < count; x++) ; } delay(1000); print("test"); Response from dump() function delay(count) { for(x=0; x < count; x++) ; } var x = 1000; digitalWrite(A0,0); =undefined
BTW, this digitalWrite(A0,0); never goes away.
-
-
-
-
-
-
-
-
-
-
-
The Ctrl+C had no effect. I turned off 'reset() before send' and the code loads just fine, I have something useful now. It is strange I can type in reset() on the terminal side of the Web IDE and it does not disconnect, so I can work with this as a 2 step process for now. Thanks for the help and quick response.
-
My final design will not have USB, so I was using the discovery with a console on a serial port via a FTDI cable. The com port does not reset, just the discovery, but the App seems to disconnect from the com port. I can send a reset from a terminal program and the connection remains. What is the App expecting back as response from the discovery? From a terminal I see 0x1b 0x5b 0x3f 0x37 0x6c 0x0d 0x0a and then the Espruino logo. I did add a datestamp under the logo, is it parsing the logo?
-
-
-
-
-
-
-
-
-
-
I built and loaded 1.67 for stm32f4discovery. I can load and run onInit() from the IDE and it can be called after reset (so it is saved to memory), but it does not run automatically on reset(). Works fine in 1.66 pre-compiled, is there a compile flag that needs to set? I have STM32F4DISCOVERY=1 and RELEASE=1.
thanks,
Bill
Is there a way to force the IDE to a specific board or CPU? I am trying to connect over bluetooth serial and it seems to not detect the board type, but it does connect and work otherwise.