https://www.onetransistor.eu/2017/11/st ... o-ide.html
I was steered away form using UART to program the STM323F103 and instead purchased an ST-LINKv2. I was informed this works flawlessly. I am working on Linux Mint 20.3.
Steps taken so far are:
- STM32F103C board prepped. 10k resistor removed. 1.5k installed. (Didn't have a 1.8k on hand)
- tan the install.sh script to install the UDEV rules
- PC rebooted
- jumper on boot0 moved to the '1' position
- bootloader file generic_boot20_pc13.bin downloaded from Rioger Clark's Github page
I then ran st-info which returned:
Code: Select all
$ ./st-info --probe
Found 1 stlink programmers
serial: 4700310005000059334d524e
openocd: "\x47\x00\x31\x00\x05\x00\x00\x59\x33\x4d\x52\x4e"
flash: 65536 (pagesize: 1024)
sram: 20480
chipid: 0x0410
descr: F1 Medium-density device
Tje next step is to run st-flash, and this fails:
Code: Select all
$ ./st-flash --reset write generic_boot20_pc13.bin 0x8000000
2023-02-08T16:04:00 INFO src/common.c: Loading device parameters....
2023-02-08T16:04:00 INFO src/common.c: Device connected is: F1 Medium-density device, id 0x20036410
2023-02-08T16:04:00 INFO src/common.c: SRAM size: 0x5000 bytes (20 KiB), Flash: 0x10000 bytes (64 KiB) in pages of 1024 bytes
2023-02-08T16:04:00 INFO src/common.c: Attempting to write 22268 (0x56fc) bytes to stm32 address: 134217728 (0x8000000)
Flash page at addr: 0x08005400 erased
2023-02-08T16:04:00 INFO src/common.c: Finished erasing 22 pages of 1024 (0x400) bytes
2023-02-08T16:04:00 INFO src/common.c: Starting Flash write for VL/F0/F3 core id
2023-02-08T16:04:00 ERROR src/common.c: unknown coreid, not sure what flash loader to use, aborting!: 2ba01477
2023-02-08T16:04:00 WARN src/common.c: Failed to write flash loader to sram!
2023-02-08T16:04:00 ERROR src/common.c: init_flash_loader() == -1
stlink_fwrite_flash() == -1
I haven't actually reached the stage of using the IDE yet!
Just wondering whether any one else has come across this and whether they solved it?