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) , vcp?  (0) 2025.11.19
stm32f103 도착  (0) 2025.11.19
Posted by 구차니

머.. 안피곤 한 날이 있긴 했던가....?

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

눈 아니 폭설  (2) 2025.12.04
소소한 지름(?) part 2  (0) 2025.11.25
오늘따...라 엄청 피곤하고 추움  (0) 2025.11.17
눈떠보니  (0) 2025.11.10
부활 쿨타임  (0) 2025.11.08
Posted by 구차니

아부지 신나신듯. 일한다고 바쁜데 자꾸 사진 보내심 -_ㅠ

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

11월의 끝  (0) 2025.11.30
새... 차라서 그런거겠지? (멀미)  (2) 2025.11.26
오랫만에 지름  (0) 2025.11.18
하루 늦은 바쁜 일기  (0) 2025.11.16
경기투어패스 part 2  (0) 2025.11.14
Posted by 구차니
embeded/Cortex-M3 STM2025. 11. 19. 19:47

리눅스/우분투

[링크 : https://manpages.ubuntu.com/manpages/xenial//man1/dfu-util.1.html]

 

윈도우

Description

STSW-STM32080 package contains all binaries and source code for DfuSe USB device firmware upgrade (DFU) software, including the demonstration, debugging GUIs and protocol layers.
It includes the DFU driver compatible with the latest Microsoft®OS.
DfuSe utility can be used to interact with the STM32 system memory bootloader or any In-Application Programming (IAP) firmware, running from the user Flash, thus allowing internal memories programming through USB.
All source files for Microsoft®Visual Studio 2012 are provided as well, to allow the customization of the default GUI interface.
  • All features

    • DfuSE USB Programming
    • Command line version
    • All binaries and sources provided
 

[링크 : https://www.st.com/en/development-tools/stsw-stm32080.html]

 

[링크 : https://community.st.com/t5/stm32cubeide-mcus/programming-stm32-in-bootloader-mode-under-linux/td-p/277572]

[링크 : https://www.os4all.com/m/70]

[링크 : https://www.os4all.com/m/69]

 

dfu 부트로더

[링크 : https://bigcoco.tistory.com/m/6]

 

 

Posted by 구차니
embeded/Cortex-M3 STM2025. 11. 19. 19:39

간단하게.. ft232 같은 것 없어도 usb를 통해서 바로 통신이 가능한 com 포트를 생성해주는 기능

cubeIDE에서 따라해봐야겠다.

[링크 : https://jeonhj.tistory.com/m/29]

 

 

 

PA11 / PA12가 CAN or USB 포트로 사용을 해야 하는것 같군..

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

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

 

 

뚫어져라 보니

B7 / A6 + B8 으로 연결되어서 쭈욱 따라가니 A11 / A12로 연결된 듯.

[링크 : https://electronics.stackexchange.com/questions/610007/how-to-wire-usb-c-connector]

 

 

+

2026.01.05

벤더에서 만든 드라이버로 비표준으로 통신을 구현하는데 VCP(Virtual comm. port) 이고

CDC는 usb-if 표준으로 통신 장치로 규격화 된 것. 그래서 별도의 드라이버가 필요 없다고 한다.

ms에서 가상화 관련하여 vcp 라는 용어를 쓰기 시작했다고는 하지만 명확하게 어디서 부터 정의된 것인지는 보이지 않는 듯.

 

vcp로 연결될 경우 12Mbps로 연결된다고 하는 듯.  baudrate는 크게 설정이 필요없나?

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

[링크 : https://community.st.com/t5/stm32-mcus-embedded-software/differences-between-cdc-and-vcp/td-p/449879]

 

stm32 vcp driver 라고 제공이 되는데.. 그려면 cdc가 아니라 vcp로 연결되는건가...?

[링크 : https://blog.naver.com/top60331/222599480573]

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

stm32f103 usb c 연결 + usb ttl 연결  (0) 2025.11.22
stm32f103 dfu (Device Firmware Upgrade)  (0) 2025.11.19
stm32f103 도착  (0) 2025.11.19
stm32 리셋없이 디버그 붙이기  (0) 2025.11.11
stm32 adc + dma.. part 2?  (0) 2025.10.29
Posted by 구차니
embeded/Cortex-M3 STM2025. 11. 19. 19:26

micro USB인줄 알았는데 usb c로 왔다 -ㅁ-!

[링크 : http://mitem.auction.co.kr/vip?itemNo=F241860522] 2,970 * 2 + 3000

 

상면에는 리셋, BOOT0/BOOT1 핀을 위한 점퍼

STM32F103C8T6 MCU

8MHz / 32.768kHz 클럭

 

U1 - LDO LB2K 3.3V 500mA 인듯한데.. ams1117 같은 레귤레이터도 비싸다고 이런걸 넣은건가?

[링크 : https://www.alibaba.com/product-detail/Hainayu-Electronic-chip-SOT-23-5_1601244058700.html]

 

 

 

BOOT0 - 1

BOOT1 - 0 으로 점퍼를 셋팅하고 A9 / A10을 시리얼로 연결하면 stm32flash 등으로 올릴수있나 보다.

[링크 : https://medium.com/@paramaggarwal/programming-an-stm32f103-board-using-usb-port-blue-pill-953cec0dbc86]

 

 

USB는 전원공급전용인가?

[링크 : https://ko.aliexpress.com/item/1005009880645839.html]

RT9193-33GB  3.3V 300MA SOT23-5

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

Posted by 구차니
embeded/esp322025. 11. 18. 18:58

esp32 s3나 esp32나 비슷하고

esp8266과 esp32 c3(risc v) 비슷하다

 

esp8266이 l106

esp32 가 lx6

esp32-s2 s3가 lx7

esp32 c 는 risc-v 인데

[링크 : https://www.reddit.com/r/esp32/comments/wfiije/has_anyone_done_any_benchmarking_o f_the_esp32_vs/]

 

simd는 있으나 컴파일러에는 통합 안 되었고 deep learning 으로 가속 가능한 듯

[링크 : https://github.com/espressif/esp-dl]

 

esp32-s2/3에서는 어떻게 쓸수는 있는데 eps32 에는 simd가 없나?

[링크 : https://github.com/espressif/esp-dsp]

[링크 : https://www.reddit.com/r/esp32/comments/1hm91t0/simd_instructions_on_the_s3_are_fast/]

 

arm에서는 neon 혹은 sve 라고 하는데

esp 에서는 PIE 표기한다. 명령어 확장이 맞긴 한디... 흐음...

4.1.1.2 Processor Instruction Extensions (PIE)
ESP32-S3 contains a series of new extended instruction set in order to improve the operation efficiency of
specific AI and DSP (Digital Signal Processing) algorithms.
Feature List
• 128-bit new general-purpose registers
128-bit vector operations, e.g., complex multiplication, addition, subtraction, multiplication, shifting, comparison, etc
• Data handling instructions and load/store operation instructions combined
• Non-aligned 128-bit vector data
• Saturation operation

[링크 : https://documentation.espressif.com/esp32-s3_datasheet_en.pdf]

 

The PIE (Processor Instruction Extensions) has the following features:
• 128-bit general-purpose registers
• 128-bit vector operations, e.g., multiplication, addition, subtraction, accumulation, shifting, comparison,etc.
• Integration of data transfer into arithmetic instructions
• Support for non-aligned 128-bit vector data
• Support for saturation operation

[링크 : https://documentation.espressif.com/esp32-s3_technical_reference_manual_en.pdf#pie]

'embeded > esp32' 카테고리의 다른 글

esp32 와 spi lcd 성능 비..교?  (0) 2026.01.12
esp32 c6 zigbee thread matter  (0) 2026.01.10
esp32 계열 정리  (0) 2025.07.08
esp32devkitc v4  (0) 2025.01.06
esp32cam sdio wifi  (0) 2024.09.11
Posted by 구차니

st link v2는 나중에 지르고(으으.. 택배비)

일단 2개 5940 + 3000 원으로 지름

stm32flash 프로그램으로 boot0 건드려서 구울순 있을 것 같은데

어떻게든 다음에 지를때 stlink v2가 필요하긴 할 듯

 

[링크 : https://itempage3.auction.co.kr/DetailView.aspx?ItemNo=F241860522&frm3=V2]

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

새... 차라서 그런거겠지? (멀미)  (2) 2025.11.26
새 차 도착  (4) 2025.11.20
하루 늦은 바쁜 일기  (0) 2025.11.16
경기투어패스 part 2  (0) 2025.11.14
경기투어패스 part 1  (0) 2025.11.13
Posted by 구차니
개소리 왈왈/컴퓨터2025. 11. 18. 14:02

이전 짐켈러의 인터뷰와 통하는게 있는 기사.

그러니까.. 이제 cpu에 ram이 달린게 아닌 ram에 cpu가 달린 녀석이 나오면 되는건가..(!!)

 

Q : 그럼 무엇을 해야 하나?
A : “인터페이스(물리적 구조)를 바꿔야 한다. HBM의 핵심 목적은 속도를 늦추고, 복잡도를 낮추며, 전력 소모를 줄이는 거였다. 그런데 계속 속도를 높이면서 전력 소비와 비용이 커지고 있다. ‘약간 빨라진 차세대 D램’은 흥미롭지 않다. 진정한 변화가 필요하다.”

[링크 : https://v.daum.net/v/20251118050158870]

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

rgbw 패널 테스트  (0) 2025.11.27
중고 TV 구매 43인치  (0) 2025.11.26
아 몰라 질러  (0) 2025.11.04
빔 프로젝터 구매 고민  (0) 2025.10.24
lg sh5 hdmi arc  (0) 2025.09.22
Posted by 구차니

더러우면 딱 그지인디 -_-

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

소소한 지름(?) part 2  (0) 2025.11.25
피곤  (0) 2025.11.21
눈떠보니  (0) 2025.11.10
부활 쿨타임  (0) 2025.11.08
mt 아우빡세  (0) 2025.11.06
Posted by 구차니