'잡동사니'에 해당되는 글 13972건
- 2025.11.25 소소한 지름(?) part 2
- 2025.11.24 stm32 cubeide git commit hash
- 2025.11.24 golang git commit hash
- 2025.11.24 golang 정적웹 파일 포함하기
- 2025.11.24 쇼트키 다이오드
- 2025.11.23 doom eternal을 위해 베데스다 가입
- 2025.11.22 stm32f103c8t6 blue pill board
- 2025.11.22 stm32f411 black fill board
- 2025.11.22 stm32f103 usb c 연결 + usb ttl 연결
- 2025.11.21 피곤
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
'embeded > Cortex-M3 STM' 카테고리의 다른 글
| STSW-STM32084 / usb demo (0) | 2025.12.09 |
|---|---|
| stlink v2 클론 도착! (0) | 2025.11.26 |
| stm32f103c8t6 blue pill board (0) | 2025.11.22 |
| stm32f103 usb c 연결 + usb ttl 연결 (0) | 2025.11.22 |
| stm32f103 dfu (Device Firmware Upgrade) (0) | 2025.11.19 |
golang 에서 커밋 해시를 바이너리에 넣는 방법을 찾아보는 중
아래 방법은 링커에서 변수에 넣는것 같은데 이것도 쓸만해 보이긴 한데..
| go build -ldflags "-X my/package/config.Version=1.0.0" |
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+. |
'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 |
내취향은 아니지만..
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 |
순방향 전압강하가 적고 어쩌구 하고, 고속정류(교류->직류)에 유리하다고
하지만 역 누설전류가 많다는데 그게 어떤걸 의미하는지 감이 안왔었는데...
[링크 : https://m.blog.naver.com/giriffing/220911910493]
[링크 : https://m.blog.naver.com/haneham/221266444757]
말 그대로 전류가 역류해서 왜 전원이 생겨나지(멘붕) 이런 사태가 발생해버림..
그 와중에 온도에 따른 영향도 크다

그냥 할게 없어서 결국에는 가입 -_-
그 와중에 노트북에서 하고 성능 출력해두니.. 50% 에서 벗어나질 못하네.
어쩐지 배경에 둠가이 화질이 구지더라니.

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

'게임 > doom' 카테고리의 다른 글
| 둠 이터널 - 수직 동기화 문제 -_- (2) | 2025.12.20 |
|---|---|
| 둠 이터널 - 추종자 기지 공략 (0) | 2025.12.16 |
| 베데스다... 사태? (0) | 2025.04.24 |
| doom eternal 시....작? (0) | 2025.04.23 |
| doom normal 난이도 끝 (0) | 2025.04.23 |
예제
[링크 : https://github.com/miniwinwm/BluePillDemo]
ATMEL AVR 아두이노 대신 stm32를 넣기 시작한게 bluepill 인가..?

[링크 : https://deepbluembedded.com/stm32-blue-pill-pinout-programming-guide/]
c8과 c6 두가지가 있다는데 플래시와 메모리 용량이 차이가 많이 난다.
|
[링크 : https://www.st.com/en/microcontrollers-microprocessors/stm32f103c8.html]
|
[링크 : https://www.st.com/en/microcontrollers-microprocessors/stm32f103c6.html]
'embeded > Cortex-M3 STM' 카테고리의 다른 글
| stlink v2 클론 도착! (0) | 2025.11.26 |
|---|---|
| stm32 cubeide git commit hash (0) | 2025.11.24 |
| stm32f103 usb c 연결 + usb ttl 연결 (0) | 2025.11.22 |
| stm32f103 dfu (Device Firmware Upgrade) (0) | 2025.11.19 |
| stn32f103 usb cdc(communication device class) , vcp? (0) | 2025.11.19 |
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' 카테고리의 다른 글
| 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 |
| stm32g473 adc (0) | 2025.11.03 |
단순하게 전원만 연결되는줄 알았는데
윈도우에서는 잘못된 장치라고 떠서, 리눅스에서 확인
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) , vcp? (0) | 2025.11.19 |
| stm32f103 도착 (0) | 2025.11.19 |
머.. 안피곤 한 날이 있긴 했던가....?
'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글
| 눈 아니 폭설 (2) | 2025.12.04 |
|---|---|
| 소소한 지름(?) part 2 (0) | 2025.11.25 |
| 오늘따...라 엄청 피곤하고 추움 (0) | 2025.11.17 |
| 눈떠보니 (0) | 2025.11.10 |
| 부활 쿨타임 (0) | 2025.11.08 |
