I'm trying to use dynamic memory on str912fw44. The code compiles well but when it starts to debug, it gives some error : "*** error 34: undefined identifier Non-Aligned Access: Thumb Instruction at 0000C072H, Memory Access at 0000C230H ... *** error 65: access violation at 0x00080000 : no 'execute/read' permission"
The code I tried was :
ubyte *ptr; int main() { ptr=(ubyte*)calloc(10,sizeof(ubyte)); }
Tools : Keil uVision IDE, Keil Ulink2.
Could you please tell me what could be the problem ? I don't know where to look. How can I know the size of the memory area used as heap ?
There's the rub: if it's going to be supported for "future needs", then that support has to be there from the start!
Of course, if you need to do a firmware update anyhow to support these "future needs" when they arise, then you can adjust the static allocation at that time...