Go Down

Topic: Bus pirate question (Read 236 times) previous topic - next topic

PocketHarambe101

Hi,
is the bus pirate compatible with the Arduino?
can it do stuff like stepping through code, watching variables change in real time, and setting breakpoints? What about ARM chips like the samd21?

Thanks!

DrDiettrich

The Bus Pirate is compatible with various bus systems (SPI, I2C...). It can not look into controllers, only into the data on their communication lines.

MrMark

Atmel has tools for single stepping atmega microcontrollers, but they work through a fuse redefinition of the reset pin.  Since standard Arduinos use the reset pin as part of the bootloader functionality, there is not a trivial way to use these tools in the Arduino ecosystem.

DrDiettrich

The JTAG debugging interface also writes breakpoints to flash memory, and can wear out the flash memory of any controller. A note in the ATmega data sheet says that such controllers should not be used any more for production (final devices). It's uncritical with Uno boards, which allow to exchange the controller easily, but the board has to be modified for JTAG use (detach RESET pin).

awt98523

Atmel has tools for single stepping atmega microcontrollers, but they work through a fuse redefinition of the reset pin.  Since standard Arduinos use the reset pin as part of the bootloader functionality, there is not a trivial way to use these tools in the Arduino ecosystem.
So there are any tools for examine what happend in the microcontroller? When setting some registers like timer. It's usual if we can monitor these register and its value for the correct purpose. Thanks

DrDiettrich

How do you want to monitor registers in real time?

If your code writes to a register, you know what it contains.

What you want is an emulator. There exist PC programs which claim to emulate AVR controllers.

Go Up