개소리 왈왈/컴퓨터2025. 11. 26. 21:25

당근에서 후다닥 5만원에 업어옴.

원래 40만원에서 30만원에 팔리던 저렴한 녀석으로

모델명은 "이노스 43인치 LED TV G43QLED ZERO EDITION"

[링크 : https://m.blog.naver.com/cchkill/223242445822]

 

퀀텀닷 패널이라서 색감이 좋고 어쩌구 하는데

RGBW에 LG 패널(또 LG냐!!!).. 역시 RGBW는 노란 똥색을 피해갈수가 없나 보다.

 

콜드 부팅시간은 안드로이드 구글TV라서 1분은 걸리는것 같고(전원 연결부터)

스마트 티비니까.. 그냥 꽂아놓고 다녀야 하나 고민중..

 

아무튼 2번 포트에 꽂았는데 HDMI 2.1이 되는지 4k 60p에 RGB가 잘 잡힌다.

 

일단은.. 사운드 바는 스탠드 때문에 간섭되서 방법이 없고..

무게가 6.2kg. 다나와 기준 7kg 라는데 모니터 암으로 해서 어떻게 공중부양을 시켜야 하나..

[링크 : https://prod.danawa.com/info/?pcode=72821348]

Posted by 구차니
embeded/Cortex-M3 STM2025. 11. 26. 17:43

좀 더 써봐야 알겠지만, STM32F103C8T6과 STLink v2 클론 SWD로 작동 확인완료!

그나저나 reset은 안해놔서 리셋이 될지 모르겠네

 

Posted by 구차니

출근길에 처음으로 새차를 몰아보는데 (아부지차, k5 2026 1.6 가솔린 터보) 멀미가 지대로 난다 -_ㅠ

게다가 브레이크가 무슨.. 5mm 정도 밟아야 이전 브레이킹 수준인지 -_ㅠ

브레이크를 좀 둔하게 할 수 없나 싶기도 한데.. 대신 조작만 세밀하게 가능하다면 멈추기 직전에 확 잡히는건 덜해서 좋긴하다.

 

차선이탈 보조는 끄는법을 못 찾았고

hud는 먼가 정신없어서 꺼버리고(계속 눈이가요~ 눈이가~)

핸들 높이 올리고

오는 내내 창문열고 히터 온도 좀 올리고 왔더니 냄새도 빠지는 것 같기도 하고..

 

13.6km 연비가 나오던게 회사오니 14.6km 나옴 ㅋㅋㅋ

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

새 차 도착  (2) 2025.11.20
오랫만에 지름  (0) 2025.11.18
하루 늦은 바쁜 일기  (0) 2025.11.16
경기투어패스 part 2  (0) 2025.11.14
경기투어패스 part 1  (0) 2025.11.13
Posted by 구차니
embeded/Cortex-M3 STM2025. 11. 24. 19:08

pre-build steps 에서 명령을 주어 특정 파일을 행성해서 그 변수에 값을 넣어주는 방식

머.. 어짜피 이것도 makefile로 생성될테니 방법은 방법이지

 

 

git log --pretty=format:'#define GIT_INFO_PRESENT%n static const char* GIT_INFO = "Version Information=[%H,%d]\r\n";' -n 1 > ../Core/Inc/gitcommit.h

[링크 : https://community.st.com/t5/stm32-mcus-embedded-software/git-commit-hash-flashed-along-with-my-code/td-p/179180]

Posted by 구차니
Programming/golang2025. 11. 24. 19:04

golang 에서 커밋 해시를 바이너리에 넣는 방법을 찾아보는 중

 

아래 방법은 링커에서 변수에 넣는것 같은데 이것도 쓸만해 보이긴 한데..

go build -ldflags "-X my/package/config.Version=1.0.0"

[링크 : https://www.reddit.com/r/golang/comments/rhpbvo/what_kind_of_things_have_you_ran_with_gogenerate/?tl=ko]

 

go version은 좀더 상세한 자료가 들어가는것 같은데 좀더 나은 접근 방법이 될 듯?

go version
The go command now embeds version control information in binaries. It includes the currently checked-out revision, commit time, and a flag indicating whether edited or untracked files are present. Version control information is embedded if the go command is invoked in a directory within a Git, Mercurial, Fossil, or Bazaar repository, and the main package and its containing main module are in the same repository. This information may be omitted using the flag -buildvcs=false.

Additionally, the go command embeds information about the build, including build and tool tags (set with -tags), compiler, assembler, and linker flags (like -gcflags), whether cgo was enabled, and if it was, the values of the cgo environment variables (like CGO_CFLAGS). Both VCS and build information may be read together with module information using go version -m file or runtime/debug.ReadBuildInfo (for the currently running binary) or the new debug/buildinfo package.

The underlying data format of the embedded build information can change with new go releases, so an older version of go may not handle the build information produced with a newer version of go. To read the version information from a binary built with go 1.18, use the go version command and the debug/buildinfo package from go 1.18+.

[링크 : https://tip.golang.org/doc/go1.18#go-command]

'Programming > golang' 카테고리의 다른 글

golang 정적웹 파일 포함하기  (0) 2025.11.24
go vet (golang 정적분석)  (0) 2025.10.02
golang 윈도우 서비스 프로그램 작성하기  (0) 2025.02.18
golang tcp socket timeout 주기(listen, read)  (0) 2024.04.08
golang reflect  (0) 2024.02.20
Posted by 구차니
Programming/golang2025. 11. 24. 18:59

내취향은 아니지만..

go generate 명령을 통해 코드를 생성하고 다시 빌드해서 넣는 듯

 

[링크 : https://go.dev/blog/generate]

[링크 : https://github.com/securego/gosec]

[링크 : https://ccambo.tistory.com/m/entry/Golang-의존성-없이-웹으로-서비스할-정적-파일들을-Golang-바이너리에-추가하기]

'Programming > golang' 카테고리의 다른 글

golang git commit hash  (0) 2025.11.24
go vet (golang 정적분석)  (0) 2025.10.02
golang 윈도우 서비스 프로그램 작성하기  (0) 2025.02.18
golang tcp socket timeout 주기(listen, read)  (0) 2024.04.08
golang reflect  (0) 2024.02.20
Posted by 구차니
게임/doom2025. 11. 23. 18:44

그냥 할게 없어서 결국에는 가입 -_-

그 와중에 노트북에서 하고 성능 출력해두니.. 50% 에서 벗어나질 못하네.

어쩐지 배경에 둠가이 화질이 구지더라니.

 

데탑도 좋은건 아니지만 그래도 최저사양FHD는 어떻게 커버할 것 같으니 해봐야겠다 

'게임 > doom' 카테고리의 다른 글

베데스다... 사태?  (0) 2025.04.24
doom eternal 시....작?  (0) 2025.04.23
doom normal 난이도 끝  (0) 2025.04.23
doom 룬 획득  (0) 2025.04.20
doom 노트북에서 시도  (0) 2025.04.08
Posted by 구차니
embeded/Cortex-M3 STM2025. 11. 22. 20:26

예제

[링크 : https://github.com/miniwinwm/BluePillDemo]

 

ATMEL AVR 아두이노 대신 stm32를 넣기 시작한게 bluepill 인가..?

[링크 : https://deepbluembedded.com/stm32-blue-pill-pinout-programming-guide/]

 

c8과 c6 두가지가 있다는데 플래시와 메모리 용량이 차이가 많이 난다.

  • Arm® 32-bit Cortex®-M3 CPU core
    • 72 MHz maximum frequency, 1.25 DMIPS/MHz (Dhrystone 2.1) performance at 0 wait state memory access
    • Single-cycle multiplication and hardware division
  • Memories
    • 64 or 128 Kbytes of Flash memory
    • 20 Kbytes of SRAM

[링크 : https://www.st.com/en/microcontrollers-microprocessors/stm32f103c8.html]

 

  • ARM 32-bit Cortex™-M3 CPU Core
    • 72 MHz maximum frequency,1.25 DMIPS/MHz (Dhrystone 2.1) performance at 0 wait state memory access
    • Single-cycle multiplication and hardware division
  • Memories
    • 16 or 32 Kbytes of Flash memory
    • 6 or 10 Kbytes of SRAM

[링크 : https://www.st.com/en/microcontrollers-microprocessors/stm32f103c6.html]

Posted by 구차니
embeded/Cortex-M4 STM2025. 11. 22. 20:17

stm32f103 bootloader 검색하면 이상하게(?) black pill 이라는게 자주 보이는데

먼가 해서 찾아보니 f411 / cortex-m4 기반의 개발보드인가 보다.


cortex-m4

[링크 : https://www.st.com/en/microcontrollers-microprocessors/stm32f411.html]

 

내가 가진거랑 거의 보드 레이아웃이 동일한 걸 보면.. 내꺼가 이 녀석의 cortex-m3의 클론인거 같기도 한데

[링크 : https://www.devicemart.co.kr/goods/view?no=14997708]

 


조금 더 찾아보니 blue pill 이라고 색상별로 나온 레퍼런스가 있고, blue -> black 순서로 후계기 인듯.

[링크 : https://stm32-base.org/boards/STM32F103C8T6-Blue-Pill.html]

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

stm32g473 adc  (0) 2025.11.03
Posted by 구차니
embeded/Cortex-M3 STM2025. 11. 22. 19:40

단순하게 전원만 연결되는줄 알았는데

윈도우에서는 잘못된 장치라고 떠서, 리눅스에서 확인

 

boot0 - 0  / boot1 - 0 에 usb 연결

[   50.788963] usb 1-1.1: new full-speed USB device number 4 using ehci-pci
[   50.853992] usb 1-1.1: device descriptor read/64, error -32
[   51.023960] usb 1-1.1: device descriptor read/64, error -32
[   51.196938] usb 1-1.1: new full-speed USB device number 5 using ehci-pci
[   51.261946] usb 1-1.1: device descriptor read/64, error -32
[   51.429943] usb 1-1.1: device descriptor read/64, error -32
[   51.533019] usb 1-1-port1: attempt power cycle
[   52.113007] usb 1-1.1: new full-speed USB device number 6 using ehci-pci
[   52.524932] usb 1-1.1: device not accepting address 6, error -32
[   52.589928] usb 1-1.1: new full-speed USB device number 7 using ehci-pci
[   53.004924] usb 1-1.1: device not accepting address 7, error -32
[   53.005142] usb 1-1-port1: unable to enumerate USB device

 

boot0 - 1 / boot1 - 0에 usb 연결. 차이는 없다.

[  225.014866] usb 1-1.1: new full-speed USB device number 8 using ehci-pci
[  225.079866] usb 1-1.1: device descriptor read/64, error -32
[  225.253817] usb 1-1.1: device descriptor read/64, error -32
[  225.420787] usb 1-1.1: new full-speed USB device number 9 using ehci-pci
[  225.485801] usb 1-1.1: device descriptor read/64, error -32
[  225.654762] usb 1-1.1: device descriptor read/64, error -32
[  225.756872] usb 1-1-port1: attempt power cycle
[  226.337664] usb 1-1.1: new full-speed USB device number 10 using ehci-pci
[  226.756996] usb 1-1.1: device not accepting address 10, error -32
[  226.820602] usb 1-1.1: new full-speed USB device number 11 using ehci-pci
[  227.236577] usb 1-1.1: device not accepting address 11, error -32
[  227.236751] usb 1-1-port1: unable to enumerate USB device

 

 

일단 PA9이 USART1_TX / PA10이 USART1_RX니까 USB TTL을 이용해서 적당히 연결해줘본다.

[링크 : https://www.st.com/resource/en/datasheet/stm32f103c8.pdf]

 

USB TTL이 /dev/ttyUSB0으로 인식해서 설정하고 읽어보면 잘 읽힌다.

$ stm32flash /dev/ttyUSB0
stm32flash 0.5

http://stm32flash.sourceforge.net/

Interface serial_posix: 57600 8E1
Warning: the interface was not closed properly.
Version      : 0x30
Option 1     : 0x00
Option 2     : 0x00
Device ID    : 0x0410 (STM32F10xxx Medium-density)
- RAM        : Up to 20KiB  (512b reserved by bootloader)
- Flash      : Up to 128KiB (size first sector: 4x1024)
- Option RAM : 16b
- System RAM : 2KiB

 

프로그램이 없어서 그런가 boot0 - 0, boot1 - 0 으로 되어있어도 내부 부트로더가 작동한다.

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

 

무언가 구으면 boot0 - 1, boot1 - 0 으로 하고 리셋눌러줘야 stm32flash에 응답한다.

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

stm32 cubeide git commit hash  (0) 2025.11.24
stm32f103c8t6 blue pill board  (0) 2025.11.22
stm32f103 dfu (Device Firmware Upgrade)  (0) 2025.11.19
stn32f103 usb cdc(communication device class)  (0) 2025.11.19
stm32f103 도착  (0) 2025.11.19
Posted by 구차니