Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tools:micropython [2020/08/16 05:40] – [ESP32] darron | tools:micropython [2020/08/17 11:35] (current) – [ESP32] darron | ||
---|---|---|---|
Line 116: | Line 116: | ||
MicroPython v1.12-665-g60f5b941e on 2020-08-16; ESP32 module with ESP32 | MicroPython v1.12-665-g60f5b941e on 2020-08-16; ESP32 module with ESP32 | ||
Type " | Type " | ||
+ | >>> | ||
+ | __main__ | ||
+ | _boot | ||
+ | _onewire | ||
+ | _thread | ||
+ | _uasyncio | ||
+ | _webrepl | ||
+ | apa106 | ||
+ | btree | ||
+ | builtins | ||
+ | cmath | ||
+ | dht | ||
+ | ds18x20 | ||
+ | esp | ||
+ | esp32 | ||
+ | flashbdev | ||
+ | framebuf | ||
+ | Plus any modules on the filesystem | ||
</ | </ | ||
Line 151: | Line 169: | ||
MPY: soft reboot | MPY: soft reboot | ||
MicroPython v1.12 on 2019-12-20; ESP module with ESP8266 | MicroPython v1.12 on 2019-12-20; ESP module with ESP8266 | ||
+ | Type " | ||
+ | </ | ||
+ | |||
+ | ===STM32=== | ||
+ | |||
+ | Probe | ||
+ | |||
+ | < | ||
+ | st-info --probe | ||
+ | Found 1 stlink programmers | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | |||
+ | Install [[tools: | ||
+ | |||
+ | Checkout micropython and build mpy-cross. | ||
+ | |||
+ | In ports directory, build stm32. | ||
+ | |||
+ | Eg. | ||
+ | |||
+ | < | ||
+ | make BOARD=NUCLEO_F411RE deploy-stlink | ||
+ | Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity. | ||
+ | Writing build-NUCLEO_F411RE/ | ||
+ | st-flash 1.6.1-86-gf162a5d | ||
+ | 2020-08-16T06: | ||
+ | file build-NUCLEO_F411RE/ | ||
+ | 2020-08-16T06: | ||
+ | EraseFlash - Sector:0x0 Size:0x4000 2020-08-16T06: | ||
+ | 2020-08-16T06: | ||
+ | 2020-08-16T06: | ||
+ | 2020-08-16T06: | ||
+ | enabling 32-bit flash writes | ||
+ | size: 14780 | ||
+ | 2020-08-16T06: | ||
+ | 2020-08-16T06: | ||
+ | Writing build-NUCLEO_F411RE/ | ||
+ | st-flash 1.6.1-86-gf162a5d | ||
+ | 2020-08-16T06: | ||
+ | file build-NUCLEO_F411RE/ | ||
+ | 2020-08-16T06: | ||
+ | EraseFlash - Sector:0x5 Size: | ||
+ | EraseFlash - Sector:0x6 Size: | ||
+ | EraseFlash - Sector:0x7 Size: | ||
+ | 2020-08-16T06: | ||
+ | 2020-08-16T06: | ||
+ | 2020-08-16T06: | ||
+ | enabling 32-bit flash writes | ||
+ | size: 32768 | ||
+ | size: 32768 | ||
+ | size: 32768 | ||
+ | size: 32768 | ||
+ | size: 32768 | ||
+ | size: 32768 | ||
+ | size: 32768 | ||
+ | size: 32768 | ||
+ | size: 21984 | ||
+ | 2020-08-16T07: | ||
+ | 2020-08-16T07: | ||
+ | </ | ||
+ | |||
+ | Run | ||
+ | |||
+ | < | ||
+ | picocom -b 115200 / | ||
+ | picocom v3.1 | ||
+ | |||
+ | port is : / | ||
+ | flowcontrol | ||
+ | baudrate is : 115200 | ||
+ | parity is : none | ||
+ | databits are : 8 | ||
+ | stopbits are : 1 | ||
+ | escape is : C-a | ||
+ | local echo is : no | ||
+ | noinit is : no | ||
+ | noreset is : no | ||
+ | hangup is : no | ||
+ | nolock is : no | ||
+ | send_cmd is : sz -vv | ||
+ | receive_cmd is : rz -vv -E | ||
+ | imap is : | ||
+ | omap is : | ||
+ | emap is : crcrlf, | ||
+ | logfile is : none | ||
+ | initstring | ||
+ | exit_after is : not set | ||
+ | exit is : no | ||
+ | |||
+ | Type [C-a] [C-h] to see available commands | ||
+ | Terminal ready | ||
+ | |||
+ | MPY: sync filesystems | ||
+ | MPY: soft reboot | ||
+ | MicroPython v1.12-663-g9883d8e81 on 2020-08-16; NUCLEO-F411RE with STM32F411xE | ||
Type " | Type " | ||
</ | </ |