Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 5 months ago.
STM32F303VCT6 MCU
Hi there,
I tried to do a simple program for STM32F303VCT6(my STM32F3 discovery board has this MCU), and I got an error like PE_11 is not defined(on the board, this is connected to LD7).
Any idea how to define this or what to change?
BTW: I selected nucleo-f303RE as platform.
Code example:
.... DigitalOut ledG(PE_11); // LD7 - green LED ... ledG = 1;
And the error:
Error: Identifier "PE_11" is undefined in "main.cpp", Line: 8, Col: 18
Best regards, Romeo
1 Answer
9 years, 5 months ago.
The 303RE has a smaller package than the 303VC and does not support Port E. When you select the 303RE platform the mbed code does not have defines for PE_x. I managed to compile for the 303VC by importing the mbed library source code in my online project, manually moving the portdefines from the 303VC Disco mbed source code implementation to the folder for the 303RE mbed library source and compiling my project for the 303RE.
See https://developer.mbed.org/questions/53937/STM32F3-Discovery-or-STM32F4-Discovery-a/