M5burner on windows7 cannot flash
-
Hi
I just received my M5stickC and wanted to play with UIFlow so I downloaded M5burner and the appropriate firmware. M5burner says it's OK to erase but it cannot burn the firmware
"Error loading Python DLL 'C:\Users\xxx\AppData\Local\Temp_MEI68722\python36.dll'.
LoadLibrary: The specified module could not be found."
I do have Python on this computer.
I checked but the folder AppData\Local\Temp_MEI68722\ does not exist
Where should I put python36.dll so m5burner "finds" it ? -
Is your python version 3.6 ?
-
I have both 2.7 and 3.6
Is there a "full" m5burner release with integrated python ? -
ok...I used another PC and now I can connect
Now I try to use gyro and accelerometer but when I use get X acc or get X gyr it says Execute code successfully but the stick says I2C bus error(6)
Do you have an example of using IMU with UIFlow? -
@ariane98 show us your code
-
from m5stack import *
from m5ui import *
from uiflow import *
import imusetScreenColor(0x111111)
imu0 = imu.IMU()
label0 = M5TextBox(27, 7, "AccX", lcd.FONT_Default,0xFFFFFF, rotate=0)setScreenColor(0x33ff33)
lcd.font(lcd.FONT_DejaVu24)
lcd.print('FelX', 10, 30, 0xcc33cc)
wait(3)
while True:
label0.setText(str(imu0.acceleration[0]))
wait(1)
wait_ms(2) -
when I try the exact same blocks than in https://www.youtube.com/watch?v=zNxKkfbEkKU (label show get X gyr), I get this "I2C bus error(6)"
-
and from arduino IDE I get values from IMU
So I guess it has with UIFlow interface to do ? -
Your first issue on the first PC is that for some reason UIFlow is looking at the 2.7 version and not the 3.6 version of python. Check your python environmental setup as this happens if the environment is wrong (I used to get this often when running 2 version of python.
Second issue. what hardware are you running, what firmware version are you running and what version of UIFlow are you running?
It sounds like you haven't got UIFlow set to M5Stick. -
Code runs on the stick, excepted whan I try to use IMU.
Both firmware and UIFlow are UIFlowv1.3.2 -
@ariane98 Which stick?
The old black or the Orange Stick C? -
Orange
-
btw, in arduino, how do you access the built in red led?
Docs showed pin 10 but it's no working... -
@ariane98 said in M5burner on windows7 cannot flash:
btw, in arduino, how do you access the built in red led?
Docs showed pin 10 but it's no working...Try GPIO10
-
Strangely, it does light the led when I use digitalWrite(10, HIGH) but then nothing happens with digitalWrite(10, LOW)
If I use digitalWrite(10, LOW) first, it sets the led ON... -
Ok I'm running 1.4 and getting a syntex error.
Try upgrading to 1.4.0 beta and try again. -
@ajb2k3
Thanks for your help
I intended to use m5stick with kids but maybe it's too early...
Both UIFlow and Arduino environments seem still unpredictable -
@ariane98 Its strange because all I use is UIFlow and I am writing an english book on it (samples available to download in the projects forum)
For the current M5StickC competition i'm using the IMU in my project however, I'm using the online version and programming over wifi. -
@ajb2k3
I am using UIFlow online too, but no luck with IMU... -
@ajb2k3
is it possible too use the stick as a vry simple webserver?