🔆 Blink LED on the STM32F103C8T6

I just ordered one of those cheap 4USD STM32F103 boards from ebay and a JTAG probe. It’s labeled STM32FxCxT6 Board V5.02 150118 As always, the price is as light as the documentation, but eventually digging the WWW you find interesting things. ...

July 12, 2015 · 2 min · 258 words · ticapix

🧱 Unbrick and update a J-Link V8 clone

You can buy a Segger JTAG J-Link clone for a few USD on ebay, aliexpress, dx, … If you try to update its firmware with the official Segger tool, you’ll brick the probe. Don’t worry, smart people have already put a checklist to restore a working firmware and even update it to the latest official version. I just put all the needed info into one single page. Unbrick it To restore the firmware, you need to follow the instructions from http://www.sonsivri.to/forum/index.php?topic=41726.50. The best part? It works from Linux. ...

July 9, 2015 · 3 min · 601 words · ticapix

🐍 Winpdb with Python3

You need to have python2.7 installed. cd /usr/lib/python3/dist-packages/ cp /usr/lib/python2.7/dist-packages/rpdb2.py . Apply patch rpdb2_3.3 --- /usr/lib/python2.7/dist-packages/rpdb2.py 2010-08-17 22:12:52.000000000 +0300 +++ rpdb2.py 2014-05-14 10:37:29.559752856 +0300 @@ -7280,7 +7280,7 @@ Set rpdb2 to wrap all signal handlers. """ for key, value in list(vars(signal).items()): - if not key.startswith('SIG') or key in ['SIG_IGN', 'SIG_DFL', 'SIGRTMIN', 'SIGRTMAX']: + if not key.startswith('SIG') or key in ['SIG_IGN', 'SIG_DFL', 'SIGRTMIN', 'SIGRTMAX', 'SIG_BLOCK', 'SIG_BLOCK', 'SIG_UNBLOCK', 'SIG_SETMASK']: continue handler = signal.getsignal(value) Start Winpdb using python2 Start rpdb2 using python3 python3 /usr/lib/python3/dist-packages/rpdb2.py --debuggee myscript.py Attach the newly created debugger to Winpdb.

May 14, 2014 · 1 min · 90 words · ticapix