Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

The debugger is working incorrectly (v0.4.15)

2 posters

Go down  Message [Page 1 of 1]

Fizik_S

Fizik_S

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

The debugger is working incorrectly (v0.4.15) Debug_10

The debugger is working incorrectly (v0.4.15) Debug_11



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))

arcachofo likes this post

arcachofo

arcachofo

Solved at Rev 276.

Fizik_S likes this post

Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum