problem with memory

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

problem with memory

2,369 次查看
subbaraju
Contributor I
hi,
  i am using mc68hc12 microcontroller. i am facing problem with the memory always. i think the memory on the board is 256Kb. even if i write a program of about 19kb code and 22kb data. program is compiling properly with no errors, but it is not possible to debug. showing no memory at "no memory at 3BC2:2". please help me to solve the problem.
 thanks in advance.

标签 (1)
0 项奖励
回复
4 回复数

1,351 次查看
subbaraju
Contributor I
thanks for quick replay,
    i am using dp256b, i am saying about the total memory avialable on the board. please let me know the memory capacity of each memory in the board.
0 项奖励
回复

1,351 次查看
rocco
Senior Contributor II
That microcontroller only has 12 kBytes of ram, not enough for 22 kBytes of data.
0 项奖励
回复

1,351 次查看
Alban
Senior Contributor II
Hello,
Just to set the record straight for people trying to help, the DP256B is probably an S12 and not a HC12.

You can get the memory of the device by reading the Datasheet.
The DP256B means 256KB of flash, the rest is in the device user guide.

Note that B at the end shows an old flash technology.
It would be judicious not to use this device for new development but to prefer the MC9S12DP256 or the one with a E at the end (RoHS-Lead Free) as their flash is much better.

Regards,
Alban.
0 项奖励
回复

1,351 次查看
rocco
Senior Contributor II
Hi, Subbaraju:

We would need to know which MC68HC12 you are using, in order to know how much memory you really have.

22 kBytes is an awful lot of data, and I'm not sure whether your microcontroller has that much ram. You are probably fine as far as program space, however, with only 19 kbytes of code.
0 项奖励
回复