embeded/Cortex-M4 STM2025. 11. 28. 15:41

아무생각없이 57600-None 으로 했더니 정체 불명의(?) NACK가 뜬다.

 

57600-Even 로 해주니 잘된다.

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

stm32g4 cordic fmac  (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
stm32g473 adc  (0) 2025.11.03
Posted by 구차니
embeded/Cortex-M4 STM2025. 11. 28. 15:36

ubuntu 22.04 패키지로 설치된 건 0.5 버전인데

stm32g473을 boot0 핀을 이용해서 내장 부트로더로 올려보려고 하니 이런 에러가 발생한다.

0x469 장치 아이디 미지원.. 쩝..

$ stm32flash /dev/ttyUSB0
stm32flash 0.5

http://stm32flash.sourceforge.net/

Interface serial_posix: 57600 8E1
Unknown/unsupported device (Device ID: 0x469)

 

소스가 0.7 인데 받아서 빌드하고 해보니 잘된다.

$ ./stm32flash /dev/ttyUSB0
stm32flash 0.7

http://stm32flash.sourceforge.net/

Interface serial_posix: 57600 8E1
Version      : 0x31
Option 1     : 0x00
Option 2     : 0x00
Device ID    : 0x0469 (STM32G47xxx/48xxx)
- RAM        : Up to 96KiB  (16384b reserved by bootloader)
- Flash      : Up to 512KiB (size first sector: 1x2048)
- Option RAM : 48b
- System RAM : 28KiB

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

stm32g4 cordic fmac  (0) 2025.11.28
STM32CubeProgrammer / uart / parity  (0) 2025.11.28
stm32g473 ADC calibration  (0) 2025.11.28
stm32f411 black fill board  (0) 2025.11.22
stm32g473 adc  (0) 2025.11.03
Posted by 구차니
embeded/Cortex-M4 STM2025. 11. 28. 14:45

전압이 이상하게(?) 낮게 나와서 찾아 보는데 (대충 0.3v 정도?) gpt도 캘리브레이션 하라고 한다.

cubeide에 의해서 생성된 코드로 adc 가 초기화되고 나서

캘리브레이션 한 다음 약 2usec 이후에 HAL_ADC_GetValue(&hadc1); 하면 된다고 한다.

  MX_ADC1_Init();
  /* USER CODE BEGIN 2 */
  extern ADC_HandleTypeDef hadc1;
  HAL_ADCEx_Calibration_Start(&hadc1, ADC_SINGLE_ENDED);
  HAL_Delay(2);
  /* USER CODE END 2 */

  /* Infinite loop */
  /* USER CODE BEGIN WHILE */
  while (1)
  {

  }

 

stm32g4 인데 캘리브레이션 하지 않으면 0.924 V가 나왔고

1148
0.924902 * 24 = 22.197655

 

캘리브레이션 이후에는 0.979 V가 나왔다.

1216
0.979688 * 24 = 23.512501

[링크 : https://jeonhj.tistory.com/22]

'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
stm32f411 black fill board  (0) 2025.11.22
stm32g473 adc  (0) 2025.11.03
Posted by 구차니
개소리 왈왈/컴퓨터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]

 

+

2025.11.30

몇일 써보고 느낀 문제점

1. 전원 차단했다 켤때 자동으로 안드로이드 가동안하고 전원 눌러서 켜야 켜지는 듯

로고는 안나와도 부팅은 진행되고 있는 줄 알았는데 그게 아니었음

2. edid 오류 라고 해야하나.. pc에 연결해놓고 켜면 1920으로 인식한다.

수동으로 바꾸면 3840p30. HDMI 2.0 으로 인식하는 느낌인디...

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

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

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

 

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

stm32f103ret connectivity - usb  (0) 2025.12.09
STSW-STM32084 / usb demo  (0) 2025.12.09
stm32 cubeide git commit hash  (0) 2025.11.24
stm32f103c8t6 blue pill board  (0) 2025.11.22
stm32f103 usb c 연결 + usb ttl 연결  (0) 2025.11.22
Posted by 구차니

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

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

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

 

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

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

핸들 높이 올리고

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

 

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

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

점심에 기절  (0) 2025.12.06
11월의 끝  (0) 2025.11.30
새 차 도착  (4) 2025.11.20
오랫만에 지름  (0) 2025.11.18
하루 늦은 바쁜 일기  (0) 2025.11.16
Posted by 구차니

저번에 지른 stm32를 가지고 놀기 귀찮아서 stlink v2 클론 구매

엔코더 구매

 

모터랑 모터 드라이버는 좀 다음에 고민해봐야겠다.

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

이게 번아웃인가  (0) 2025.12.05
눈 아니 폭설  (2) 2025.12.04
피곤  (0) 2025.11.21
오늘따...라 엄청 피곤하고 추움  (0) 2025.11.17
눈떠보니  (0) 2025.11.10
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]

'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
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 구차니