avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] Problems with bootloader


From: Ollinad
Subject: [avr-gcc-list] Problems with bootloader
Date: Mon, 17 Oct 2005 19:42:49 -0200

Hi people,

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
reply via email to

[Prev in Thread] Current Thread [Next in Thread]