Nucleo F072

All about boards manufactured by ST
Post Reply
Toley
Posts: 2
Joined: Tue Apr 28, 2020 5:00 pm
Answers: 1

Nucleo F072

Post by Toley »

I do not see STM32F072 Nucleo board on the list is it supported ?
I know F072 discovery is there should I use that one instead?
by Toley » Tue May 26, 2020 11:08 am
Added in v1.9 thanks.
Go to full post

User avatar
fpiSTM
Posts: 746
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 27
Location: Le Mans
Contact:

Re: Nucleo F072

Post by fpiSTM »

The MCU is supported.
Variant has currently not been added.
Using the F072 could work but It depends of the systemCore clock config, if the Disco uses the HSE by default and the Nucleo doesn't have it, this will not work.

User avatar
Just4Fun
Posts: 13
Joined: Thu Dec 19, 2019 10:45 am
Answers: 1

Re: Nucleo F072

Post by Just4Fun »

Another thing is the pins mapping for serial I/O.

May be that the F072 Disco and F072 Nucleo use different pin mapping for the USART.

For sure this happens for the F030R8 Disco and the equivalent Nucleo board.
I realized that testing a custom board compatible with the F030R8 Discovery (ARMando), and to use the serial port when compiling as a F030R8 Nucleo required a remapping of the USART pins.

BTW: if the systemCore clock uses the HSE on a board not having any quartz, it should work anyway because the internal clock HSI is switched only if the HSE is ready and running. I've tested this on a F030R8 MCU try to force the use of the HSE in a board with the Quartz not populated.

stas2z
Posts: 131
Joined: Mon Feb 24, 2020 8:17 pm
Answers: 8

Re: Nucleo F072

Post by stas2z »

Just4Fun wrote:
Thu Apr 30, 2020 8:10 am

BTW: if the systemCore clock uses the HSE on a board not having any quartz, it should work anyway because the internal clock HSI is switched only if the HSE is ready and running. I've tested this on a F030R8 MCU try to force the use of the HSE in a board with the Quartz not populated.
But the working frequency can be not fastest or optimal, so proper clock init is recommended, it can be done by creating dummy project with cubemx and copy/paste SystemClock_Config() to the sketch
Also all IP pin definitions can be redefined as it weak, so its not difficult to start work with 072 nucleo without modifying core in case of 072 disco variant exists

MGeo
Posts: 24
Joined: Thu Dec 19, 2019 10:29 am

Re: Nucleo F072

Post by MGeo »

It turns out I was looking at a NUCLEO-F072RB variant as well. I want to make use of the USB Full-speed device (crystal-less) feature. The mapping is indeed different than the Disco F072RB board.

Follwing the wiki directions (https://github.com/stm32duino/wiki/wiki ... 28board%29), I put together a variant and have tested successfully on my NUCLEO-F072RB board. I've created a pull request here: https://github.com/stm32duino/Arduino_C ... /pull/1053

The variant in the PR is using the HSI48 oscillator in SystemClock_Config(). This is the same config as the Disco F072RB board, ideal for crystal-less USB when combined with clock recovery system (CRS). It is defined as weak so you can change it in your sketch if you want something different.

Code: Select all

extern "C" void SystemClock_Config(void) {...}

Toley
Posts: 2
Joined: Tue Apr 28, 2020 5:00 pm
Answers: 1

Re: Nucleo F072

Post by Toley »

Added in v1.9 thanks.

Post Reply

Return to “STM boards (Discovery, Eval, Nucleo, ...)”