-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would it be possible to adapt to serial via software? #8
Comments
I modified it to use timers, but I haven't tested it yet, follow the link (935 bytes): |
I managed to test it, there was a bug, because I was using interrupt, it took me a while to understand that you cannot use interrupt in the bootloader. Apparently working, I haven't tested it with very large application code.
|
The interrupts are not working in bootloader because the interrupt table points to application IVT (see init.s). You could implement the ISR you're interested in and check if bootloader is active by testing some magic value in RAM for example. From there you could either continue executing the bootloader ISR code or jump to application ISR. |
I had tried to implement the interrupt in this file (init.s), but I couldn't. It would be interesting to have an example, perhaps with EXTI. |
Hi,
Unfortunately the W1209 board does not have UART pin usability. But I'm managing to emulate USART using timers.
Would it be possible to emulate the serial port to use in the bootloader?
Ref.: https://github.com/rtek1000/W1209-firmware-modified/blob/master/W1209-firmware-Remote/w1209-firmware-modified-eclipse-remote/Core/Src/remote.c
https://github.com/rtek1000/W1209-firmware-modified/blob/master/W1209-firmware-Remote/w1209-firmware-modified-eclipse-remote/Core/Src/timer.c
The text was updated successfully, but these errors were encountered: