New STM32F3 devices (Cortex-M4)

This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome. This forum is NOT for support.
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: New STM32F3 devices (Cortex-M4)

Post by Giovanni »

Small update.

The demo in the repository works (HAL, PAL only), now it is matter of validating the other device drivers except ADC and I2C that will have to be created from scratch (and the ADC driver will have to support linked ADCs on this one).

Giovanni
ojo
Posts: 1
Joined: Mon Dec 10, 2012 2:12 pm

Re: New STM32F3 devices (Cortex-M4)

Post by ojo »

Hi,

I compiled the F3 discovery demo and found one minor bug which prevents compilation on Linux (but not on Windows):
Makefile, line 75:
LDSCRIPT= $(PORTLD)/STM32F303xc.ld
should be:
LDSCRIPT= $(PORTLD)/STM32F303xC.ld

to be able to link the executable.

Regards, ojo (who is looking forward to test this on the f3 discovery board soon)
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: New STM32F3 devices (Cortex-M4)

Post by Giovanni »

Hi,

Thanks for finding, I will fix it as soon the SourceForge SVN repository is up again.

Giovanni
davidji
Posts: 12
Joined: Wed Dec 12, 2012 9:48 pm
Been thanked: 1 time

Re: New STM32F3 devices (Cortex-M4)

Post by davidji »

I'm interested in the oscilloscope idea. I destroyed a DSO nano v2 because it's not isolated. Until then, it was pretty handy. In any case, the STM32F3 can do two channels at 10Msps using interleaving - an order of magnitude better than the DSO nano. The required external components are two resistors (divide by 10) a capacitor (frequency compensation). You can overcome the isolation problem by hooking up the F3 discovery up to a Raspberry Pi, and then access the data over the network - the PI can be powered from an isolated supply and the ethernet is isolated up to 1.5KV.

I'd rather the connection to the PI was USB, but I gather the STM32F3 chip needs a new USB driver. Am I right about that? I'll give writing one a go, but haven't coded anything in C for a decade or so, and never done anything embedded, so don't hold your breath.

The rest could be pretty simple - the scope software would run under Linux (or Android via USB OTG). It requests a sample from the F3. The F3 collects as big a sample as it can fit in memory, and then returns it at leisure. At best, only half can end up on the display, but you get to work out where the trigger is retrospectively.

After that, I can try to work out how to run two ADCs in interleave mode to double the sample rate.
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: New STM32F3 devices (Cortex-M4)

Post by Giovanni »

Hi,

The F3 uses the old USB peripheral already found on the F1 and the L1, the driver works already on the F3, there is a test application too under ./testhal/STM32F3xx/USB-CDC.

I also planned a specific ADC driver supporting interleaving. An open source HW/SW oscilloscope could become a really popular project IMO.

Giovanni
davidji
Posts: 12
Joined: Wed Dec 12, 2012 9:48 pm
Been thanked: 1 time

Re: New STM32F3 devices (Cortex-M4)

Post by davidji »

I've built that project, and flashed it onto the board using openocd. When I connect minicom, I see the shell prompt, but when I press enter, the flashing led stops flashing and nothing else happens :(.

I'm using the latest from svn. Should I expect this to work at the moment?
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: New STM32F3 devices (Cortex-M4)

Post by Giovanni »

It works here so it must be a difference in the build environment, what compiler are you using?

Giovanni
davidji
Posts: 12
Joined: Wed Dec 12, 2012 9:48 pm
Been thanked: 1 time

Re: New STM32F3 devices (Cortex-M4)

Post by davidji »

Yes - updated summon arm toolchain and re-installed, now it works fine. Thanks.
Post Reply