I am using MC9S12DB128 controller. In my linker file, I have given the following memory settings:
Start Address Size
EEPROM 0x800 7ff
RAM 0x2000 1fff
Stack 0x2ffe
On downloading the code on my target using the Cosmic ZAP ICD through BDM, I get "IRAM Invalid Address - Can't program Flash" error.
The same code downloads and works fine when I have the following memory settings:
Start Address Size
EEPROM 0x800 7ff
RAM 0x1000 1fff
Stack 0x1ffe
Can anyone tell me whats the problem? In the ZAP ICD, I choose the targer as DB128.
I dont face this problem on the DP256 evaluation board. DP256 has 12kb RAM and DB128 has 8kb RAM.