STM32MP1 Project from scratch STM32CubeMX problems ! (Cortex M)
- October 9, 2019
- 4 replies
- 2761 views
- Select a new prject in CibeMX this case STM32Mp157AAA )
- Select PZ1 and PZ2 pin. Configure Pz1 output assign PZ2 for EXT IN and assign to Cortex M4
- Generate MX output file
Issue 1: No GPIO pin initliaziation code is generated !
- Load project i n AX6 workbench tool
- Added manual GPIO and code to main.c
Issue 2: When compiling. most errors are related to EXTI (example below)
It seems stm32mp1xx_hal.exti.h and .c are not included and compiled into the project. This is probably casued by that CubeMX did not include the GPIO pins How to do add the files to the project to compile ? The "includes" in the project does point to the include folder with the exti files.
Also noticed that when adding an I2C port, CubeMX onlu prpvided one set of SCL/SCA pin option (port H) while clicking the pins on the matrix there are many more pins supporting I2C ports. for example ZP5/6 are not shown as a choice but can support I2C.
I am able to compile the demo projects from the DK2/MP1 CubeMX package and add GPIO and eXTI code without problems but not when creating from scratch with CubeMX and AC6 workbench.
Further requested to STM:
A. Please fix CubeMX/AC6WB for the MP1
B. Try steps above. Can you reproduce ? if, yes, please fix ?
Though I am new to the MP1 and STM environment, m not sure why there are so few issues reports for the MP1/CubeMX, probably others know such typical bugs and workarounds ?
HAL_UNLOCK
../Src/main.c:307:3: error: unknown type name 'EXTI_ConfigTypeDef'; did you mean 'EXTI_Core_TypeDef'?
EXTI_ConfigTypeDef EXTI_ConfigStructure;
^~~~~~~~~~~~~~~~~~
