Posts

Showing posts from 2023

STLink V3 + OpenOCD + STM32H747

Image
If you are running Linux and you instilled OpenOCD with sudo apt install openocd Make sure you check version with openocd --version If version is " Open On-Chip Debugger 0.11" there is very big chance your STLink V3 wan't connect to STM32H747 MCUs.    I got this error message: openocd -f /usr/share/openocd/scripts/interface/stlink.cfg -f /usr/share/openocd/scripts/target/stm32h7x.cfg            Open On-Chip Debugger 0.11.0 Licensed under GNU GPL v2 For bug reports, read        http://openocd.org/doc/doxygen/bugs.html Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'. Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD Info : Listening on port 6666 for tcl connections Info : Listening on port 4444 for telnet connections Info : clock speed 1800 kHz Error: open failed   Make sure to build latest OpenOCD. For me it start

Dell Alienware m17 R4 disassembly

Image
Needed to change the keyboard on my Dell Alienware m17 R4 and couldn't find images online to prepare myself for what will need to do when I started. So I took them while I was in the process of doing it, to help someone else in the future. And here are two advices before starting. 1) There is one connector where you need be extra careful. You can see it at image 1 with blue arrow. It is glued with black tape over it so don't try to remove it quickly or you will broke the upper plastic of the connector. Image 1 - week connector! 2) You will need very small screwdriver to remove keyboard at the end. Don't start with dissembling the laptop if you don't have one.   If this saves you some time or a connector, you can thank me by buying me a coffee.

Linuxdeployqt Icons missing in AppImage

Image
Recently I wanted to build a Gridcoin wallet in docker and everything was successful until I started a wallet and then noticed that icons were missing. That was strange because I didn't get any error while building it which I think is partial fault of Gridcoin itself. Figure 1 - Left is properly build AppImage with icons and right without icons It took me some time to figure out what was missing so here are steps that I have done. I was lucky enough that on my main machine, everything was working properly so I used --appimage-extract on both AppImages created in my machine and in docker and I compared the output. chmod +x Gridcoin.AppImage ./Gridcoin.AppImage --appimage-extract What I found out that docker ouput was missing iconengines plugin . So I installed libqt5svg5 with apt install -y libqt5svg5 and next time when I crated AppImage with: linuxdeployqt /Gridcoin-Research/build/src/qt/gridcoinresearch -appimage and when I started App icons showed up.  If you find this useful yo

Attaching to running PX4 1.14 + Gazebo Classic Typhoon h480

Image
Copy this configuration in file /platforms/posix/Debug/launch_sitl.json.in   Link to gist https://gist.github.com/Igor-Misic/d59c2f7eda52d4596358cbbb4583e883 or config file in ugly text format here: {             "name": "SITL Attach (Gazebo Classic Typhoon_h480)",             "type": "cppdbg",             "request": "attach",             "program": "${command:cmake.launchTargetPath}",             "args": [                 "${workspaceFolder}/ROMFS/px4fmu_common"             ],             "stopAtEntry": false,             "cwd": "${command:cmake.buildDirectory}/rootfs",             "environment": [                 {                     "name": "PX4_SIM_MODEL",                     "value": "gazebo-classic_typhoon_h480"                 }             ],             "linux": {                 "MI