2015-11-19 05:25 PM
In my Stm32F4 applicarion, I am using (a.o.) sw4stm32, cubemx and Freertos.
Some of the GPIO I need to access from different threads and even from from ISR. Access means, changing port state, reading port state, reading analog input level (ADC); no reconfiguration of GPIO after very first initialization. Is stm32f4 and cube hal completely aware about this kind of concurrent access or did I have to take care of specific design considerations? BTW: I heard about bit banding but never used it untio know. Joe.2015-11-24 02:25 AM
Hi Joe,
If there are conflicts to use some GPIOs, this should be highlighted in CubeMX interface.For sure, a pin should have only one configuration at a given time. So, based in this configuration, we shouldn't expect concurrent access for the same pin. Are you facing any issue with that matter?-Mayla-To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2015-11-24 02:58 AM
Hi Mayla,
thanks for your reply. My question is out of scope from CubeMX. For the subject of my question, it doesn't matter if the configuration (initialization code) will be made using CubeMX or with hand written cube hal calls. E.g. after all initialization is done, I need to toggle different GPIO output pins. For example: