News for hackers. Stuff that matters.
Re:When printf debugging is a luxury (2010) by ijager on Saturday January 03, 2015 @06:09PM (#8832414)
When developing for microcontrollers and for example my leds aren't working, I like to define a place in memory where I write values to depending on the place in code. Then just read out that memory address with OpenOCD (jtag of swd).

  #define debugVar        ((uint32_t *) 0x10007000)
  *debugVar = 1;     
  *debugVar = 2;
  *debugVar = 0xdeadcafe;

There are no comments on this comment yet.