2016-01-30 01:35 AM
The architectures of Cortex-M4 and Cortex-M7 include RCC_AHB1RSTR register. What is it for? When I use this register for resetting AHB1 bus for any of GPIO ports these ports stop working irrevocably.
Thanks in advance!
#arm-cortex-m4-cortex-m7-register2016-01-30 03:15 AM
After setting bits in AHB1RSTR, do you clear them? Failing to clear them will cause the flagged peripherals to be held in reset, resulting in the behaviour that you describe.
2016-01-30 06:49 AM
2016-01-30 08:29 AM
After you reset the peripherals you will have to reprogram them. If you reset GPIOA, you'll have to reconfigure all the pins and settings.
May be you can show the code so we don't have to guess at what you are doing.2016-01-30 08:34 AM
You need to use AHB1RSTR why exactly? It makes no sense.
2016-01-30 11:50 AM
> I need to react to the rising of external signal on GPIO. At the moment the reaction from GPIO takes unpredictable number of ticks.
What do you mean by ''reaction from GPIO''? JW2016-01-30 01:27 PM
I need a part of my program to be executed synchronously with a rising of signal comes to GPIO. For instance, if I use an external interrupt it takes an unpredictable time to go into the interrupt. Also, using foxy assembler's insertions doesn't let to catch the rising of signal. My target is following. I need to call the procedure in which a part of code has to be executed synchronously with the rising of signal of input GPIO. The reaction to the rising of input signal can be lingering but I need it to be the same every time.
2016-01-31 03:41 AM
I wanted to use this register in hope that it helped to eliminate the unpredictable number of ticks. Thank you for your answers! I'd be glad to hear any ideas!
2016-01-31 07:33 AM
Back to earth.
This register will never help you. What genetere your signal? show as interrupt handler. Innterrupt colling in MCU as STM32 is always constant. You thinking wrong.2016-01-31 08:00 AM
Yes, it seems this register can't help me. Going into interrupt takes different number of ticks though. For example, in the interrupt handler I just toggle pin GPIO that set as output. Input and output signals aren't synchronous on an oscilloscope. Going into interrupt isn't equal to 12 ticks. Assembler's insertions also don't help in synchronization.
Inlet signal to GPIO is 25 MHz, MCU frequency is 200 MHz (Cortex-M7).