|
From: | Larsen, Morten ActeNO |
Subject: | RE: [avr-gcc-list] Problems with bootloader |
Date: | Tue, 18 Oct 2005 09:10:36 +0200 |
Hi people,
From: address@hidden [mailto:address@hidden On Behalf Of Ollinad
Sent: Monday, October 17, 2005 11:43 PM
To: address@hidden
Subject: [avr-gcc-list] Problems with bootloader
I'm trying to write a bootloader for the at90can128 and I'm having problems. The biggest one is that I can't write to the flash, I've tried everything and nothing works. So I gave up and tried to erase a flash page, nothing too...
void pageErase(uint16_t page)
{
cli();
boot_spm_busy_wait();
boot_page_erase(page);
boot_spm_busy_wait();
sendChar('F');
while (1);
}
this is the function I use to erase a page, I'm using the functions from the boot module of the libc.
thanks for your help,
--
Mr. Santos, Danillo Moura - Computer Science Student - UFSC
Home: (48) 91347806 (48) 3382755
Parents Town: (13) 97869780 (13) 32372723
[Prev in Thread] | Current Thread | [Next in Thread] |