Author Topic: Issue with chinese BLue Pill cks32f103c8t6  (Read 4586 times)

0 Members and 1 Guest are viewing this topic.

Offline EldarTopic starter

  • Newbie
  • Posts: 3
  • Country: az
Issue with chinese BLue Pill cks32f103c8t6
« on: November 03, 2019, 01:45:02 pm »
I`ve got chinese clone CKS32f103c8t6 Blue Pill board with ST-LINK V2 (cheap clone again).I`m able to flash .hex file with ST LINK Utility software but I`m not able to use it with CubeIDE.Here is what I get when I press Debug Button:
Open On-Chip Debugger 0.10.0+dev-00021-g524e8c8 (2019-07-16-09:47)
Licensed under GNU GPL v2
For bug reports, read
   http://openocd.org/doc/doxygen/bugs.html
none separate
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 240 kHz
adapter_nsrst_delay: 100
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : clock speed 240 kHz
Info : STLINK v2 JTAG v34 API v2 SWIM v7 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 3.201053
Info : Stlink adapter speed set to 240 kHz
Warn : UNEXPECTED idcode: 0x2ba01477
Error: expected 1 of 1: 0x1ba01477
in procedure 'init'
in procedure 'ocd_bouncer'

I`ve found that, some solved that issue by pasting this line to the some .cfg file on platformio IDE.
set _CPUTAPID 0x1ba01477
How could be this done on cubeIDE?
Thanks,
Eldar.

 

Offline dave j

  • Regular Contributor
  • *
  • Posts: 137
  • Country: gb
Re: Issue with chinese BLue Pill cks32f103c8t6
« Reply #1 on: November 03, 2019, 02:57:56 pm »
Somewhere in your configuration it will reference a board configuration file for the blue pill called stm32f103_bluepill.cfg. You can add the set _CPUTAPID 0x1ba01477 to that file or, better, copy and edit file and use that.

You might need to change the interface to stlink-v2 instead of stlink-v2-1 as well.

I've attached the file I use. Remove the .txt extension (that's just to get it to work with the forum).
I'm not David L Jones. Apparently I actually do have to point this out.
 

Offline EldarTopic starter

  • Newbie
  • Posts: 3
  • Country: az
Re: Issue with chinese BLue Pill cks32f103c8t6
« Reply #2 on: November 03, 2019, 03:14:18 pm »
Thanks but I`m not able to find that file.U said somewhere in tghe configuration so I searched this address but didn`t find.
C:\ST\STM32CubeIDE_1.0.2\STM32CubeIDE\configuration
 

Offline dave j

  • Regular Contributor
  • *
  • Posts: 137
  • Country: gb
Re: Issue with chinese BLue Pill cks32f103c8t6
« Reply #3 on: November 03, 2019, 03:22:12 pm »
The stm32f103_bluepill.cfg file is part of the OpenOCD installation.

In your IDE it will probably be selected when you configure which board you use. (I'm not familiar with CubeIDE.)
I'm not David L Jones. Apparently I actually do have to point this out.
 

Offline EldarTopic starter

  • Newbie
  • Posts: 3
  • Country: az
Re: Issue with chinese BLue Pill cks32f103c8t6
« Reply #4 on: November 03, 2019, 05:10:00 pm »
I`m not familier with CubeIDE either :(
 

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 15437
  • Country: fr
Re: Issue with chinese BLue Pill cks32f103c8t6
« Reply #5 on: November 03, 2019, 10:45:53 pm »
You should probably beware of cheap chinese blue pills anyway. Just saying.
 :-DD
 
The following users thanked this post: newbrain


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf