This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I'm using the am2432alv CPU with the mcu_sdk_243x.
I'm using the sbl_ospi_am243x-evm_r5fss0-0_nortos_ti_arm_clang example from the SDK.
I see that in syscfg there's a fixed flash address offset from which the app is loaded.
I'd like to change this address inside the code , according to where is my active app is.
Can I change it somewhere in main.c ?
Thanks,
Eli
Hi Eli,
May I know why you don't want to know change it in the Sysconfig itself?
Hi Prashant,
I have a FLASH memory with several apps at different locations and a FAT table which at start shows where the active app should be loaded from.
So I'd like a variable that I can change in the sbl_ospi.. code
Thanks,
Regards,
Eli
Hi Prashant,
Yes it's the same question.
Can I simply change the address and then call Bootloader_open() , like this :
bootParams.memArgsAppImageBaseAddr=0x5DC000;
bootHandle = Bootloader_open(CONFIG_BOOTLOADER_FLASH0, &bootParams);
I mean without adding CONFIG_BOOTLOADER_FLASH1 ?
Thanks,
Regards,
Eli
Hi Eli,
You would need to modify the appImageOffset.
One implementation may look like this:
Bootloader_Params_init(&bootParams); Bootloader_BootImageInfo_init(&bootImageInfo); extern Bootloader_Config gBootloaderConfig[]; Bootloader_FlashArgs* flash_args = gBootloaderConfig[CONFIG_BOOTLOADER_FLASH0].args; flash_args->appImageOffset = 0x5DC000; bootHandle = Bootloader_open(CONFIG_BOOTLOADER_FLASH0, &bootParams);
Regards,
Prashant
Hi Prashant,
Your second suggestion is more suitable for my case but l will try them both.
Thanks,
Regards,
Eli