- wm_tool
- machine_uart_rhh_OK.png (132.61 KiB) Viewed 3809 times
W600-PICO region FLASH overflowed
Re: W600-PICO region FLASH overflowed
wm_tool.exe must be copied from WM_SDK/Tools to micropython_rhh/ports/w60x/tools
Re: W600-PICO region FLASH overflowed
Minor change to Makefile in micropython/port/w60x directory.
To avoid a wrong output by the function w600.version() due to 2M Flash size setting it is sufficient to change the Makefile line 347 from:
CFLAG += -DW60X_USE_2M_FLASH=1
to:
CFLAG += -DW60X_USE_1M_FLASH=1
as clearly shown in the attached picture
To avoid a wrong output by the function w600.version() due to 2M Flash size setting it is sufficient to change the Makefile line 347 from:
CFLAG += -DW60X_USE_2M_FLASH=1
to:
CFLAG += -DW60X_USE_1M_FLASH=1
as clearly shown in the attached picture
Re: W600-PICO region FLASH overflowed
That's OK. But I do not use the 2M flash setting in my build. Instead I modified the file link_w600_1m.ld allowing more space for the firmware.
Re: W600-PICO region FLASH overflowed
Hi Roberthh,
I successfully compiled your most recent 10-23-2020 w60x micropython for the w600-pico and have been successfully compiling and using recent versions with much success. Specifically I am using it for IoT with mqtt; this works fine.
Most recently, I'm getting an ImportError: no module named 'ussl' when I import urequests and try to use it:
Do you have any suggestions?
Thanks.
I successfully compiled your most recent 10-23-2020 w60x micropython for the w600-pico and have been successfully compiling and using recent versions with much success. Specifically I am using it for IoT with mqtt; this works fine.
Most recently, I'm getting an ImportError: no module named 'ussl' when I import urequests and try to use it:
Do you have any suggestions?
Thanks.
Re: W600-PICO region FLASH overflowed
For ussl you have to set in Makefile:
MICROPY_SSL_MBEDTLS = 1
This is normally only enabled for 2Mbyte flash devices, which are hard to get. Setting the flash as above, the code area may overflow. Then you have to increase it in tools/link_w600_1m.ld, line 10.
MICROPY_SSL_MBEDTLS = 1
This is normally only enabled for 2Mbyte flash devices, which are hard to get. Setting the flash as above, the code area may overflow. Then you have to increase it in tools/link_w600_1m.ld, line 10.
Re: W600-PICO region FLASH overflowed
To confirm roberthh
- Attachments
-
- WEB Weather Forecast Example
- TLS_e.png (260.18 KiB) Viewed 3518 times
-
- MBEDTLS Makefile flags
- 1MB_Flash_MBEDTLS.png (86.84 KiB) Viewed 3518 times
-
- micropython modules
- 1_ssl_test_00.PNG (186.89 KiB) Viewed 3518 times