2022-05-13 02:23 AM
Hello ,
I have a few queries related to assignments of GPIO wrt to Cortex M4 and Cotex A7 . Task is to add a I2C peripheral to a GPIO and access it using Cortex M4.But I cant see the cortex assignment options ? I see on few but not on some on which I actually want.(like PA12)
Also I see pin locking on some GPIO? Does that mean I can’t connect anything to these GPIOS?
Also on the I2C1 , to which context it is assigned by default? Both Cortex M4 and A7 or to one of them?
please advise!
Thanks in advance!
D
Solved! Go to Solution.
2022-05-13 02:42 AM
Hi @darla14 ,
Please look at https://wiki.st.com/stm32mpu/wiki/How_to_assign_an_internal_peripheral_to_a_runtime_context
the only trick needed to assign pure GPIOs to Cortex-M4 (i.e. not used by a peripheral) is to right+click on the pin (set in GPIO input or output). Otherwise, the GPIO HAL initialization code is not generated.
Regards.
In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'
2022-05-13 02:42 AM
Hi @darla14 ,
Please look at https://wiki.st.com/stm32mpu/wiki/How_to_assign_an_internal_peripheral_to_a_runtime_context
the only trick needed to assign pure GPIOs to Cortex-M4 (i.e. not used by a peripheral) is to right+click on the pin (set in GPIO input or output). Otherwise, the GPIO HAL initialization code is not generated.
Regards.
In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'
2022-05-16 08:14 PM
Thanks @PatrickF let me try this !
Br