2018-06-25 03:22 AM
I know this question was asked many times before me, but its still a lot of info which is hard to find. My mcu is stm32f407, what im trying to do is be able to load firmware to mcu thourgh PC, im plannig to use Visual Studio's c♯ to write library for that, unfortunetly i have zero knowleadge about bootloader or stm32 flash write protocol, should be uart from VS connected to any UART? In my case my device has UART4 UART5? what i should to know and where can i find well documented samples?
#stm32f4-flash2018-06-25 05:10 AM
Hi
jeezywoods
,I advise you to refer to application note
:STM32 microcontroller system memory boot mode; Section 26:STM32F40xxx/41xxx devices bootloader.Khouloud.
2018-06-26 07:10 AM
Thx, but what about encryption? how can i protect my firmware while using boot0 bootloader?
2018-06-26 07:22 AM
You'd need to use read-out protection to stop people being able to read your code.
When using the System Loader, you could download a RAM based loader and use that to transfer an encrypted image, or use your own loader in the front of FLASH to implement a protected delivery method.