I am currently working with a SIMCom NB-IoT modem that communicates over UART to my STM32L082KZ.
When processing large downlink messages (chunks of 512bytes at a time) I run into the issue that at some point my code seems to change variables and send empty strings out (AT commands) which is kinda weird. Am using a vector of strings to store the seperate parameters I find in the AT command responses, which I empty after each response

Am thinking (but I am no expert) that RAM could be the issue here and overflow somehow causes my variables to change (I have additional components and libraries to handle in this code, so my RAM does not have that much headroom anymore).
I was wondering if there are general tips/tricks for RAM optimization - STM32duino specific or in general - so I can free up some space to make it work.
Any tips/tricks would be appreciated
