ERROR: Prompt not detected - upload failed. Trying to recover... #687
Replies: 7 comments
-
Posted at 2016-06-30 by @gfwilliams The issue is just that your code is taking longer to execute than expected. Usually, the code you upload should execute as fast as possible, and then you should do any calculations in callback functions - ideally making them execute quickly. So if you do:
It'll work fine. Or you could just call |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-07-01 by ClearMemory041063 Thanks. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-07-01 by @allObjects To peek into what's going on on upload, take a look at this conversation about simple explanation how to (upload and) save code that espruino runs on start?. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-02-18 by Phando My esp32 seems to be bricked. Each time I boot, it spits out the text from the attached file and finishes with HALTING. I have tried re-flashing the chip, but the code causing the issue is still on there. Is there a way to clear out the code section of the chip?Attachments: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-02-18 by Phando Erase_flash got me back on track! But my real issue remains, why does adding setWatch cause my chip to go into an unusable state? Sorry for the double post from the Gitter board. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-02-18 by @allObjects ...did you have a setWatch in root level?... 'never' put 'active/sensitive' things into the root level, 'always' put it into a startup function that is called in onInit() or with setTimeout() as last line in upload. With that you prevent getting your Espruino active before it has finished uploading. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-02-18 by Phando Good advise, thank you! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-06-29 by ClearMemory041063
**ERROR: Prompt not detected - upload failed. Trying to recover...
...,key,{mode:'ECB'}),j=0;j<16;j++)dcrypt[j]+=crypt[j]/256;for(...
**
Pico v1.85
Trying out AES in ECB mode as a random number generator and got an error.
Did I do something dumb?
The Output
Beta Was this translation helpful? Give feedback.
All reactions