Category Archives: Computer Engineering
Weact STM32H750 DMA Reg-To-Mem example

Few things need to be care and different then STM32F411CEU6 Gitlab source 2025/07/23
Solved: Weact STM32H750VBT6 unable to find target

I changed the clock to maximum 480Mhz, after I F5 for the first time, I unable to burn any program to it again. To solve this, press both reset and boot buttons on the board, click F5 in STM32CubeIDE, then release reset button (still hold the bott button). It will successfully burn the program again. […] 2025/07/23
ATMEGA328P and ATMEGA328PB are different in programming
I got this error is i change "MODEL=atmega328p" to "MODEL=atmega328pb" in my makefile. Github copilot said the error occurs because the ATmega328PB has two TWI (I2C) modules, and its I/O register naming is different from the ATmega328P. Specifically, the ATmega328PB splits some port definitions (like DDRC, PORTC) into two sets (for PORTC and PORTD, etc.), […] 2025/07/22
STM32L476RG - DMA from register to memory example

Thinking how to build a logic analyzer using STM32. This example keep transfer the value of GPIO A to memory then fire interrupt using DMA. It will toggle PC0 for every complete transfer in my Nucleo L476RG board, I use oscilloscope to test, around 93KHZ 2025/07/21
Shooting Star : 四驅車

2025/07/19
Example : STM32F411CEU6 mem-to-mem DMA interrupt

https://wiki.st.com/stm32mcu/wiki/Getting_started_with_DMA#DMA_memory-to-memory_example_overview 2025/07/15
Waveshare-ESP32-C6-1.47-Touch + Micropython + LVGL

Special Thanks to Mr kdschlosser for writing the driver Example: More Examples on https://github.com/quantrpeter/Waveshare-ESP32-C6-1.47-Touch-Micropython-LVGL 2025/07/06
Waveshare ESP32-C6-Zero + LVGL + ST7735S + 80x160 LCD

2025/07/06
Perfect 3D print for Ender 3 Pro

My old Ender 3 Pro, give 0.3mm X-Y Hole compensation, now no need polishing, I can plug them into another. Two filament print from two different nozzle temperature, same perfect. 2025/07/04
Waveshare-c6-zero + st7735

https://gitlab.quantr.hk/example/micropython/waveshare-c6-zero-st7735 2025/07/03
Waveshare ESP32-C6-Zero + LVGL + ST7735S

