2021-06-25 06:10 AM
I try to use the STM32MP1 in engeneering boot mode to develop the co-processor's firmware. Unfortunately the code generation is not complete, meaning initialization for all GPIO pins (exept MCO Pins) are missing. Is it possible to activate the code generation for the GPIO pins which are used only by the M4 co-processor?
Thanks an best regards
Solved! Go to Solution.
2021-06-28 02:01 AM
Hi @FWebe.3 ,
For pins assigned to a peripheral, it's the allocation of the peripheral instance ( eg I2C or SPI ) to M4 context which trig the code generation.
Olivier
2021-06-25 06:19 AM
Hi @FWebe.3 ,
I presume you are talking about code generation with CubeMX ?
For M4, after selecting GPIO input or output, you also have to right click on the pin and assign 'pin reservation' to 'Cortex-M4'.
M4 code will then be generated correctly.
Olivier
2021-06-25 07:09 AM
Hi Olivier
Thanks for the fast answer.
The pin reservation is only selectable when the pin is used as input or output GPIO and not as an alternate function pin.
Can this also be done for pins used within peripherals like I2C or SPI?
2021-06-28 02:01 AM
Hi @FWebe.3 ,
For pins assigned to a peripheral, it's the allocation of the peripheral instance ( eg I2C or SPI ) to M4 context which trig the code generation.
Olivier