[Top][All Lists]

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

[avr-gcc-list] bootloader problem

From: Lee Terry
Subject: [avr-gcc-list] bootloader problem
Date: Thu, 27 Jan 2005 11:07:30 +0900 (JST)

Hi, all.
I wrote a bootloader for mega128, and here are the problems.
1. BOOTRST programmed 
   I upload an application, then jump to 0x0, bootloader section starts again.
   Below is the code I use when jumping to the app.
    MCUCR = (1<<IVCE); 
    MCUCR = (0<<IVSEL);
    asm volatile("cli"::);
    asm volatile("jmp 0x0000" ::);
2. BOOTRST unprogrammed
   After uploading an application, I jump to the app. section using the same 
code I wrote above, the application starts normally. But when I want to jump to 
the bootload section from the app. section, my bootloader program keeps 
restarting. And it seems running slowly.
I changed the clock setting to/from external/internal clock, but it is same.
Below is the code that I use to jump from app. to bootloader.
 asm("jmp 0x1E000"); // jump to bootloader-reset-vec
Please tell me what I do wrong....

            기본 250MB 최대 1GB, 더이상 용량 고민없는 야후! 메일을 써보세요.                          
           야후! 비트박스
  최신곡, 추천곡, 가요, OST, 팝송, 뮤직비디오                              야후! 모바일
  최신 휴대폰 정보, 벨소리, 캐릭터, 문자메세지                 

reply via email to

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