picowota icon indicating copy to clipboard operation
picowota copied to clipboard

build with MicroPython

Open kisChang opened this issue 2 years ago • 3 comments

nice work! Thank you!

I use it to build rp2040 micropython, need to add GC information to complete the build

kisChang avatar Mar 31 '23 06:03 kisChang

on commit bab04f6 can using picowota_reboot on MicroPython usermod

kisChang avatar Apr 02 '23 10:04 kisChang

Hi,

I wonder if these changes would be better in the micropython repository rather than here?

The micropython reboot module is only depending on exported functionality, and duplicating the build rules with a custom linker script wouldn't be very complicated.

usedbytes avatar Apr 02 '23 14:04 usedbytes

1、 My idea is to integrate picowota_reboot into MicroPython as a module. This way I can switch the device to OTA mode in normal running with the following Python code:

import picowota_reboot
picowota_reboot.reboot(True)

I think if PICOWOTA_WIFI_* can using config_file(or other plan), can add change function on picowota_reboot, Thus realizing a complete automatic ota function on MicroPython app.py(user Program).

2、 pr adds a separate file, which will not be used in other c projects. In MicroPython, it can be directly built with link instructions. I don't think it affects either party. So I think it's more appropriate to put it here.

3、It is actually not necessary for this project, I think it can not be merged, but the PR is reserved for reference and merged by people with the same needs.

My English is not good, use the translator, sorry.

kisChang avatar Apr 03 '23 02:04 kisChang