Menu

avrprog2 currently not working with my bigavr6

Help
2015-03-22
2015-03-23
  • moduleownage

    moduleownage - 2015-03-22

    Hello,
    I wanted to program my bigavr6 with avrprog2.

    After calling avrprog2 with the following params

    avrprog2 -matmega128 --flash w:main.elf
    

    it hangs at

    Autodetect programming pins...
    

    I use the ATmega128 MCU-Card, and have compiled the avrprog2 1.4.1 under debian testing.

    my code is as follows

    ~~~~~~~~~~~~~~~

    define F_CPU (8000000UL)

    include <avr io.h="">

    include <stdbool.h>

    int main(void)
    {
    DDRA = 0xFF;
    PORTA = 0x01;

    while(true)
    {   
    }
    

    }
    ~~~~~~~~~~~~~

    compiled with

    avr-gcc -mmcu=atmega128 -Wall -Os -frename-registers -Werror -Wstrict-prototypes  -fpack-struct -fshort-enums -std=c11 -c -o main.o main.c
    avr-gcc -mmcu=atmega128 -o main.elf main.o
    

    what can i do?
    thanks

     
  • Andreas Hagmann

    Andreas Hagmann - 2015-03-23

    Does your board configuration work with the mikroe programmer?
    Doublecheck all jumpers ans switches on the board which are related to programming.

     

Log in to post a comment.