logo elektroda
logo elektroda
X
logo elektroda
REKLAMA
REKLAMA
Adblock/uBlockOrigin/AdGuard mogą powodować znikanie niektórych postów z powodu nowej reguły.

Atemga32 Megaload bład Error occured aborted...

kmkm2 26 Lut 2011 20:57 698 0
REKLAMA
  • #1 9208760
    kmkm2
    Poziom 21  
    Witam
    Zrobiłem wszystko zgodnie z dokumentacją, ale podczas próby zaprogramowania wyskakuje komunikat Error occured aborted.... . poniżej konfiguracja z pliku main.c

    / *->Do the same thing in assembly.s<-*
    // *************************************
    //
    //*****************************************************************************
    // This setup is for a MEGA8,  You must make changes for your MCU
    
    // DO NOT REMOVE THIS LINE !!!
    #define RAMPZ (*(volatile unsigned char *)0x00)
    
    // Your MCU header file
    #include "iom32v.h"
    
    // Temporary buffer size in byte. Check in the table it's written 32 word, so it's 64 byte
    #define PageSize         64
    
    // It's written in the Bootloader section of your datasheet. Check this table for the M8
    // it's ZPAGEMSB 5 + 1  = 6
    #define NSHIFTPAGE       6
    
    // Define wath is the name of the interrupt register.  It's different from
    // one MCU to another
    #define INTVECREG        GICR
    
    // Your MCU frequancy
    #define XTAL        	 8000000
    
    // UART you are bootloading on
    #define UART        	 0
    
    // UART BaudRate
    #define BAUDRATE         9600
    
  • REKLAMA
REKLAMA