On Fri, Sep 4, 2020 at 11:30 AM David Sidrane <david.sidr...@nscdg.com> wrote: > I was not suggesting the fix should be in the boot loader, I was just > commenting on what the right way to do a boot loader. > > I am sure the F4/F7 serial drivers deal with the PE bits. It has many test > cases in the RC lib of PX4, it the low level stuff that most likely does not > work correctly > And should be fixed. Consider using the RCC xxxx peripheral reset register > to get to ground state for the UxART then it should be very straight > forward. > RESET STATE + config chosen.
I just noticed your email, *after* creating PR-1719 :-/ I didn't use the RCC to force a complete peripheral reset on the USART. I turned off the USART_CR1_UE bit before beginning configuration. That solves the issue I had where the broken bootloader's settings "stuck" after booting NuttX. If you could, please take a look (I requested your review). If you still think I should do a complete RCC peripheral reset, let me know... Thanks for your input, Nathan