Closed pirvcb closed 3 years ago
I am having same error, I think you have clone, not real stm32. I think this was solved in stlink repo, need to update one in this repo. https://github.com/stlink-org/stlink/pull/834/commits/8562e9c7effb3f297bd1420b4ce2237cb751472a
This is the chip that I have APM32F103CB 128KB MCU, and it gives same error in linux. Robotdyn black board.
You both may have fake chips.
This is a very widespread problem.
The official STM software will not upload via STLink to the fake chips
Not fake, a clone as I stated, it is APM32F103CB. and that also reads on chip so not fake. pirvcb might have a fake, that I don't know. And it uploads with no problem with other core and cubeProgrammer(SWD), with STLink. And like I said that id is added to stlink repo linked above also.
@tonaalt
AFIK. This core either uses the official STM binary for STLinkCLI ,
https://github.com/rogerclarkmelbourne/Arduino_STM32/tree/master/tools/win/stlink
or uses Texane STLink.
https://github.com/rogerclarkmelbourne/Arduino_STM32/tree/master/tools/win/texane-stlink
The link you posted (stlink-org/stlink@8562e9c) seems to be to a different STLink implementation entirely, which is not used by this core, so the update to that tool could not directly affect this repo.
If you are saying that the official STLink CLI should be replaced by this unknown implementation, you should make a PR that has that change and then it would need to be extensively regression tested, but potentially that implementation is not compatible with some chips which the existing STLinkCLI is compatible with = big can of worms :-(
my ST-link v2 clone doesn't even show up when I try to choose it as programmer... I downloaded the STM8 core from tenbaht (https://github.com/tenbaht/sduino) --> St-Link V2 shows up and I can upload my code withput problems.
Can this be combined somehow to get the st-link v2 clones work for the stm32 core? This would be great...
STM32F103CB STLink V2 OSX stops upload
Post by PIRVCB » Thu Jan 28, 2021 12:30 am Hello there! Got a STM32F103CB board. In Arduino IDE 1.8.13 running on WIN7 all goes ok. Tried 2 different STLink V2 chineese clones. Same results. Arduino Log:
STCube LOG:
PROBLEM IN MAC OSX 10.10.5
When move to OSX 10.10.5, with same version of Arduino IDE 1.8.13 and same STM32 library Roger Clark , the latest, i go in the following issue. Memory gets erased but then STLink stops before upload the new memory content.
LOG:
Other generic boards, like Blue Pills 103xx got already programmed without errors with same setup.
The board pictures are below.
https://drive.google.com/file/d/1MdYmImp78xfoDGcAevWeDqT7j-b2_0ew/view?usp=sharing https://drive.google.com/file/d/1eML3qYDpD0A5FfYI5h58dbSnmTH40FvT/view?usp=sharing
TIA!!! Davide