Owerwriting max global variable size

I am using a custom STM32 board for my project. The board manager i am using is STM32duino, but it doesnt support the exact chip i am using. it only suports a variant of the same chip that has 8kb Global variable limit instead of 32kb that is actualy available on the chip.

I cant shrink the program, and i do not need to either since i have plenty of unused space on the chip.

I have tried modifiying the setting in board_entry.txt file where maximum_data_size is defined,
but it still shows that Global variables use 11444 bytes (139%) of dynamic memory, Maximum is 8192 bytes.

Where is the maximum sketch size limit stored so i can change it? All other questions on this topic just focus on reducing program size.

It might be possible to find an Arduino core that supports the STM32 chip you are using. Try a Google search for the chip designation and 'arduino'.

Can you provide a pointer to the core you have installed?

Which chip are you using, and which did you select in the IDE? I don't know a STM32 chip with only 8kB RAM. The minimum I know is 20kB. But of course I don't know all of them - especially the low density ones. The core should in any case support chips with more memory.

The STM Official core
GitHub - stm32duino/Arduino_Core_STM32: STM32 core support for Arduino

Look down the page to find the supported boards/chips flavors.

Ask in the forum if you do not find what you need:
Arduino for STM32 - Index page (stm32duino.com)

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.