I had a problem somewhere in my code in a function that I wanted to declare an array but it failed. after some debugging I found out that it uses malloc in disassembly window so I increased the heap size and it works fine!
So my question is why keil uses Heap for local variable?
Here is the variable declaration code:
uint8_t result[data->capacityBytes];
memset(result, 0, sizeof(result));
I've added flag C99