Forum > Debugger

FpDebug /AVR follow up:

<< < (2/4) > >>

Martin_fr:
I'll have a look when I am back home... Likely early next month

ccrause:
I have made a little progress on prototyping support for remote serial protocol (RSP) and AVR in FPDebugger.  Consider the following program:
--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---program divtest; var  ans, x, d: int16; begin  x := 63;  d := 3;  ans := x div d;  if ans = 21 then    halt(0)  else    halt(255);end.Load compiled AVR binary into fp-avrsim:
--- Code: Bash  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---./avrsim -d1234 ~/fpc/fpc-avr/src/tests/div/divtest.binDebug with FPDebugger:
--- Code: Text  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---./fpd ~/fpc/fpc-avr/src/tests/div/divtest.elf FPDebugger on Linux for x86_64 (2019/12/04 16:14:32 FPC: 3.3.1)Copyright (c) 2006-2009 by Marc Weustinkstarting....Using file: ~/fpc/fpc-avr/src/tests/div/divtest.elfFPD>rFPD>b 214Breakpoint 1 added at address $00000000000000D6.FPD>c####### CHECK False for id 0 stored False False D6 0Breakpoint reached at .===/home/christo/fpc/fpc-avr/src/tests/div/divtest.pp 10:10 $main  [$000000000000009E+56]   if ans = 21 then===  [$00000000000000D6]             30912801    lds r19, $0128  [$00000000000000DA]             20912901    lds r18, $0129  [$00000000000000DE]                 3531    cpi r19, $15  [$00000000000000E0]                 2105    cpc r18, r1  [$00000000000000E2]                 39F4    brne .14  [$00000000000000E4]                 612D    mov r22, r1FPD>eval ans21FPD>qQuitting ...Killing application ...Process ended with exit-code 0.At least some very basic functionality is already working in the stand-alone debugger.

avra:

--- Quote from: ccrause on December 04, 2019, 03:41:59 pm ---I have made a little progress on prototyping support for remote serial protocol (RSP) and AVR in FPDebugger.
--- End quote ---
This is very nice news. Congratulations! If I didn't invest 20 years in AvrCo I would be hooked.  ;)

ccrause:
It is slow, buggy, has a hardcoded tcp port number, needs drastic refactoring... but it works well enough for a screenshot opportunity!  FpDebuggerFpAvr, an extension of FpDebuggerFp to debug AVR microcontrollers over a gdbserver connection.

Martin_fr:
wow... impressed.

Is there a way to set up a test env with qemu?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version