Skip to content

Instantly share code, notes, and snippets.

@KunYi
KunYi / pico-nijia on win10.log
Created March 2, 2022 09:46
build Raspberry PICO 2040 on Windows 10, need platform toolchain and cross arm toolchain
cmake -DCMAKE_MAKE_PROGRAM=ninja.exe -G "Ninja" ..
Using PICO_SDK_PATH from environment ('C:\Users\kunic\source\repos\pico\pico-sdk')
PICO_SDK_PATH is C:/Users/kunic/source/repos/pico/pico-sdk
Defaulting PICO_PLATFORM to rp2040 since not specified.
Defaulting PICO platform compiler to pico_arm_gcc since not specified.
-- Defaulting build type to 'Release' since not specified.
PICO compiler is pico_arm_gcc
-- The C compiler identification is GNU 10.3.1
-- The CXX compiler identification is GNU 10.3.1
@KunYi
KunYi / bsp_key_routine.c
Created January 17, 2022 11:36
STM32 HAL_GPIO Button key detect with polling mode/CMSIS OS
#define GPIO_KEY_DOWN GPIO_PIN_RESET
#define GPIO_KEY_RELEASE GPIO_PIN_SET
#define KEY_DEBOUNCE_TIME (20UL)
#define KEY_LONG_PRESS_TIME (500UL)
enum {
RELEASE,
DEBOUNCE,
PRESSED,
LONG_PRESSED,
@KunYi
KunYi / VMWarePwrOnAcpiTrace.log
Created December 23, 2021 03:21
VMWare Power On Acpi Trace log
0: kd> !amli p
0: kd> g
AMLI(? for help)-> ?
?
Help - ? [<Cmd>]
Clear Breakpoints - bc <bp list> | *
Disable Breakpoints - bd <bp list> | *
@KunYi
KunYi / disablesemihost.c
Last active November 18, 2021 10:00
use standard C library and printf redirection to USART/ITM for debugging need disable semihosting mode on Keil MDK ARM
/*
* add the below code snippt into your project
*/
#include <stdio.h>
#pragma import(__use_no_semihosting)
struct __FILE
{
int handle;
@KunYi
KunYi / u-boot-sniff-4-srg-im8p.log
Created October 4, 2021 09:09
u-boot-sniff.log for SRG-IM8P
U-Boot SPL 2021.04-5.10.35-2.0.0+g79943c815e (Aug 26 2021 - 10:28:03 +0000)
DDRINFO: start DRAM init
DDRINFO: DRAM rate 3000MTS
U-Boot SPL 2021.04-5.10.35-2.0.0+g79943c815e (Aug 26 2021 - 10:28:03 +0000)
DDRINFO: start DRAM init
DDRINFO: DRAM rate 3000MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
@KunYi
KunYi / Capsule Update for SystemReady IR.log
Created October 3, 2021 09:08
Capsule Update on SRG-IM8P for SystemReady IR
U-Boot SPL 2021.04-5.10.35-2.0.0+g79943c815e (Aug 26 2021 - 10:28:03 +0000)
DDRINFO: start DRAM init
DDRINFO: DRAM rate 3000MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
SEC0: RNG instantiated
Normal Boot
WDT: Not found!
Trying to boot from BOOTROM
image offset 0x0, pagesize 0x200, ivt offset 0x0
@KunYi
KunYi / Fedora 34.20210801.0 (IoT Edition) boot.log
Last active November 11, 2025 16:35
Fedora v34 on SRG-IM8P install & booting message (console.log) for systemready ir
U-Boot SPL 2021.04-5.10.35-2.0.0+g79943c815e (Aug 26 2021 - 10:28:03 +0000)
DDRINFO: start DRAM init
DDRINFO: DRAM rate 3000MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
SEC0: RNG instantiated
Normal Boot
WDT: Not found!
Trying to boot from BOOTROM
@KunYi
KunYi / OpenSUSE Tumbleweed 20210927 on SRG-IM8P boot.log
Last active October 4, 2021 13:00
OpenSUSE Tumbleweed 20210927 on SRG-IM8P install & boot message(console.log) for system ready ir
U-Boot SPL 2021.04-5.10.35-2.0.0+g79943c815e (Aug 26 2021 - 10:28:03 +0000)
DDRINFO: start DRAM init
DDRINFO: DRAM rate 3000MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
SEC0: RNG instantiated
Normal Boot
WDT: Not found!
Trying to boot from BOOTROM
@KunYi
KunYi / srg-im8p-sw-description
Last active August 7, 2021 06:59
sw description of swupdate for srg-im8p board
{
"software": {
"version": "@@ADU_SOFTWARE_VERSION@@",
"@@MODEL_NAME@@": {
"hardware-compatibility": [
"1.0"
],
"stable": {
"rootA": {
"images": [
@KunYi
KunYi / docker_hawkbit.log
Created August 2, 2021 14:28
docker to run hawkbit update server
$ docker run -p 8080:8080 hawkbit/hawkbit-update-server:latest --hawkbit.dmf.rabbitmq.enabled=false --hawkbit.server.ddi.security.authentication.anonymous.enabled=true
______ _ _ _ _ ____ _ _
| ____| | (_) | | | | | _ \(_) |
| |__ ___| |_ _ __ ___ ___ | |__ __ ___ _| | _| |_) |_| |_
| __| / __| | | '_ \/ __|/ _ \ | '_ \ / _` \ \ /\ / / |/ / _ <| | __|
| |___| (__| | | |_) \__ \ __/ | | | | (_| |\ V V /| <| |_) | | |_
|______\___|_|_| .__/|___/\___| |_| |_|\__,_| \_/\_/ |_|\_\____/|_|\__|
| |
|_|