Reduce size of mpy flash filesystem to make room for lvgl (#52)
* Reduce size of mpy flash filesystem to make room for lvgl * Add troubleshooting advice to RP2 ReadMe * Add troubleshooting advice to root ReadMe Co-authored-by: Derek Campbell <guzunty@gmail.com>
This commit is contained in:
parent
a0d5004bfc
commit
5de52d8cf2
@ -92,6 +92,11 @@ This port uses [Micropython infrastructure for C modules](https://docs.micropyth
|
||||
5. `make -j -C mpy-cross`
|
||||
6. `make -j -C ports/rp2 BOARD=PICO USER_C_MODULES=../../lib/lv_bindings/bindings.cmake`
|
||||
|
||||
#### Troubleshooting
|
||||
|
||||
If you experience unstable behaviour, it is worth checking the value of *MICROPY_HW_FLASH_STORAGE_BASE* against the value of *__flash_binary_end* from the firmware.elf.map file.
|
||||
If the storage base is lower than the binary end, parts of the firmware will be overwritten when the micropython filesystem is initialised.
|
||||
|
||||
## Super Simple Example
|
||||
|
||||
First, LVGL needs to be imported and initialized
|
||||
|
||||
@ -99,3 +99,11 @@ sm.active(1)
|
||||
```
|
||||
|
||||
See the `examples/rp2/` directory for further example code.
|
||||
|
||||
### Troubleshooting
|
||||
|
||||
If you experience unstable behaviour, it is worth checking the value of
|
||||
*MICROPY_HW_FLASH_STORAGE_BASE* against the value of *__flash_binary_end*
|
||||
from the firmware.elf.map file. If the storage base is lower than the
|
||||
binary end, parts of the firmware will be overwritten when the micro-
|
||||
python filesystem is initialised.
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
// Board and hardware specific configuration
|
||||
#define MICROPY_HW_BOARD_NAME "Raspberry Pi Pico"
|
||||
#define MICROPY_HW_FLASH_STORAGE_BYTES (1408 * 1024)
|
||||
// Modified from MPY origin to reduce flash storage to accommodate larger program flash requirement
|
||||
// of lvgl and its bindings. Developers should review this setting when adding additional features
|
||||
#define MICROPY_HW_FLASH_STORAGE_BYTES (1024 * 1024)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user