🔆 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

🎧 Use Creative Zen Stone on Windows 8/10

Remember those? Install 7zip. Download Creative ZEN Stone Firmware 1.06.01 Right-click on the file downloaded at Step 2, ZENStone_PCFW_US_1_06_01.exe and extract its content using 7zip. Go inside the newly created folder ZENStone_PCFW_US_1_06_01/vista Right-click on StMp3Rec.inf -> Install Same with StMp3Recx64.inf Unplug&Plug your Stone. Done

March 28, 2015 · 1 min · 44 words · ticapix

💽 Create Bootable Windows USB Flash Drive

I assume that you have a basic understanding of: unzipping a file, mounting an ISO file, opening the Command prompt in Administrator mode and booting your PC from a USB flash drive. Either unpack or extract or mount your ISO file, let’s say in %USERPROFILE%\win_files Insert your USB drive. Open CMD in Administrator mode and type diskpart Microsoft DiskPart version 10.0.10041 Copyright (C) 1999-2013 Microsoft Corporation. On computer: XXXXXXXXX DISKPART> list disk Disk ### Status Size Free Dyn Gpt -------- ------------- ------- ------- --- --- Disk 0 Online 238 GB 0 B * # my HDD drive Disk 1 Online 14 GB 0 B # my USB drive DISKPART> select disk 1 Disk 1 is now the selected disk. DISKPART> clean DiskPart succeeded in cleaning the disk. DISKPART> create partition primary DiskPart succeeded in creating the specified partition. DISKPART> active DiskPart marked the current partition as active. DISKPART> format fs=ntfs quick label="win installer" 100 percent completed DiskPart successfully formatted the volume. DISKPART> assign DiskPart successfully assigned the drive letter or mount point. DISKPART> exit Leaving DiskPart... A new Removable Disk should be showing up, named as ‘win installer’ with, let’s say, letter E:\ Go into the boot\ subfolder of where the installation files have been extracted at Step 1, in my case: cd %USERPROFILE%\win_files\boot We want to make the USB flash bootable with E: the USB drive letter from Step 5. C:\Users\ticapix\win_files\boot> bootsect.exe /nt60 E: Target volumes will be updated with BOOTMGR compatible bootcode. E: (\\?\Volume{a91720d2-a87d-11e4-ab33-3c970e90bd43}) Successfully updated NTFS filesystem bootcode. Bootcode was successfully updated on all targeted volumes. Copy the content of the folder from Step 1 onto the USB flash drive with xcopy xcopy %USERPROFILE%\win_files\*.* E:\ /E /F /H The syntax is xcopy with the following options: /E Copies directories and subdirectories, including empty ones. /F Displays full source and destination file names while copying. /H Copies hidden and system files also. Once the copy is done, safely unplug the USB drive and boot your PC from it.

March 27, 2015 · 2 min · 330 words · ticapix

📊 Adding Code Coverage to your C++ project

For that example, I’ll use one of my GitHub projects arduino-toolbox, Travis-CI and Coveralls but the command lines will be exactly the same for any other setup. Since the project is using CMake, the following commands could go inside an add_custom_target rule in CMakeLists.txt Adding C++ coverage flag Add --coverage to your CFLAGS or CXXFLAGS. With CMake for C++, it gives you: set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0") # debug, no optimisation set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage") # enabling coverage Replace CMAKE_CXX_FLAGS by CMAKE_C_FLAGS for a C project. ...

January 7, 2015 · 2 min · 329 words · ticapix

📡 Seeeduino Arch GPRS V2

I just received my Seeeduino Arch GPRS V2. The doc is as light as the price 🙂 So don’t be afraid and open the Eagle file and the bottom of the product wiki page. You’ll also need the LPC11U37 datasheet and AN_SIM900 Reference Design Guide_V1.02 (you might find an online copy of the PDF if you don’t want to register yourself). Power the SIM900 ...

November 23, 2014 · 3 min · 446 words · ticapix

🔌 USBee AX Pro reprogramming

I bought a MCU123 USBee AX Pro clone on dx.com which is very similar to a Saleae Logic. To use it with the Saleae software, the VID/PID need to be reprogrammed. The procedure is well explained here if you have Windows. If you have Linux, continue to read. As explained in the Windows version of this tutorial, you have to flash the device with a special firmware that enables to read/write the EEPROM where the VID/PID are stored. ...

July 16, 2014 · 2 min · 285 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

⚠️ Tornado API docs with Sphinx: pitfalls

I’ve developed a small RESTful service with Tornado and I wanted to generate docs for the exposed API. Lucky me, someone already thought about it and created the sphinxcontrib.autohttp.tornado addon for Sphinx. The next few tips will help getting the work done: If you’re using python-3, you need to use this file tornado.py. The latest release 1.2.1 (as of 30/04/2014) doesn’t work with python-3, because methods = inspect.getmembers(handler, predicate=inspect.ismethod) # returns an empty array with python-3 The predicate needs to be changed to include ismethod or isfunction. ...

April 30, 2014 · 1 min · 140 words · ticapix

🛶 Ahja jõgi

GPX tracks (total: 8.5 km): ...

April 27, 2014 · 1 min · 7 words · ticapix