Hi from Melbourne, Australia

User avatar
RogerClark
Posts: 6370
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Hi from Melbourne, Australia

Post by RogerClark » Tue Nov 01, 2016 5:31 am

is no problem with a maple mini
i.e Maple mini

(but this won't have enough GPIO for what you need as its a STM32F103CB)

stevestrong
Posts: 1445
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: Hi from Melbourne, Australia

Post by stevestrong » Wed Nov 02, 2016 8:25 am

Maple Mini clone and/or blue pill (generic C8T8).
BTW, you could use another blue pill over SPI to get the ADC values. In this case the pill that does the acquisition is SPI master, and the other is slave on SPI. The PA pins of the master would be then free to use for other purposes.

X71
Posts: 28
Joined: Wed Oct 26, 2016 11:53 pm

Re: Hi from Melbourne, Australia

Post by X71 » Sat Nov 12, 2016 1:16 am

Ok, so I ordered 2 x STM32F103Vet6 boards and they arrived yesterday. The blue light is blinking at 1Hz so I'm assuming it has the default blinking light "sketch" running.

Image

It's not recognized as a USB device so I'm assuming it needs drivers or do I need create a USB profile for it?

I'm a little lost here at the moment.

Edit: I've installed Keil v5 as well but there were no drivers installed.

User avatar
RogerClark
Posts: 6370
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Hi from Melbourne, Australia

Post by RogerClark » Sat Nov 12, 2016 2:46 am

None of the generic boards come with a bootloader installed, so they won't appear as a valid USB device

You need to install the bootlader using a USB to serial adaptor

See the FAQ's Q's and A's

viewtopic.php?f=2&t=873

X71
Posts: 28
Joined: Wed Oct 26, 2016 11:53 pm

Re: Hi from Melbourne, Australia

Post by X71 » Sat Nov 12, 2016 5:55 am

Thanks Roger. Appreciate all the help :)

X71
Posts: 28
Joined: Wed Oct 26, 2016 11:53 pm

Re: Hi from Melbourne, Australia

Post by X71 » Sat Nov 12, 2016 11:23 am

Ok so looking at your video Roger, and looking over the schematics of my board, I've noted that my board has a J-Link header (GND, SWCLK, SWDIO, 3.3V), as well as TX / RX on pins A9 and A10.

So which adaptor should I use?

J-Link
http://www.ebay.com.au/itm/J-Link-OB-AR ... 1736125080

FT232
http://www.ebay.com.au/itm/5V-3-3V-FT23 ... 1970872590

I can also see that the MCU has SCK, MISO and MOSI pins (A5, A6, A7), so does that mean I could load a bootloader via an Arduino Mega or UNO which I already have?

danieleff
Posts: 318
Joined: Thu Sep 01, 2016 8:52 pm
Location: Hungary
Contact:

Re: Hi from Melbourne, Australia

Post by danieleff » Sat Nov 12, 2016 12:09 pm

If you have an UNO where you can remove the atmega chip, you can use the USB-serial part of the board standalone way. I think.

User avatar
ahull
Posts: 1544
Joined: Mon Apr 27, 2015 11:04 pm
Location: Sunny Scotland
Contact:

Re: Hi from Melbourne, Australia

Post by ahull » Sat Nov 12, 2016 1:05 pm

X71 wrote:Ok so looking at your video Roger, and looking over the schematics of my board, I've noted that my board has a J-Link header (GND, SWCLK, SWDIO, 3.3V), as well as TX / RX on pins A9 and A10.

So which adaptor should I use?

J-Link
http://www.ebay.com.au/itm/J-Link-OB-AR ... 1736125080

FT232
http://www.ebay.com.au/itm/5V-3-3V-FT23 ... 1970872590

I can also see that the MCU has SCK, MISO and MOSI pins (A5, A6, A7), so does that mean I could load a bootloader via an Arduino Mega or UNO which I already have?
Given how little these adapters cost, I think an ST-Link V2 clone and any USB serial adapter would be all you need.
- Andy Hull -

User avatar
RogerClark
Posts: 6370
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Hi from Melbourne, Australia

Post by RogerClark » Sat Nov 12, 2016 7:25 pm

Most people just flash the bootloader using USB to Serial.

Like Danieleff says, you can do this by taking the Atmega chip out.
You may be able to do the same by holding the uno in reset.

Any usb to serial converter should be fine.

We only have limited JLink support. I only added it a few weeks ago, and only 1 person uses it.

If you want to upload via swd, STLink is STM's official upload tool and you can by clones of Stlink for a few dollars from china.

Official JLink programmers cost $$$$. Jlink clones are not super cheap e.g. $20 and they dont all work, as Segger has been clamping down on them by modifying their software.

I recently had to help someone fix their Jlink clone which would not work with the latest Segger software and there are reports on the web of the clones getting bricked.

X71
Posts: 28
Joined: Wed Oct 26, 2016 11:53 pm

Re: Hi from Melbourne, Australia

Post by X71 » Sat Nov 12, 2016 9:51 pm

Thanks all.

So the FT232 adaptor I linked is all I would need then?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest