Close

debugging works?

A project log for SensorWatch UV Sensor

Add SI1133 Lux and UV sensor to SensorWatch, a Casio F91W drop-in replacement

wesley-ellisWesley Ellis 12/28/2022 at 01:530 Comments

Welp, after ordering the debug adapter, loosing it, ordering it again and then finally getting everything soldered up, it looks like everything was correct? Maybe I have a loose wire (or a screw loose) but I now have the JLink working with my Sensorwatch and I can flash code and use breakpoints

Now I just need to learn enough GDB or ARM stuff to get sensor data out... I started looking into semihosting (where the MCU can read/write files on the host computer) but it looks like I need to use OpenOCD and add code and and and my eyes started glazing over which indicated I should take a break and try again tomorrow

But my next avenues for investigation:

 - look into openocd vs JLink GDB (probably just stick with JLinkGDB since it works and I'm not encumbered by ideology or lawyers so I can do what I want)

- look into semihosting a bit deeper

- look into GDB scripting, maybe I can just make a script that sets a breakpoint, dumps some memory to a file and then continues

Discussions