Question to F429ZI NUCLEO Board

Limited support for STM32F4 Discovery, Nucleo and custom F4 boards
Post Reply
dzech
Posts: 4
Joined: Mon Jan 01, 2018 4:59 pm
Contact:

Question to F429ZI NUCLEO Board

Post by dzech » Wed Jan 10, 2018 8:49 am

I want to use the F429Zi board without Ethernet and USB.
Is there a way to use the "reserved" Pins with the IDE as normal I/O Pins?
For example: pinMode(PG4, OUTPUT); gives me an 'PG4' was not declared in this scope error.
The same goes for some other pins.

fpiSTM
Posts: 268
Joined: Fri Sep 16, 2016 12:33 pm
Location: Le Mans, France

Re: Question to F429ZI NUCLEO Board

Post by fpiSTM » Wed Jan 10, 2018 9:14 am

Yes, you can use all the pin as I/O.
I assume you use the STM core (Arduino_Core_STM32)
Issue you met is due that those pins are not defined in the variant.h and variant.cpp
Those kind of pins have not been defined as they are linked to a dedicated hardware of the board.
If you really want use them then you have to add it to the variant.* of the Nucleo_F429zi

in the enum in the variant.h:

Code: Select all

  PF8_2,  //D93/A15 = D61
  PF7_2,  //D94/A16 = D62
  PF9_2,  //D95/A17 = D63
  PG4
  PEND
 };
In the const PinName digitalPin[] array in variant.cpp

Code: Select all

  PA_0,  //D92/A14 = D32
  PF_8,  //D93/A15 = D61
  PF_7,  //D94/A16 = D62
  PF_9,   //D95/A17 = D63
  PG_4
};

dzech
Posts: 4
Joined: Mon Jan 01, 2018 4:59 pm
Contact:

Re: Question to F429ZI NUCLEO Board

Post by dzech » Wed Jan 10, 2018 11:10 am

Thank you for your mail.
Yes, I'm using STM32 Cores by ST-Microelectronics Version 2017.9.22 with ARDUINO IDE Version 1.8.5
There the Nucleo F429ZI is listed.

Now I have problems to locate the right file for my board.
There are STM32F1, STM32F3 and STM32F4 folders under .... documents\Arduino\hardware\Arduino_STM32-master\
but I can't find Nucleo_F429ZI. Where do I have to look?

Sorry, but I'm new to this :oops:

fpiSTM
Posts: 268
Joined: Fri Sep 16, 2016 12:33 pm
Location: Le Mans, France

Re: Question to F429ZI NUCLEO Board

Post by fpiSTM » Wed Jan 10, 2018 1:07 pm

dzech wrote:
Wed Jan 10, 2018 11:10 am
There are STM32F1, STM32F3 and STM32F4 folders under .... documents\Arduino\hardware\Arduino_STM32-master\
but I can't find Nucleo_F429ZI. Where do I have to look?
Those folders are one from Roger Core (based on leaflab).

To find the right cores file, see:
https://github.com/stm32duino/wiki/wiki ... re-sources

Then this will be in variant/NUCLEO_F429ZI/

dzech
Posts: 4
Joined: Mon Jan 01, 2018 4:59 pm
Contact:

Re: Question to F429ZI NUCLEO Board

Post by dzech » Wed Jan 10, 2018 1:14 pm

Thank you. That's it !!
I've found it :D

Post Reply