Memory Zero-page

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Memory Zero-page

2,674 Views
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
Labels (1)
0 Kudos
2 Replies

354 Views
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 Kudos

354 Views
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 Kudos