Memory Zero-page

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

Memory Zero-page

3,133 次查看
patti
Contributor I
Hi! I am using MC68HC908GZ16 and Codewarrior. When I use IN-circit function RDVRRNG routine, ref AN2545.pdf. It saves new data at addresses $4C-60, but unfortunally Codewarrior have saved som data already at that location, and results my program to crash! How do I know what codewarrior have placed at location $4C-60, and how do I replace it?

Thanks In advance Patrik
标签 (1)
0 项奖励
回复
2 回复数

813 次查看
CrasyCat
Specialist III

Hello

Just edit your application .prm file and adjust the addresses specified in the SEGMENTS block to make sure nothing is allocated at 0x4C..0x60.

Also you can take a look at the .map file generated by the linker.

In this file you should be able to check which object is allocated at address 0x4c.

There is a section called "OBJECT LIST SORTED BY ADDRESS" where you should be able to retrieve the information pretty quickly.

CrasyCat

0 项奖励
回复

813 次查看
patti
Contributor I
Thanks a lot! When I calculated a bit I noticed that some of variables where bigger than I expected! :smileyvery-happy:

Patrik
0 项奖励
回复