NamNamIoT / RAK3172_CANOPUS

Examples for Canopus_RAK3172 board
https://canopus-iot.com/
MIT License
56 stars 8 forks source link

Rom Overflow #5

Closed saffetblt closed 1 year ago

saffetblt commented 1 year ago

Hello, I like the card design, congratulations. I used your library it works fine. But I have a question. When I import high size libraries, I get "ROM overflowed" error. Have you encountered an error similar to this? When I run even the simplest example codes, it appears to be 61% full from the ROM. Thanks in advance for your answer.

Good luck.

NamNamIoT commented 1 year ago

Hello, I like the card design, congratulations. I used your library it works fine. But I have a question. When I import high-size libraries, I get "ROM overflowed" error. Have you encountered an error similar to this? When I run even the simplest example codes, it appears to be 61% full from the ROM. Thanks in advance for your answer.

Good luck.

Hello bro, The Flash memory of the RAK3172 is small (only 256kB) and RUI3 API is large (unfortunately). Reducing the code size of RUI3 is on the to-do list but the RAK team don’t know how small they can get it. I'm asking them how to extend more via SPI pins but I think that's not a good solution.

NamNamIoT commented 1 year ago

Hello, I like the card design, congratulations. I used your library it works fine. But I have a question. When I import high size libraries, I get "ROM overflowed" error. Have you encountered an error similar to this? When I run even the simplest example codes, it appears to be 61% full from the ROM. Thanks in advance for your answer.

Good luck.

The space can be increased by performing the following steps:

The bootloader takes 13k, although allocated for it 24k (+4.2% to free space)

Swap areas MCU_USER_DATA and MCU_FACTORY_DEFAULT, and allow to change start address of MCU_USER_DATA (and its size, not everyone needs 30k to store the user settings).

In total this can easily get +15% of free space, changing the initial parameters of the code rather slightly

And maybe, changing the implementation of the printf function could add some more space.

saffetblt commented 1 year ago

Thanks for the answer. I'm not sure if it really needs that much effort :)

Looks like I will continue to use MBED OS.