CHIBISTUDIO PREVIEW20 openOCD stm32f103cbt6 maple-mini

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderators: barthess, RoccoMarco

johncblacker
Posts: 11
Joined: Sat Mar 30, 2019 8:12 pm

CHIBISTUDIO PREVIEW20 openOCD stm32f103cbt6 maple-mini

Postby johncblacker » Mon Apr 01, 2019 3:23 pm

I'm trying to find a openOCD flash script for the subject board but can't find one in the demo directory. Can someone point me to a flash script for the maple mini board? It uses USB for loading. This uses a STM32F103CBT6 chip and USB to load.

User avatar
Giovanni
Site Admin
Posts: 12235
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 583 times
Been thanked: 494 times
Contact:

Re: CHIBISTUDIO PREVIEW20 openOCD stm32f103cbt6 maple-mini

Postby Giovanni » Mon Apr 01, 2019 3:36 pm

Hi,

I doubt OpenOCD can do that, you need to use their loader then "attach" OpenOCD without loading.

Giovanni

johncblacker
Posts: 11
Joined: Sat Mar 30, 2019 8:12 pm

Re: CHIBISTUDIO PREVIEW20 openOCD stm32f103cbt6 maple-mini

Postby johncblacker » Mon Apr 01, 2019 4:31 pm

By "their loader" do you mean STM's loader, Seeger loader or what? I've been able to flash/load a program from Arduino, but I was trying to flash your maplemini demo. Unfortunately, I don't see any instructions regarding flashing the program once it's compiled. I thought there was supposed to be information within each demo's folder with relevant information. Perhaps I misunderstood.
Thanks for response.

User avatar
Giovanni
Site Admin
Posts: 12235
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 583 times
Been thanked: 494 times
Contact:

Re: CHIBISTUDIO PREVIEW20 openOCD stm32f103cbt6 maple-mini

Postby Giovanni » Mon Apr 01, 2019 6:47 pm

Doesn't maple mini provide some kind of loader? how do you load the code via USB?

Giovanni

johncblacker
Posts: 11
Joined: Sat Mar 30, 2019 8:12 pm

Re: CHIBISTUDIO PREVIEW20 openOCD stm32f103cbt6 maple-mini

Postby johncblacker » Mon Apr 01, 2019 7:02 pm

It has a STM32duino bootloader. When I program in Arduino, I just point to the com and tell it to load my program and it does so over the USB port.
There is a STM32FLASHER.PY program in the STM32DUINO repo, but I haven't had any success with it so far. Maybe I'll go back and visit it some more.
Thanks.

johncblacker
Posts: 11
Joined: Sat Mar 30, 2019 8:12 pm

Re: CHIBISTUDIO PREVIEW20 openOCD stm32f103cbt6 maple-mini

Postby johncblacker » Tue Apr 02, 2019 9:08 pm

I was partially successful using the maple_loader as an external tool under eclipse/ChibiStudio; however, after I flashed the program into the board, the device type changed and it went from a "Maple Serial (COM17)" to STM serial (COM40). Once that happened, the maple_loader wouldn't flash the board again until I went back into Arduino and flashed a program onto the board, it returned to a Maple Serial (COM17) device again. Obviously, that's just not going to work. I might just as well just take the .bin file from the ChibiStudio ..../build directory and flash it onto the board outside of ChibiStudio. I guess the other option would be to use ST-LINK as an external tool to flash the program to the board from within ChibiStudio as an external tool. I haven't tried that and don't know what kind of problems I'll run into doing that. I may try it just for "grins" to see what happens.

User avatar
Giovanni
Site Admin
Posts: 12235
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 583 times
Been thanked: 494 times
Contact:

Re: CHIBISTUDIO PREVIEW20 openOCD stm32f103cbt6 maple-mini

Postby Giovanni » Tue Apr 02, 2019 9:14 pm

Hi,

You could also try a Nucleo 32, it has a similar format and includes an ST-Link.

Giovanni

johncblacker
Posts: 11
Joined: Sat Mar 30, 2019 8:12 pm

Re: CHIBISTUDIO PREVIEW20 openOCD stm32f103cbt6 maple-mini

Postby johncblacker » Tue Apr 02, 2019 11:08 pm

Yes, I already built a program for the Nucleo-32 L432KC and it did work. I was just thinking that since you had a demo of the RT-STM32F103-MAPLEMINI that it would work out of the box. But since it doesn't I'm wondering why it was included amongst the ChibiStudio demos? I'm a little disappointed in that.

jb


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 1 guest