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:37] – [Setup] darron | tools:micropython [2020/08/17 11:35] (current) – [ESP32] darron | ||
---|---|---|---|
Line 5: | Line 5: | ||
=== Setup === | === Setup === | ||
- | Install [[: | + | Install [[: |
=== ESP32 === | === ESP32 === | ||
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 | ||
</ | </ | ||
+ | ===ESP8266=== | ||
+ | |||
+ | Install | ||
+ | < | ||
+ | esp8266-20191220-v1.12.bin | ||
+ | </ | ||
+ | |||
+ | Run | ||
+ | |||
+ | < | ||
+ | picocom -b 115200 / | ||
+ | picocom v1.7 | ||
+ | |||
+ | port is : / | ||
+ | flowcontrol | ||
+ | baudrate is : 115200 | ||
+ | parity is : none | ||
+ | databits are : 8 | ||
+ | escape is : C-a | ||
+ | local echo is : no | ||
+ | noinit is : no | ||
+ | noreset is : no | ||
+ | nolock is : no | ||
+ | send_cmd is : sz -vv | ||
+ | receive_cmd is : rz -vv | ||
+ | imap is : | ||
+ | omap is : | ||
+ | emap is : crcrlf, | ||
+ | |||
+ | Terminal ready | ||
+ | |||
+ | MPY: soft reboot | ||
+ | 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 " | ||
+ | </ | ||
=== Resources === | === Resources === | ||
Line 123: | Line 278: | ||
[[http:// | [[http:// | ||
+ | |||
+ | [[http:// | ||
+ |