Flash via NFC. (Logic question)
Hello,
I want to update the MCU firmware using NFC.
I have a iphone and will create an app or use existing one, and st25dv dynamic tag which uses I2c to connect with stm32f411re.
And want to create a custom bootloader in flash similar to BL provided by stm32 which is in system memory.
The following steps are the one which I perform.
- I open the app and then select firmware upgrade.
- Selecting the file to flash.
- Click Start transfer and enter password.
- press start transfer to start transmitting binary image.
Implementing logic in code:
Application is already running and I do the above steps, then the mcu will detect the nfc message and then will do soft reset (system reset), then bootloader starts running.
What should i do now to get the new firmware.?
I mean my question is, how can the MCU say, hey iPhone, im in bootloader please start sending the firmware now.
(I got this question because, i already pressed start transfer button in the iphone which made to swtich to bootloader code after system reset. What can i do to get the new firmware now? I know hal_flash, nfc transmit and receive functions lets say.)
my brain froze at this point.
