Part Number: MSPM0L1227
Team,gpio_toggle_output.c
I am using CSS 20.3.0, attaching my SYSCFG file and a test code also along with this mail.
I wen through some of the Docs available on enabling bank swap and written code as per my understanding.
Config done:
- Enabled below 2 check box in Configuration NVM
|
Enable CSC Policy |
[X] |
|
Enable Flash Bank Swap Policy |
- Changed the erase configuration in project -> Properties -> Debug -> MSPM0 Flash Settings -> Erase method choose Erase MAIN and NONMAIN memory.
Functions flow in Code:
|
Function Name |
Description / Purpose |
|
DL_SYSCTL_enableFlashBankSwap() |
Enables the flash bank swap policy. |
|
DL_SYSCTL_executeFromUpperFlashBank() |
Selects execution from the upper flash bank based on the configured boolean value. |
|
DL_SYSCTL_executeFromLowerFlashBank() |
Selects execution from the lower flash bank based on the configured boolean value. |
|
DL_SYSCTL_issueINITDONE() |
Issues INITDONE to reset the device after completing all bank swap configurations. |
|
DL_SYSCTL_isFlashBankSwapEnabled |
Checks whether flash bank swapping is enabled or not. |
When I call swap_enabled = DL_SYSCTL_isFlashBankSwapEnabled() after bank swap conf, I am getting swap_enabled as false always. Is there anything I am missing in configration/ code flow? Kindly confirm if my approach is correct on this feature.