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+.
[ 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을 이용해서 적당히 연결해줘본다.
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 으로 되어있어도 내부 부트로더가 작동한다.