8 years ago.

PeripheralPins.c for STM32F412VG

Hi,

We're designing a custom board based on STM32F412VG, the 100 pins version of Nucleo_F412ZG (144 pins).

I'm following this guide (https://os.mbed.com/teams/ST/wiki/steps-to-create-a-new-STM32-platform) to create a new platform.

Could anyone provide the file PeripheralPins.c for this microcontroller? I've copied the folder from Nucleo_F412ZG into Nucleo_F412VG but I'm not sure what to change.

Thanks in advance!

1 Answer

8 years ago.

If you look into the file, you'll see a variety of arrays corresponding the different pin functions. E.g. PinMap_PWM.

The Pins can have alternate functions, so you have to custom the Pinmap-Arrays dependent on the function the Pin shall fulfill.

You need the datasheet of your MCU and look up the functions yourself. There is no given PeripheralPin.c for a custon board because it depends on your mapping. Some pins are able to have a PWM-Output, some are not, so it's up to you, to customise the file.

Thanks for your answer Christopher,

Looking into the datasheet (en.DM00213872.pdf) I saw in pin definition table that the only differences between F412ZG and F412VG are that the second one doesn't have ports PF and PG, and also PB11 but the functions of the rest of the pins are the same (they have the same alternate funcions for avalilable peripherals).

So, If I don't use this ports, can I use this target to compile?

Regards,

posted by Jorge Arija 22 Oct 2017

It surly will compile and you can have a blinky-test-program which should work.

posted by Christopher Meis 22 Oct 2017