Hi,
i want to perform BLE-DFU on BL653dvk board, with external flash. do we have any example for the same.? Kindly suggest.
Regards,
Shikamaru
Hi,
i want to perform BLE-DFU on BL653dvk board, with external flash. do we have any example for the same.? Kindly suggest.
Regards,
Shikamaru
Hello Shikamaru,
Does the BL653dvk have external flash? It does not seem like it to me. Maybe you have attached an external flash yourself? Regardless, you need to configure the DTS/overlay file so it's set up to communicate with the external flash, like it's done by default in the nRF52840 DK board DTS file (uses mx25r64 external flash) and the nRF9160DK board DTS file (also uses mx25r64). Both of these DKs have an onboard external flash.
Best regards,
Simon
Hi simon,
I have a customized bl653dvk board, which has serial NOR Flash (SPI) i.e. IS25LQ040B. i need to use this one.
Okay, you can start by adding something like the following to an overlay: https://github.com/nrfconnect/sdk-zephyr/blob/v2.7.99-ncs1/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_common_0_14_0.dtsi#L42-L65
Of course, you will need to modify mx25r64 and the spi instance. Also you have to modify the fields according to the IS25LQ040B (look in the IS25LQ040B datasheet).
You should also add the following to the overlay file: https://github.com/simon-iversen/sdk-nrf/blob/ext_flash_mcuboot_91dk/samples/nrf9160/http_update/application_update/boards/nrf9160dk_nrf9160_ns.overlay
Take a look at this project: https://github.com/simon-iversen/sdk-nrf/tree/ext_flash_mcuboot_91dk/samples/nrf9160/http_update/application_update. It demonstrate how to add support for external flash using SPI communication.
First step is to get it to build and if you don't succeed with this, please upload your project in a zipped file and I will take a look at it.
Best regards,
Simon
Thanks @Simon,
First step is to get it to build and if you don't succeed with this, please upload your project in a zipped file and I will take a look at it.
yes, I am able to build my project. However as soon as flashing am getting this error ,
E: Device id 00 00 00 does not match config 9d 40 13
it may be because it is not able to get the device binding of my external flash . i tried all the ways from forum as well unfortunately i didn't succeed in that. However an attaching my workspace here. Kindly guide me that what i am missing here
7462.ble_dfu_peripheral_lbs_external_flash_bl653dvk.zip
Thanks and Regards,
Shikamaru
Since it reads 000000, it seems like it is not in contact with the spi-flash. Could you check the output of build/zephyr/zephyr.dts and check if you have conected the spi flash correctly. Do you have a logic analyzer? Try reading the SPI pins and see if there is any activity.
Best regards,
Simon