how the require machinery works within espruino #394
Replies: 4 comments
-
Posted at 2014-02-21 by user6350 may be lost or a strange behavior can happen. Here are the screenshoots for the two different situations:Attachments: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-02-21 by user6350 The working situation...Attachments: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-02-23 by user6350 I understood the problem. My code was the following :
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-02-24 by @gfwilliams Ahh, that's interesting. Thanks for posting up! I'm not 100% sure. I wonder whether it is some issue with trying to write data to the console before USB has properly initialised? Do you get the problem if you don't access the filesystem? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-02-21 by user6350
I think to have done nothing strange after all.
I simply wanted to enable the SD card on the STm32F4 Discovery board.
I wrote USE_FILESYSTEM=1 in the Makefile
I added the pin definitions for the board in the .py file as for the Espruino board.
After that I compiled the ESPRUINO source code in order to get a new elf and/or bin file.
Using the same board on two different environment I got now two different results :
a) EEPC using Windows7 plus WEB IDE but PC not linked to the Internet .
Everything works fine.
b) Mac osX WEB IDE ( PC linked to the Internet )
Same board, same firmware, the program hangs up.
To me is now evident that the behavior depends on how the require machinery works.
I must investigate detailed, but I would appreciate if some explanation, even short, could be given by anyone.
One could build hundreds of Espruino boards, but it is important to have a complete knowledge about it-s inner workings, otherwise the simplicity of programming with respect traditional Embedded C programming will be vain if a situation can arise when the control
Beta Was this translation helpful? Give feedback.
All reactions