Monthly Archives: August 2025
Nucleo L476RG + Platform IO Blink Example

2025/08/24
作為教學工具,比較Platform IO和STM32CubeIDE

大家都係用STM32CubeMX,所以Gen出黎嘅Code無太大分別。計功能肯定係STM32CubeMX強,第一佢有一個生成器可以生成粒MCU所有Setting,而PlatformIO係純Code,所以好考驗老師嘅功力,但係純Code有純Code嘅好處,就係學生可以更了解第一句代碼點影響粒MCU,會更有利於教學。STM32CubeIDE會要求你將啲Code寫係comment與comment之間,睇上去好亂,而PlatformIO無呢回事,啲Code睇上去好Clean。PlatformIO最大賣點係源於VSCODE所以有Github Copilot,我之前用STM32CubeIDE同VSCode開住同一個project,github copilot一邊gen我一邊改,我就無問題。但作為學生會好麻煩。 2025/08/24
Scale STM32CubeIDE UI in mac
Run STM32CudeIDE by Changing anything in STM32CubeIDE.ini won't work 2025/08/21
Compile bochs in 2016 old mac with macports
2025/08/17
Useful linux command
List out 10 biggest files in folder List biggest folders 2025/08/11
Micropython燒程式落stm32, reboot會無哂
https://github.com/issues/created?issue=micropython%7Cmicropython%7C17828解決辦法就係加呢兩句係main.py頭import pybpyb.usb_mode('VCP+HID') 2025/08/05
Why your STM32 is bricked

My STM32 is bricked (can't run anything in STM32CubeIDE) because my main loop has no sleep, after i add it back, my STM32 can run many times in STM32CubeIDE. To recover my weact blackpill, i use "while true; do st-flash erase; sleep 1; done" to keep running the st-flash command, I found out pressing the […] 2025/08/04
Set STM32F411CEU6 to run at 96Mhz with 48Mhz USB (100Mhz is not possible)

With HSE = 25 MHz, the PLL configuration must satisfy: Let’s try the main PLL: Since PLL_Q must be an integer (4-15), 48 MHz USB is not possible with VCO = 200 MHz: To get exactly 48 MHz: Since SYSCLK cannot exceed 100 MHz, VCO = 192 MHz (SYSCLK = 96 MHz, USB = 48 […] 2025/08/03
Create your hardware in libsigrok
In short, you need to build libsigrok then sigrok-cli Step 1: Add your device to Makefile.am Step 2: in configure.ac Step 3: Create /src/hardware/quantr folder add api.c, protocol.c and protocol.h api.c: protocol.c: protocol.h: Step 4: Build libsigrok Step 5: Build sigrok-cli Step 6: Test Then test it by "sigrok-cli -L", you should able to see […] 2025/08/03
STM32 Logic Analyzer Day 1
Trying to build a logic analyzer prototype, today i am using weact black pill board. I am using interrupt to fire the DMA and get the pins values, then use virtual com port to transfer it to PC, so far it works 2025/08/02
WEACT blackpill stm32f411ceu6 virtual com port

2025/08/02
Weact STM32 H750 board use serial port via usb

Unlike nucleo to user serial port via usb by just enabling the uart. We have to enable VCP in weact H750 board. Reference: https://blog.csdn.net/Naisu_kun/article/details/118192032 2025/08/01