Hi,
How to store two application image in nrf51822 flash each image size is 60kb. I have enough space To store images but I don't know how to store. Please guide me to solve the problem.
Hi,
How to store two application image in nrf51822 flash each image size is 60kb. I have enough space To store images but I don't know how to store. Please guide me to solve the problem.
hi Bjørn,
Thanks for the replay. we have changed our requirement slightly instead of storing two image in internal flash one we are storing in external flash. Basically my requirement is I need to program another mcu(stm32) using nrf51822 so stm32 image need to store in external flash so later will flash stm32 image using uart. For this I need to change bootloader a bit but I dont have much experience for writing bootloaders so im very confusing to change the bootloader could you please help me what and all change required to store stm32 image in external flash. Now im using dfu_dual_serial boatloader example as a starting point.
@sudhan
So you now want to program an STM32 using the nRF51822 ?
What has the UART / bootloader got to with this ?
As far as the nRF51 is concerned, the STM32 image is just data - so the nRF bootloader has nothing to do with the STM32 image.
Of course, you will need an STM32 bootloader in the STM32 to load the STM32 image into the STM32 and run it on the STM32.
@awmeil
Most, (possibly all) STM32 MCU's have a built in serial bootloader, which can be accessed by pulling boot0 high and boot0 low on the STM32 and then toggling the STM32's reset pin.
The protocol of this is fairly simple, and their is open source C code to send firmware using this protocol (See STM32Flash), there is also Python code, but the C is probably easier to port.
There are also open source SWD implementations that could be ported to the nRF5x, but that would be far more work than using the Serial bootloader
Indeed.
And ST also have app notes on how to do your own bootloader if the built-in one is not suitable for whatever reason...