In versions of the program 0.4.15-SR3 and higher, the debugger does not work correctly with programs written in AVR assembler. Starting from a certain line, the pointer of the executed command can jump between two or more adjacent commands based on a linear algorithm. Debugging any program becomes almost impossible. In the versions of the program 0.4.15-SR1, 1.0.0 RC2, the debugger works correctly. In the attached assembly code, the debugger loops over the commands marked in the screenshot.
- Code:
.nolist
.INCLUDE "m328pdef.inc"
.list
ldi r16,00000011
out ddrd,r16
ldi r16,0
out portd,r16
sbi portd,0
cbi portd,0
;
LDI R24,Low(10000);
LDI R25,High(10000);
Repeat:
sbi portd,1
cbi portd,1
SBIW R24,1
BRNE Repeat
loop:
Nop
rjmp loop
Last edited by arcachofo on Sun Mar 27, 2022 11:35 am; edited 2 times in total (Reason for editing : Mark as solved (green color))