You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am tying to run the hello_world.py scripts but it crashes after a few seconds of running.
# Hello World Example## Welcome to the CanMV IDE! Click on the green run arrow button below to run the script!importsensor, image, time, lcdlcd.init() # Init lcd displaylcd.clear(lcd.RED) # Clear lcd screen.# sensor.reset(dual_buff=True) # improve fpssensor.reset() # Reset and initialize the sensor.sensor.set_pixformat(sensor.RGB565) # Set pixel format to RGB565 (or GRAYSCALE)sensor.set_framesize(sensor.QVGA) # Set frame size to QVGA (320x240)#sensor.skip_frames(time = 2000) # Wait for settings take effect.#clock = time.clock() # Create a clock object to track the FPS.while(True):
#clock.tick() # Update the FPS clock.img=sensor.snapshot() # Take a picture and return the image.lcd.display(img) # Display image on lcd.#print(clock.fps()) # Note: CanMV Cam runs about half as fast when connected# to the IDE. The FPS should increase once disconnected.
To Reproduce
Steps to reproduce the behavior:
Build firmware from kpu/featwith nncase 1.8.0 support for Maix M1 Dock (using project canmv_dock).
Flash Micropython v1.0.5-5-ge1b2766-dirty on 2023-05-24; CanMV_Board with kendryte-k210
What could be the source of the problem?
Not sure of it, but it seems related to the data transfer in the IDE.
The code following code works:
importsensor, image, time, lcdlcd.init() # Init lcd displaylcd.clear(lcd.RED) # Clear lcd screen.sensor.reset() # Reset and initialize the sensor.sensor.set_pixformat(sensor.RGB565) # Set pixel format to RGB565 (or GRAYSCALE)sensor.set_framesize(sensor.QVGA) # Set frame size to QVGA (320x240)time.sleep(2)
while(True):
print(0)
time.sleep(0.2) # removing this line makes the code crash.
Configuration
IDE version: 2.9.2
Firmware version: v1.0.5-5-ge1b2766-dirty
Board: Sipeed Maix Dock M1
OS: MacOS Ventura
The text was updated successfully, but these errors were encountered:
Hi @kendryte747, I have updated my IDE to the latest release (Commit: v2.9.2-2-0-g132467a), but the bug is not solved. Is it originating from the editor of from the firmware?
Hi @kendryte747, I have updated my IDE to the latest release (Commit: v2.9.2-2-0-g132467a), but the bug is not solved. Is it originating from the editor of from the firmware?
Hello,
I am tying to run the hello_world.py scripts but it crashes after a few seconds of running.
To Reproduce
Steps to reproduce the behavior:
kpu/feat
with nncase 1.8.0 support for Maix M1 Dock (using projectcanmv_dock
).hello_world.py
script. Output is:What could be the source of the problem?
Not sure of it, but it seems related to the data transfer in the IDE.
The code following code works:
Configuration
The text was updated successfully, but these errors were encountered: