I have a board with an RA4M2 chip in that I would like to use MCUBoot for, however I would like to be able to configure MCUboot to support only a single bank for the firmware upgrade process rather than the regular 2 that the Renesas Configuration editor seems to enforce, to allow larger images.
I've looked into the MCUBoot options and created a custom mcuboot config file(that I've set within the mcuboot properties) however that toggle doesn't seem to have any effect (CONFIG_SINGLE_APPLICATION_SLOT).
Is there a way to configure MCUBoot to only support a single image bank for the RA4M2 chip?
This application project uses QSPI as secondary slot.
https://github.com/renesas/ra-fsp-examples/tree/master/application_projects/r11an0567/MCUboot_Encryption_QSPI_Solution
The size of primary slot in internal flash is 0xE0000.
Would this be the method to trick the UI to allowing multiple banks but only using one? As we do not have external flash on the board.
If I understand your intention correctly, you want to have a running image that is going to be more than half the size of available flash rom. You dont have any other flash storage device on board. MCUboot wont be useful in this case. It's role is to check the flash map provided and find the most recent / authenticated image and proceed to deploy it to main application slot for execution. Since there is only one slot, there isnt anything for it to do!
It doesn't have a downloader (code to download new image). The downloader are part of the application image.
You need a bootloader with a downloader. When you have a new image, you can download by overwriting your current application (you dont have any other place to store it)
So currently we are implementing functionality within the bootloader project to handle the application download, so were hoping MCUBoot could just validate the image from within the bootloader project and boot if valid, or stay in bootloader otherwise. Could you confirm if this is what the "CONFIG_SINGLE_APPLICATION_SLOT" functionality provides normally?
I understand. You have to follow https://github.com/mcu-tools/mcuboot for any hint SINGLE SLOT. I don't see any code on RA side to support this.