CHIBISTUDIO PREVIEW20 openOCD stm32f103cbt6 maple-mini
Moderators: RoccoMarco, barthess
-
- Posts: 11
- Joined: Sat Mar 30, 2019 8:12 pm
CHIBISTUDIO PREVIEW20 openOCD stm32f103cbt6 maple-mini
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.
- Giovanni
- Site Admin
- Posts: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: CHIBISTUDIO PREVIEW20 openOCD stm32f103cbt6 maple-mini
Hi,
I doubt OpenOCD can do that, you need to use their loader then "attach" OpenOCD without loading.
Giovanni
I doubt OpenOCD can do that, you need to use their loader then "attach" OpenOCD without loading.
Giovanni
-
- Posts: 11
- Joined: Sat Mar 30, 2019 8:12 pm
Re: CHIBISTUDIO PREVIEW20 openOCD stm32f103cbt6 maple-mini
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.
Thanks for response.
- Giovanni
- Site Admin
- Posts: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: CHIBISTUDIO PREVIEW20 openOCD stm32f103cbt6 maple-mini
Doesn't maple mini provide some kind of loader? how do you load the code via USB?
Giovanni
Giovanni
-
- Posts: 11
- Joined: Sat Mar 30, 2019 8:12 pm
Re: CHIBISTUDIO PREVIEW20 openOCD stm32f103cbt6 maple-mini
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.
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.
-
- Posts: 11
- Joined: Sat Mar 30, 2019 8:12 pm
Re: CHIBISTUDIO PREVIEW20 openOCD stm32f103cbt6 maple-mini
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.
- Giovanni
- Site Admin
- Posts: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: CHIBISTUDIO PREVIEW20 openOCD stm32f103cbt6 maple-mini
Hi,
You could also try a Nucleo 32, it has a similar format and includes an ST-Link.
Giovanni
You could also try a Nucleo 32, it has a similar format and includes an ST-Link.
Giovanni
-
- Posts: 11
- Joined: Sat Mar 30, 2019 8:12 pm
Re: CHIBISTUDIO PREVIEW20 openOCD stm32f103cbt6 maple-mini
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
jb
Who is online
Users browsing this forum: No registered users and 60 guests