What is the timing of the chip bootloader for the STM32F765?
We have a project using the STM32F765II and have found that we cannot consistently get into the chip boot loader. I have read through AN2606 and found that it's current version doesn't seem to have timing information for this processor. We are trying to use USART1 to load code. During the debugging, I found the STM FLASHER program and tried it only to discover that it does not wait for the code to have enough time to start up. It seems to send the 0x7F within about 1.5-2ms after grabbing the COM port. Every time with that program the chip does not respond to the first attempt to send the 0x7F likely due to the start up time of the bootloader (which is not specified in AN2606) after the NRST. We use an FTDI USB to serial chip for our COM port, and the DTR and RTS lines (through an inversion) to drive the NRST and BOOT0 pins. A consequence of doing this is that we always get a reset event when the host PC takes hold of the COM port the first time, thus the first byte going out that soon after an NRST is a problem. So, I found that if I just retry later (about 2 seconds is what we chose) that many of the targets enter the bootloader just fine and we can unlock, erase, and program as we need to do. However, since AN2606 doesn't have this processor in it I can't determine how long we should wait other than knowing empirically that a wait is necessary. Also, I assume that if we wait too long then the loop will move on to things like I2C and SPI, etc. How much time does the rest of the loop take to expire before serial detection becomes possible again?