https://www.waveshare.com/wiki/ESP32-C6-Zero 2025/07/03
Run: Micropython + LVGL on CYD (Cheap Yellow Display

Example: Clock Cheap Yellow Display Pins Connector types Connector Type Note P1 4P 1.25mm JST Serial P3 4P 1.25mm JST GPIO P4 2P 1.25mm JST Speaker CN1 4P 1.25mm JST GPIO (I2C) What pins are available on the CYD? There are 3 easily accessible GPIO pins Pin Location Note IO35 P3 JST connector Input only pin, […] 2025/07/02
Mac: Run ubuntu command with GUI in docker

Step 1: create Dockerfile Step 2: Build the image docker build -t xclock-ubuntu . Step 3: Set XQuartz and restart it Step 4: Run "xhost + 127.0.0.1", and this "xhost +localhost" wont work Step 5: Run Another way 2025/07/01
Run Micropython in CYD (Cheap Yellow Display) and control the TFT

Official Tutorial From TaoBao Factory : https://github.com/quantrpeter/2.8inch_ESP32-2432S028R Remark: use offset 0x1000 to write the firmware and have to erase flash first, so: Download micropython firmware here https://micropython.org/download/ESP32_GENERIC/ 1. esptool.py erase_flash2. esptool.py --baud 460800 write_flash 0x1000 ESP32_GENERIC-20250415-v1.25.0.bin Download All Files in below links, or by the attachment in this posts ILI9341 Display Driver Download ili9341.py from: […] 2025/06/29
Solved: unable to write to cheap yellow display esp32

In mac, sometime arduino unable to write the program to cheap yellow display esp32, you can type the command manually 2025/06/29
AT28 Flash board

2025/06/29
Tutorial build micropython for WEACT_F411_BLACKPILL

using st-flash is better then dfu-util because we don't need to put the board into dfu mode 2025/06/07
AT28 Programmer (Java + Arduino)

https://gitlab.quantr.hk/quantr/toolchain/java-at28-programmer https://gitlab.quantr.hk/example/arduino/at28-programmer 2025/06/06
MicrPython SSH1106

IT IS SSH1106,NOT SSD1306 2025/06/04
Waveshare ESP32 Zero C6 - RGB led micropython example

2025/04/01
testing ESP32 UART using MicroPython

Mac command to read from UART 2025/02/24
solved: nextpnr-ice40 Library not loaded: '@rpath/Python3.framework/Versions/3.9/Python3'
run this command 2025/02/07
Solved: macports fatal error: 'boost/filesystem/path.hpp'
Edit CMakeLists.txt, add these two line on top 2025/02/07
Two ways to init the output pin and remain same value
2025/02/02
The correct way to send code to micropython via uart and run

There are two mode in micropython: REPL vs paste mode. I guess the uart of my ESP32 board has no flow control, so you can't send all bytes at once, because it is too fast, so I sleep 100 ms for every 100 bytes. REPL mode You can't just send your python code, you need […] 2025/01/28
Solved Chisel : Error compiling the sbt component 'compiler-bridge_2.12'

When running the chisel book example, we got Error compiling the sbt component 'compiler-bridge_2.12'. Here are the way to solve it git clone https://github.com/schoeberl/chisel-examples.git Edit hello-world/build.sbt Edit hello-world/src/main/scala/Hello.scala 2025/01/09
解剖玩具麥輪車

MX512G : 低压单通道有刷直流电机驱动器, RMB $2MX1616S : 双路有刷直流马达驱动电路, RMB $7.8TRSP5040A : SOP8語音OTP芯片40秒碩呈語音播報IC程序開發, RMB 0.27RF2520A : 无线遥控收发器芯片, RMB $4.3 2024/12/28
Tutorial to setup RF-Nano

https://item.taobao.com/item.htm?_u=ibuhab0bb1b&id=628418040642&spm=a1z09.2.0.0.76e02e8dYbXP6k 2024/12/18
STM32 + DHT11 example

https://gitlab.com/peter-example/stm32/thei-stm32-demo-stm32f411ceu6 2024/12/18
Add -g option to riscv-tests

To enable debug, "CFLAGS=-g ./configure" won't work, edit ./isa/Makefile and add -g to variable RISCV_GCC_OPTS then it works. The dump file won't show debug info, run "riscv64-unknown-elf-objdump -DS rv64ui-v-addi" then you see it 2024/11/17
HKPS First RISC-V Board

2024/09/28
Weact Logic Analyzer

https://github.com/WeActStudio/LogicAnalyzerV1 2024/08/27
All the gates I have

2024/07/08
如果想知道容器嘅原理

如果想知道容器嘅原理,我圈起左 2024/07/01
IoT sensors

2024/04/14
Good ELF diagram

http://blog.k3170makan.com/2018/10/introduction-to-elf-format-part-vi.html 2024/04/13
Fixed dwarf bug

When i change kernelvec.S to -ggdb, my dwarf library broken but now fixed. Commit :e640c3d9 And I still don't understand why .S won't be an compile unit in dwarf, why design like that. 2024/04/09
Quantr Dwarf Library - Print address/lineNo/ColNo from specific address
2024/04/07
Install apache and php for http research

I need a super clean apache and forward all PHP requests to a independent php-cgi process which host by a specific port 1. Install Apache Mac In ubuntu, no need to build apache from source, just "sudo apt-get install apache2" Linux 2. Install PHP Mac Linux if you meet this error "configure: error: re2c 1.0.3 […] 2024/03/30
The way to extend qemu TCG plugin functionality

Hi, if want to to provide other function-calls to TCG plugin, such as reading guest memory, follow these steps: https://peter.quantr.hk/2024/01/qemu-risc-v-log-all-memory-operations/ 5. Run in qemu 6. Edit xv6-riscv Makefile: References: 2024/02/10