Menu

ATmega8 Microcontroller do not work

Anonymous
2019-03-23
2019-03-29
  • Anonymous

    Anonymous - 2019-03-23

    It is not possible to simulate programs in the atmega8 microcontroller. I did the program in Atmel Studio and tried to simulate it in the ATmega8, nothing works. The same program compiled for ATmega328 and simulated on the ATmega328 microcontroller works correctly. I am a professor of automation engineering and would like to use the simulator in my classes, but we use the ATmega8.

     
  • Santiago

    Santiago - 2019-03-24

    Hi.
    Yes, you are right. There is an error in some files.
    The good thing is that it is possible to solve without recompiling it.

    Use files attached to this post this way:
    - Replace this file with "avrs.xml" attached to this post:
    SimulIDE_0.x.x/share/simulide/data/avrs.xml

    • Add "atmega8.data" to SimulIDE_0.x.x/share/simulide/data/avr folder:
      SimulIDE_0.x.x/share/simulide/data/avr/atmega8.data
     

    Last edit: Santiago 2019-03-24
  • Anonymous

    Anonymous - 2019-03-26

    I have made the changes you suggested and still do not working. The same circuit and the same program work with the ATmega328 but do not work with the ATmega8. I am using version 0.3.10 with the files you sent in the attachment.

     
  • Santiago

    Santiago - 2019-03-27

    It's working for me...
    to be sure it is the device not working in simulide: did you try a simple blink led?
    Wich operating system are you using?
    If Linux: can you run in a terminal and copy/paste here the output?

    Attached a blink led in PB4 for atmega8 at 16 MHz that works for me, can you try it?

     
  • Anonymous

    Anonymous - 2019-03-27

    Your program worked on my system. I must be having problems with my program.
    I'm using Simulide on windows 10.
    Thank you for your help.

     
  • Santiago

    Santiago - 2019-03-29

    Solved in SimulIDE_0.3.10-SR2