Writing to EEPROM

General problems? Ask here!

Moderator: cbarnes

Writing to EEPROM

Postby gcordova » Mon Nov 13, 2006 11:47 pm

Hi, I have a AD9S12DP512M0 which uses a MC9S12DP512. I have developed code for it and it is starting in the first address sapce of RAM (ORG 0800) with my variables located further down in RAM (1800) but I tried storing my code in the Flash memory (according to the memory map ORG 4000, or 8000) and when I went to load the code using Debug12 it said i could not write to that memory location. I was wondering if that is specific to the micro or if it has anything to do with jumpers on the AD9S12. What I want to accomplish is to be able to power down the micro and on startup have it run my code. Or at least have it run on reset without having to issuee the 'go <mem>' command using debug 12. Please let me know if you can help.

Posts: 1
Joined: Tue Nov 07, 2006 12:32 pm
Location: USA

Postby erarama » Tue Dec 19, 2006 7:51 pm

I am not sure if you resolved this problem. For your application you need now to use the bootloader to program Flash.

The bootloader memory locations are from $F000 to $FFFF. Your vector should be pointing to below $F000.

How to use the bootloader begins at page 16 of link doc
http://support.technologicalarts.ca/doc ... Loader.pdf
Posts: 541
Joined: Sun Apr 04, 2004 10:59 am
Location: Canada

Return to General Problems

Who is online

Users browsing this forum: No registered users and 2 guests