Forum > Debugger

FpDebug /AVR follow up:

<< < (3/4) > >>

ccrause:

--- Quote from: Martin_fr on December 08, 2019, 09:53:34 pm ---wow... impressed.

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

--- End quote ---
I assume you want to use qemu to emulate the AVR target?  I use a simulator fp-avrsim to simulate the test program on the AVR target and act as gdbserver. Other options are available such as simavr.

ccrause:

--- Quote from: Martin_fr on December 08, 2019, 09:53:34 pm ---Is there a way to set up a test env with qemu?

--- End quote ---
I don't see official AVR support mentioned in Qemu's wiki. There do appear to be some active development to support AVR as a target.

fliegermichl:

--- Quote from: ccrause on October 19, 2019, 06:36:01 am ---Progress update: avr disassembler unit for testing (https://github.com/ccrause/lazarus/blob/master/components/fpdebug/fpdbgdisasavr.pp)

The disassembler can be tested with the asmtest program after applying this patch: https://github.com/ccrause/lazarus/commit/1efb5d1426a1443233122276367b8651353077f6

--- End quote ---

Hi,

I'm trying to find a way to make AVR programs debug.
but i fail even on the step "apply this patch to lazarus".
how can i make that?
Michael

JuhaManninen:

--- Quote from: fliegermichl on February 16, 2021, 06:37:40 pm ---I'm trying to find a way to make AVR programs debug.
but i fail even on the step "apply this patch to lazarus".
how can i make that?

--- End quote ---
https://wiki.freepascal.org/Creating_A_Patch#Applying_a_patch

Dimitrios Chr. Ioannidis:
Hi,


--- Quote from: fliegermichl on February 16, 2021, 06:37:40 pm ---< snip >
I'm trying to find a way to make AVR programs debug.
< snip >

--- End quote ---

Do you want to debug a physical AVR mcu ( i.e. in arduino ) or in a simulator ?

If you want to use a simulator, AFAIK, you can use the simavr in linux. If you're using Windows, you can use from MS7 ( Microchip ( Atmel ) Studio 7 freeware ), the buildin simulator.

PS: If you're on windows, I can help you setup Lazarus ( trunk ) to work with MS7's backend agent ( atbackend.exe ). Then you'll be able to debug AVR programs with MS7's simulator and/or a physical mcu's if you have a debugger ( EDBG, MPLAB SNAP, some xplained boards have mEDBG or nEDBG .etc ).

EDIT : You could read, my little tutorial I wrote, motivated by your question, on how to setup Lazarus to debug AVR firmwares on windows https://forum.lazarus.freepascal.org/index.php/topic,53342.msg394467/topicseen.html#new.

regards,

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version