Greetings team,
Pardon the bother once again but I seem to be facing some problems with getting the AVR ATmega32 working in SimulIDE. My system specs are:
Additionally with the following optional dependencies:
The problem is rather curious: so far I've been doing a lot of programming for the ATmega328 which works absolutely flawlessly, but when I try to run the simplest of codes for the ATmega32, nothing seems to run at all. None of the microcontroller's registers even change. I've tried getting an LED to remain powered with the following circuit:
And code being:
But no dice. I can't seem to understand what's going wrong, and where. All code for the 328 can be compiled, uploaded and tested without a hitch, all examples for the 328 work fine, but I'm quite flummoxed at why don't any of the registers on the ATmega32 change. I believe my basic code to be correct, though I'm not completely convinced..
Any help would be greatly appreciated, and thank you very much in advance for your time!
Pardon the bother once again but I seem to be facing some problems with getting the AVR ATmega32 working in SimulIDE. My system specs are:
- Arch Linux 6.0.7-arch1-1
- Arduino 1.8.19 (from the official Arduino website)
- Simulide 0.4.15_SR10-2
Additionally with the following optional dependencies:
- simavr 1.7-3 (from the AUR)
- avrdude 1:7.0-2 (from the official Arch repos)
- avr-gcc 12.2.0-1 (from the official Arch repos)
- avr-libc 2.1.0-1 (from the official Arch repos)
The problem is rather curious: so far I've been doing a lot of programming for the ATmega328 which works absolutely flawlessly, but when I try to run the simplest of codes for the ATmega32, nothing seems to run at all. None of the microcontroller's registers even change. I've tried getting an LED to remain powered with the following circuit:
And code being:
- Code:
# include <avr/io.h>
int main(void)
{
DDRD = (1 << PD7);
PORTD = (1 << PD7);
}
But no dice. I can't seem to understand what's going wrong, and where. All code for the 328 can be compiled, uploaded and tested without a hitch, all examples for the 328 work fine, but I'm quite flummoxed at why don't any of the registers on the ATmega32 change. I believe my basic code to be correct, though I'm not completely convinced..
Any help would be greatly appreciated, and thank you very much in advance for your time!
Last edited by nymo on Fri Nov 11, 2022 9:25 am; edited 1 time in total