Why boot_page_erase(page) doesnt work?

Status
Not open for further replies.

Obi

Newbie level 4
Joined
Oct 26, 2006
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Russia, Ivanovo
Activity points
1,338
boot_page_erase

I try to work with self programming and face with the following problem. I try to erase page in ATmega16 by boot_page_erase(page):
uint32_t page = 0;
boot_page_erase(page);
In Simulator everything is OK and first page is erased. But in the real hardware (STK500)? It remains untouched. ??? The I tried erase it by calling boot_page_erase(0), and it works both in simulator and real microcontroller.
What’s wrong with that? Please Help!
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…