Search found 1572 matches

by Roberthh
Sat Sep 07, 2019 6:27 am
Forum: ESP32 boards
Topic: How to Convert .py to .mpy for ESP32
Replies: 4
Views: 136

Re: How to Convert .py to .mpy for ESP32

Use mpy-cross on the PC to compile you .py files into .mpy files. I have a few compiled versions here: https://github.com/robert-hh/Shared-Stuff. Other people share that too. A search on the board will reveal it.
by Roberthh
Fri Sep 06, 2019 3:42 pm
Forum: General Discussion and Questions
Topic: Is there any way of uploading a .mpy file and execute it?
Replies: 3
Views: 138

Re: Is there any way of uploading a .mpy file and execute it?

Using mpy-cross, you can compile the .py file. If the target has a file system, then you can upload it with any suitable tool, like pyboard.py, ampy, rshell. But there is a difference to frozen bytecode. Frozen bytecode is executed from flash. The bytecode and static data remains in flash. Only dyna...
by Roberthh
Thu Sep 05, 2019 7:33 pm
Forum: Other Boards
Topic: [STM32F407VGT6] How to erase flash fs?
Replies: 8
Views: 140

Re: [STM32F407VGT6] How to erase flash fs?

Your're right. Looks Like I'm lost in versions an dialects. Then you can still erase flash with make erase and re-flash the firmware. That's the crowbar method.
by Roberthh
Thu Sep 05, 2019 6:46 pm
Forum: Other Boards
Topic: [STM32F407VGT6] How to erase flash fs?
Replies: 8
Views: 140

Re: [STM32F407VGT6] How to erase flash fs?

You must not write the file system both from the PC and from MicroPython at the same time. The PC caches the FS is not awayr of changes made by MicroPython. And if you write from the PC, take care to unmount (eject) it before you unplug the device. You can format the flash from Micropython at the RE...
by Roberthh
Thu Sep 05, 2019 6:34 pm
Forum: MicroPython pyboard
Topic: pyBv1.1H does not show up on linux
Replies: 2
Views: 60

Re: pyBv1.1H does not show up on linux

Check if the USB cable you use has data wires. Quite a few time people used cables that are intended for charging only.
by Roberthh
Wed Sep 04, 2019 6:55 am
Forum: ESP32 boards
Topic: How to generate checksum using micropython?
Replies: 11
Views: 474

Re: How to generate checksum using micropython?

Yes, that looks like some variant of an LRC. Do you also have an example for two identical characters, like "AA"?
by Roberthh
Mon Sep 02, 2019 7:00 pm
Forum: micro:bit boards
Topic: Problems building micropython-1.9.2 from source
Replies: 17
Views: 5872

Re: Problems building micropython-1.9.2 from source

For the ESP32 ports there are now a few BOARDS defined: GENERIC GENERIC_SPIRAM TINYPICO to build for one of them, just run for instance: make BOARD=GENERIC and to flash the code, run: make BOARD=GENERIC deploy You may have to specify PORT and BAUD, if you do not want the default setting. I use a GNU...
by Roberthh
Mon Sep 02, 2019 1:02 pm
Forum: ESP8266 boards
Topic: No Internet access when connecting to the AP
Replies: 5
Views: 301

Re: No Internet access when connecting to the AP

When you connect the ESP8266 in STA mode to your router, the other devices in your LAN can connect the ESP8266 too, and the opposite, and all devices have access to the internet.
by Roberthh
Sun Sep 01, 2019 6:37 pm
Forum: ESP32 boards
Topic: Boot loop after flashing ESP32-WROOM-32
Replies: 3
Views: 187

Re: Boot loop after flashing ESP32-WROOM-32

The strange thing is, that the crystal is in the ESP32 Wroom module. So either the WROOM module is defective, or it is bad manufactured clone. None of my device here have this 160MHz message.