Hello, I am using Codewarrior IDE version 5.9.0 on an old Windows XP computer and a MC56F8006 microcontroller.
I have been familiarizing myself with this chip, IDE, and Processor Expert tool and I already understand that the chip has an integrated RAM of 2KBytes, with 1K addressable 16-bit words.
On the build options of the CPU component inspector, I have 3 memory areas, 2 for interrupt and program memory and the third one for data memory. This last one has the start address on 1 and size 3FF. Inspecting the memory map yields me the expected results, with total RAM having 1024 addresses, of which I am using 1023 (since the start is on 0x0001 instead of 0x0000 - just got into this project, will probably change it later to start on 0x0000).
Currently, I would like to add an array of 25 ints to my code but I am limited to 15 or so before I get an overflow error while building the project. I noticed the stack size is defined as 0x00A0 and the heap size as 0x0060. This does not make sense, as I have 2 globally accessible arrays of 256 ints each already that I cannot put in program memory since their values change on runtime and I cannot possibly fit 512 ints on 0x0060 (0d96) addresses - the heap size.
I feel like I am missing something. Also, I cannot increase the stack or the heap by as little as 16 addresses since it also results in segment overflows. I would suspect that I could distribute the available 1023 addresses of the RAM by the stack and the heap - 800 addresses for the heap and 223 for the stack for example, but this does not seem to be the case. Little help, please?