CHIBISTUDIO PREVIEW20 openOCD stm32f103cbt6 maple-mini

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

Moderator: RoccoMarco

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

CHIBISTUDIO PREVIEW20 openOCD stm32f103cbt6 maple-mini

Post by johncblacker »

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: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: CHIBISTUDIO PREVIEW20 openOCD stm32f103cbt6 maple-mini

Post by Giovanni »

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

Post by johncblacker »

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: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: CHIBISTUDIO PREVIEW20 openOCD stm32f103cbt6 maple-mini

Post by Giovanni »

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

Post by johncblacker »

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

Post by johncblacker »

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: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: CHIBISTUDIO PREVIEW20 openOCD stm32f103cbt6 maple-mini

Post by Giovanni »

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

Post by johncblacker »

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
Post Reply