read first https://gist.github.com/KunYi/93aa68d816eb923baf1044ec59632f01 just convert
==>ENQ
<==ACK
==>STX,00E0202,ETX,6C
<==STX,A85E,ETX,F6
==>STX,00ECA02,ETX,8E
<==STX,683F,ETX,EA
// MonitorSerialPort.cpp : This file contains the 'main' function. Program execution begins and ends there. | |
// | |
#include <windows.h> | |
#include <iostream> | |
#include <conio.h> | |
#include <iomanip> | |
// Want to open communcation port | |
#define HOST_COMPORT L"COM4" |
read first https://gist.github.com/KunYi/93aa68d816eb923baf1044ec59632f01 just convert
==>ENQ
<==ACK
==>STX,00E0202,ETX,6C
<==STX,A85E,ETX,F6
==>STX,00ECA02,ETX,8E
<==STX,683F,ETX,EA
DefinitionBlock("DSDT.AML", "DSDT", 0x02, "VBOX ", "VBOXBIOS", 0x00000002) | |
{ | |
OperationRegion(DBG0, SystemIO, 0x3000, 0x4) | |
Field(DBG0, ByteAcc, NoLock, Preserve) | |
{ | |
DHE1, 8 | |
} | |
Field(DBG0, WordAcc, NoLock, Preserve) | |
{ | |
DHE2, 16 |
kd> g | |
KDTARGET: Refreshing KD connection | |
[3]0004.0040::01/01/1601-08:01:29.343 [UxConn]-->UxConn DriverEntry | |
[3]0004.0040::01/01/1601-08:01:29.345 [UxConn]<--UxConn DriverEntry | |
[3]0004.0040::01/01/1601-08:01:29.345 [UxConn]-->SerialEvtDeviceAdd | |
[3]0004.0040::01/01/1601-08:01:29.345 [UxConn]-->SerialGetFdoRegistryKeyValue (SerialRelinquishPowerPolicy) | |
[3]0004.0040::01/01/1601-08:01:29.345 [UxConn]<--SerialGetFdoRegistryKeyValue(SerialRelinquishPowerPolicy 0) | |
[3]0004.0040::01/01/1601-08:01:29.345 [UxConn]Created device (78F66380) \Device\UxCom0 | |
[3]0004.0040::01/01/1601-08:01:29.345 [UxConn]-->SerialGetRegistryKeyValue(MultiportDevice) | |
[3]0004.0040::01/01/1601-08:01:29.345 [UxConn]<--SerialGetRegistryKeyValue MultiportDevice 0 |
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 |
#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, |
0: kd> !amli p | |
0: kd> g | |
AMLI(? for help)-> ? | |
? | |
Help - ? [<Cmd>] | |
Clear Breakpoints - bc <bp list> | * | |
Disable Breakpoints - bd <bp list> | * |
/* | |
* add the below code snippt into your project | |
*/ | |
#include <stdio.h> | |
#pragma import(__use_no_semihosting) | |
struct __FILE | |
{ | |
int handle; |
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 |