bbcmicrobit / bbcmicrobit/micropython
Compiling Problem
- Dominant language
- C
- Stars
- 646
- Forks
- 290
- PR merge metrics
- No merged PRs in 30d
Description
Hi.
I have just managed to compile the firmware on a Linux VM, but when I set it as my firmware in Mu, and try to flash a hello world program, It gives an error. Here's the log
```
2018-11-26 19:30:03,154 - mu.logic:645(restore_session) INFO: Loaded files.
2018-11-26 19:30:03,154 - mu.logic:649(restore_session) INFO: User defined environment variables: []
2018-11-26 19:30:03,154 - mu.logic:653(restore_session) INFO: Minify scripts on micro:bit? False
2018-11-26 19:30:03,154 - mu.logic:658(restore_session) INFO: Custom micro:bit runtime path: D:\Documents\Programming\Python\Microbit\custom\firmware.hex
2018-11-26 19:30:03,176 - mu.logic:1112(change_mode) INFO: Workspace directory: C:\Users\l3gom\mu_code
2018-11-26 19:30:04,966 - mu.logic:695(new) INFO: Added a new tab.
2018-11-26 19:30:22,033 - mu.modes.microbit:239(flash) INFO: Preparing to flash script.
2018-11-26 19:30:22,033 - mu.modes.microbit:249(flash) DEBUG: Python script:
2018-11-26 19:30:22,033 - mu.modes.microbit:250(flash) DEBUG: b'from microbit import *\r\ndisplay.scroll("Hello World!")'
2018-11-26 19:30:22,034 - mu.modes.microbit:297(flash) INFO: Path to micro:bit: F:\
2018-11-26 19:30:22,035 - mu.modes.base:217(find_device) INFO: Found device on port: COM4
2018-11-26 19:30:22,035 - mu.modes.base:218(find_device) INFO: Serial number: 9900000040554E450039400C0000003F0000000097969901
2018-11-26 19:30:22,035 - mu.modes.microbit:302(flash) INFO: Serial port: COM4
2018-11-26 19:30:22,035 - mu.modes.microbit:303(flash) INFO: Device serial number: 9900000040554E450039400C0000003F0000000097969901
2018-11-26 19:30:22,035 - mu.modes.microbit:328(flash) INFO: Checking target device.
2018-11-26 19:30:22,539 - mu.modes.microbit:332(flash) INFO: {'sysname': 'microbit', 'nodename': 'microbit', 'release': '1.0.0', 'version': 'micro:bit v1.0.0+unknown on 2018-11-26; MicroPython v1.9.2-34-gd64154c73 on 2017-09-01', 'machine': 'micro:bit with nRF51822'}
2018-11-26 19:30:22,539 - mu.modes.microbit:351(flash) INFO: Board MicroPython: 1.0.0
2018-11-26 19:30:22,539 - mu.modes.microbit:353(flash) INFO: Mu MicroPython: 1.0.0
2018-11-26 19:30:22,539 - mu.modes.microbit:381(flash) INFO: Flashing new MicroPython runtime onto device
2018-11-26 19:30:26,589 - mu.logic:1039(show_admin) INFO: Showing logs from C:\Users\l3gom\AppData\Local\python\mu\Logs\mu.log
2018-11-26 19:30:31,719 - mu.modes.microbit:505(copy_main) INFO: Copying main.py onto device
2018-11-26 19:30:31,719 - mu.modes.microbit:515(copy_main) INFO: ["fd = open('main.py', 'wb')", 'f = fd.write', 'f(b\'from microbit import *\\r\\ndisplay.scroll("Hello World!")\')', 'fd.close()']
2018-11-26 19:30:32,835 - mu.modes.microbit:532(flash_failed) ERROR: Could not enter raw REPL.
2018-11-26 19:30:32,850 - mu.interface.main:711(show_message) DEBUG: There was a problem flashing the micro:bit.
2018-11-26 19:30:32,850 - mu.interface.main:712(show_message) DEBUG: Please do not disconnect the device until flashing has completed. Please check the logs for more information.
2018-11-26 19:30:34,498 - mu.logic:1039(show_admin) INFO: Showing logs from C:\Users\l3gom\AppData\Local\python\mu\Logs\mu.log
2018-11-26 19:30:43,133 - mu.interface.main:251(get_save_path) DEBUG: Getting save path: C:/Users/l3gom/mu_code/hi
2018-11-26 19:30:43,133 - mu.logic:876(check_for_shadow_module) INFO: Checking path "C:/Users/l3gom/mu_code/hi" for shadow module.
2018-11-26 19:30:43,133 - mu.logic:842(save_tab_to_file) INFO: Saving script to: C:/Users/l3gom/mu_code/hi.py
2018-11-26 19:30:43,133 - mu.logic:843(save_tab_to_file) DEBUG: from microbit import *
display.scroll("Hello World!")
2018-11-26 19:30:45,283 - mu.modes.microbit:239(flash) INFO: Preparing to flash script.
2018-11-26 19:30:45,283 - mu.modes.microbit:249(flash) DEBUG: Python script:
2018-11-26 19:30:45,283 - mu.modes.microbit:250(flash) DEBUG: b'from microbit import *\r\ndisplay.scroll("Hello World!")'
2018-11-26 19:30:45,284 - mu.modes.microbit:297(flash) INFO: Path to micro:bit: F:\
2018-11-26 19:30:45,285 - mu.modes.base:217(find_device) INFO: Found device on port: COM4
2018-11-26 19:30:45,285 - mu.modes.base:218(find_device) INFO: Serial number: 9900000040554E450039400C0000003F0000000097969901
2018-11-26 19:30:45,285 - mu.modes.microbit:302(flash) INFO: Serial port: COM4
2018-11-26 19:30:45,285 - mu.modes.microbit:303(flash) INFO: Device serial number: 9900000040554E450039400C0000003F0000000097969901
2018-11-26 19:30:45,285 - mu.modes.microbit:328(flash) INFO: Checking target device.
2018-11-26 19:30:45,788 - mu.modes.microbit:332(flash) INFO: {'sysname': 'microbit', 'nodename': 'microbit', 'release': '1.0.0', 'version': 'micro:bit v1.0.0+unknown on 2018-11-26; MicroPython v1.9.2-34-gd64154c73 on 2017-09-01', 'machine': 'micro:bit with nRF51822'}
2018-11-26 19:30:45,788 - mu.modes.microbit:351(flash) INFO: Board MicroPython: 1.0.0
2018-11-26 19:30:45,788 - mu.modes.microbit:353(flash) INFO: Mu MicroPython: 1.0.0
2018-11-26 19:30:45,788 - mu.modes.microbit:381(flash) INFO: Flashing new MicroPython runtime onto device
2018-11-26 19:30:54,970 - mu.modes.microbit:505(copy_main) INFO: Copying main.py onto device
2018-11-26 19:30:54,970 - mu.modes.microbit:515(copy_main) INFO: ["fd = open('main.py', 'wb')", 'f = fd.write', 'f(b\'from microbit import *\\r\\ndisplay.scroll("Hello World!")\')', 'fd.close()']
2018-11-26 19:30:56,085 - mu.modes.microbit:532(flash_failed) ERROR: Could not enter raw REPL.
2018-11-26 19:30:56,086 - mu.interface.main:711(show_message) DEBUG: There was a problem flashing the micro:bit.
2018-11-26 19:30:56,086 - mu.interface.main:712(show_message) DEBUG: Please do not disconnect the device until flashing has completed. Please check the logs for more information.
2018-11-26 19:30:57,361 - mu.logic:1039(show_admin) INFO: Showing logs from C:\Users\l3gom\AppData\Local\python\mu\Logs\mu.log
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.