cat /dev/fb0 > dump 하듯 빼는법 없나?

$ ls -al /dev/fb0 
crw-rw---- 1 root video 29, 0  1월  5 09:33 /dev/fb0


$ ls -al /dev/dri/card1
crw-rw----+ 1 root video 226, 1  1월  9 15:32 /dev/dri/card1

[링크 : https://prographics.tistory.com/1]

 

ioctl로 먼가 하면 가능은 한 듯?

[링크 : https://prographics.tistory.com/8]

'프로그램 사용 > wayland' 카테고리의 다른 글

libinput 디버깅 유틸리티  (0) 2025.02.21
weston evdev libinput  (0) 2024.03.11
weston 커서 숨기기  (0) 2024.02.26
wayland hdmi - touch 연결  (0) 2023.09.08
wayland atomic commit 패치?  (0) 2022.08.22
Posted by 구차니
프로그램 사용/lvgl2026. 1. 9. 12:23

lvgl 제작용 위지윅에디터 라고 하면되려나?

일단 라이센스부터 확인을 해봐야겠다.

 

[링크 : https://pro.lvgl.io/]

[링크 : https://squareline.io/]

'프로그램 사용 > lvgl' 카테고리의 다른 글

lvgl pro + figma vs square line studio  (0) 2026.01.28
freertos on esp32 lvgl 예제 분석  (0) 2026.01.26
lvgl pro on win10 실패  (0) 2026.01.22
esp32 lvgl  (0) 2025.11.15
LVGL (Light and Versatile Graphics Library)  (0) 2023.11.18
Posted by 구차니
프로그램 사용/kicad2026. 1. 9. 11:54

회로도 한번 시도는 해봐야겠다.

[링크 : https://www.youtube.com/watch?v=do40huur8fE]

[링크 : https://www.flux.ai/p]

 

claude mcp

[링크 : https://github.com/mixelpixx/KiCAD-MCP-Server]

'프로그램 사용 > kicad' 카테고리의 다른 글

Kicad - open source PCB / circuit program  (11) 2010.07.08
Posted by 구차니
파일방2026. 1. 9. 10:58

directfb는 예전에 죽은거 같았는데 찾다보니 directFB2로 이어지고 있다고 한다

 

[링크 : https://ko.wikipedia.org/wiki/DirectFB]

[링크 : https://directfb2.github.io/]

[링크 : https://github.com/directfb2/DirectFB2]

'파일방' 카테고리의 다른 글

elinks  (0) 2026.01.20
platformio  (0) 2026.01.17
nanoVG  (0) 2026.01.09
popos  (0) 2025.09.03
GNS3  (0) 2025.09.01
Posted by 구차니
파일방2026. 1. 9. 10:55

lvgl 보다 보니 임베디드 리눅스에서 nanoVG를 통해 쓰는게 있대서 보는데

[링크 : https://docs.lvgl.io/master/integration/embedded_linux/nanovg.html]

 

openGL을 이용한 벡터그래픽 라이브러리

써야하냐.. 라는 측면에서는 페이지의 최상단에 써있는 한 문구가 걸리네..

그 와중에 opengl을 통해 렌더하는거라.. x 없이는 무리일려나?

This project is not actively maintained.

[링크 : https://github.com/memononen/nanovg]

 

 

'파일방' 카테고리의 다른 글

platformio  (0) 2026.01.17
directFB2  (0) 2026.01.09
popos  (0) 2025.09.03
GNS3  (0) 2025.09.01
makeself  (0) 2025.08.25
Posted by 구차니

ttyACM 이라는 장치명으로 붙길래 ACM의 약자가 궁금해서 검색

Communication Device Class (Abstract Control Model)

[링크 : https://www.keil.com/pack/doc/mw/usb/html/group__usbh__cdcacm_functions.html]

 

 

[링크 : https://docs.oracle.com/cd/E19253-01/819-0360/gevsx/index.html]

 

CDC의 서브클래스라고 해야하나.. 아무튼 CDC에 ACM과 ECM이 있는데

그러면 usb to ethernet 들은 ECM 클래스인가? 조사를 나중에 해봐야겠네

3) Communication Device Class(CDC)
USB to Serial, USb to ethrenet 등 usb 포트에 연결하여 통신하는 디바이스들이 주로 사용하는 class이다. CDC는 통신 방법에 따라 ACM, ECM, EEM, NCM, OBEX 등의 다양한 subclass를 사용한다.
ACM(Abstract Control Model Class)
USB to Serial에 주로 사용되는 subclass
ECM(Ethernet Networking Control Model)
Usb to ethernet의 subclass. 주 목적은 ethernet packet을 전송하기 위한 class이다.

[링크 : https://jeongzero.oopy.io/fad066a1-fe95-487e-a826-003aee42a0cc]

 

ECM - usb if에서 정의

rndis (remote ndis) - ms에서 개발한 독점 프로토콜

[링크 : https://codezoo.tistory.com/109]

[링크 : https://community.st.com/t5/stm32-mcus-products/stm32u5x-usb-ecm-demo-how-to-setup-host/td-p/631189]

'이론 관련 > 컴퓨터 관련' 카테고리의 다른 글

cpuz 와 메모리 타이밍  (0) 2026.01.27
mPCIe pinout usb  (0) 2026.01.21
pc 쿨링팬 pwm 주파수  (0) 2025.12.01
bit banging  (0) 2025.05.08
numa 와 smp  (0) 2025.05.07
Posted by 구차니

곱씹어봤자 좋을것도 없지만 왜 나에대한 대우는 이따구인가 라는 생각이 들면

자꾸만 짜증이 물밀듯이 밀려온다.

인터넷 글을 봐도 이상하리 만치 일을 해결하려는 사람들에게 딴지가 걸리는건 왜일까..

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

  (0) 2026.01.15
일이 끝나지 않아!  (0) 2025.12.18
외근, 피곤  (0) 2025.12.17
송년회  (0) 2025.12.08
이게 번아웃인가  (0) 2025.12.05
Posted by 구차니
embeded/Cortex-M3 STM2026. 1. 6. 11:44

cubeide의 help에서 manage embedded software packages로 접근하거나

 

ioc 파일 열고 software packs - manage software packs로 접근하면 된다.

깔긴했는데 어떻게 띄우지 -ㅁ-?

Posted by 구차니
embeded/Cortex-M4 STM2026. 1. 5. 17:46

'embeded > Cortex-M4 STM' 카테고리의 다른 글

stm32g4 cordic fmac  (0) 2025.11.28
STM32CubeProgrammer / uart / parity  (0) 2025.11.28
stm32flash 0.5 0.7 버전과 stm32g473  (0) 2025.11.28
stm32g473 ADC calibration  (0) 2025.11.28
stm32f411 black fill board  (0) 2025.11.22
Posted by 구차니
embeded/Cortex-M3 STM2026. 1. 5. 16:51

대~~충 프로젝트 하나 파고 외부 8MHz로 해서 PLL 사용해 USB에는 48MHz를 넣어준다.

 

USB Fast Speed 를 지원하도록 하고 CDC(VCP) 를 지원하도록 하면

 

 

PA11 / PA12에 USB_DP / USB_DM 이라고 표기된다.

그런데.. D는 D+ 니까 Positive 같은데 왜 D-는 DM이지? negative DN 이어야 하지 않나?

(ai 답변. data minus.. -_-)

 

아무튼 미들웨어 추가하면, 미들웨어와 USB_DEVICE 라는 디렉토리가 추가된다.

 

함수 쓰는건 귀찮으니 대충 끌어옴.

int main(void)
{

/* USER CODE BEGIN 1 */
#define BUF_SIZE 30
uint8_t usb_buf[BUF_SIZE];
uint32_t count = 0;
/* USER CODE END 1 */

/* MCU Configuration--------------------------------------------------------*/

/* Reset of all peripherals, Initializes the Flash interface and the Systick. */
HAL_Init();

/* USER CODE BEGIN Init */

/* USER CODE END Init */

/* Configure the system clock */
SystemClock_Config();

/* USER CODE BEGIN SysInit */

/* USER CODE END SysInit */

/* Initialize all configured peripherals */
MX_GPIO_Init();
MX_USB_DEVICE_Init();
/* USER CODE BEGIN 2 */

/* USER CODE END 2 */

/* Infinite loop */
/* USER CODE BEGIN WHILE */
while (1)
{
sprintf((char*)usb_buf, "USB CDC TEST %ld\r\n", count);
CDC_Transmit_FS(usb_buf, BUF_SIZE);
HAL_Delay(1000);
memset(usb_buf,0,BUF_SIZE);
count++;

/* USER CODE END WHILE */

/* USER CODE BEGIN 3 */
}
/* USER CODE END 3 */
}

[링크 : https://eteo.tistory.com/194]

 

꽂으니 아래처럼 인식한다.

$ sudo demsg -w
[25664.443438] usb 1-2: new full-speed USB device number 26 using xhci_hcd
[25664.574720] usb 1-2: New USB device found, idVendor=0483, idProduct=5740, bcdDevice= 2.00
[25664.574741] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[25664.574748] usb 1-2: Product: STM32 Virtual ComPort
[25664.574754] usb 1-2: Manufacturer: STMicroelectronics
[25664.579419] cdc_acm 1-2:1.0: ttyACM0: USB ACM device

 

$ lsusb -t -v
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/12p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    |__ Port 2: Dev 26, If 0, Class=Communications, Driver=cdc_acm, 12M
        ID 0483:5740 STMicroelectronics Virtual COM Port
    |__ Port 2: Dev 26, If 1, Class=CDC Data, Driver=cdc_acm, 12M
        ID 0483:5740 STMicroelectronics Virtual COM Port

minicom은 9600으로 하던 115200 으로 하던 동일하게 값이 잘 들어온다. 신기하네

다만 많은 데이터가 있을때는 어떻게 될 진 미지수. 나중에 테스트 해봐야지

 

 

1회 굽기는 되는데 그 이후로 rebooting이 안될 때

step 1. reset 누르고 connect 누르고 reset 뗀다음 full chip erase

 

step 2. cubeide에서 swd 핀 할당해주기

 

"no debug" 로 두면 PA13/PA14가 주황색으로 되는데, 그러면 계속 retry 뜨니까 Serial Wire로 변경해준다.(SWO)

이건 실패시



STMicroelectronics ST-LINK GDB server. Version 7.8.0
Copyright (c) 2024, STMicroelectronics. All rights reserved.

Starting server with the following options:
        Persistent Mode            : Disabled
        Logging Level              : 1
        Listen Port Number         : 61234
        Status Refresh Delay       : 15s
        Verbose Mode               : Disabled
        SWD Debug                  : Enabled

Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
      -------------------------------------------------------------------
                        STM32CubeProgrammer v2.17.0                  
      -------------------------------------------------------------------



Log output file:   /tmp/STM32CubeProgrammer_RFILwX.log
ST-LINK SN  : 31000D000D2D343632525544
ST-LINK FW  : V2J45S7
Board       : --
Voltage     : 3.21V
SWD freq    : 4000 KHz
Connect mode: Under Reset
Reset mode  : Hardware reset
Device ID   : 0x410
Revision ID : Rev X
Device name : STM32F101/F102/F103 Medium-density
Flash size  : 128 KBytes
Device type : MCU
Device CPU  : Cortex-M3
BL Version  : --



Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_byIESj.srec
  File          : ST-LINK_GDB_server_byIESj.srec
  Size          : 31.65 KB 
  Address       : 0x08000000 


Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 31]
Download in Progress:


File download complete
Time elapsed during download operation: 00:00:01.365



Verifying ...




Download verified successfully 


Shutting down...
Target is not responding, retrying...
Target is not responding, retrying...
Target is not responding, retrying...
Target is not responding, retrying...
Target is not responding, retrying...

 

이건 설정해주고 잘 될 때

STMicroelectronics ST-LINK GDB server. Version 7.8.0
Copyright (c) 2024, STMicroelectronics. All rights reserved.

Starting server with the following options:
        Persistent Mode            : Disabled
        Logging Level              : 1
        Listen Port Number         : 61234
        Status Refresh Delay       : 15s
        Verbose Mode               : Disabled
        SWD Debug                  : Enabled

Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
      -------------------------------------------------------------------
                        STM32CubeProgrammer v2.17.0                  
      -------------------------------------------------------------------



Log output file:   /tmp/STM32CubeProgrammer_0DypHa.log
ST-LINK SN  : 31000D000D2D343632525544
ST-LINK FW  : V2J45S7
Board       : --
Voltage     : 3.21V
SWD freq    : 4000 KHz
Connect mode: Under Reset
Reset mode  : Hardware reset
Device ID   : 0x410
Revision ID : Rev X
Device name : STM32F101/F102/F103 Medium-density
Flash size  : 128 KBytes
Device type : MCU
Device CPU  : Cortex-M3
BL Version  : --



Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_a2ozrR.srec
  File          : ST-LINK_GDB_server_a2ozrR.srec
  Size          : 31.65 KB 
  Address       : 0x08000000 


Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 31]
Download in Progress:


File download complete
Time elapsed during download operation: 00:00:01.371



Verifying ...




Download verified successfully 


Shutting down...
Exit.

[링크 : https://blog.naver.com/crucian2k3/221533654464]

 

stlink/v2 에서는 3v3 핀을 제거하고 usb를 연결해주면 깔끔하게 전원이랑 문제없이 연결된다.

 

+

2026.01.06

되긴한데.. 먼가 잘되진 않는 느낌. 소스코드 하나 붙여넣고 그러면 정상적으로 나오지 않고

usb 연결한채로 프로그램을 다시 구으면 usb 뽑았다 꽂기 전에는 재기동이 정상적으로 이루어지지 않는다.

클럭을 올려도 (72MHz) 안되는걸 보면 다른게 문제인데... 멀까?

// main.c
void USB_CDC_RxHandler(uint8_t* Buf, uint32_t Len)
{
  for(int idx = 0; idx < Len;idx++)
  if(Buf[idx] == 0x0D) Buf[idx] = 0x0A;
CDC_Transmit_FS(Buf, Len);
}

// usbd_cdc_if.c
static int8_t CDC_Receive_FS(uint8_t* Buf, uint32_t *Len)
{
  /* USER CODE BEGIN 6 */
  USBD_CDC_SetRxBuffer(&hUsbDeviceFS, &Buf[0]);
  USBD_CDC_ReceivePacket(&hUsbDeviceFS);

  USB_CDC_RxHandler(UserRxBufferFS, *Len);
  memset(UserRxBufferFS, '\0', *Len);

  return (USBD_OK);
  /* USER CODE END 6 */
}

 

[링크 : https://deepbluembedded.com/stm32-usb-cdc-virtual-com-port-vcp-examples/#stm32-usb-cdc-transmit-example]

Posted by 구차니