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.

MSP432P4111: Fail to program main flash with custom BSL

Hello;

I have a custom bootloader started from projet "MSP432BSL_1_01_00_00"; main purpose is to copy data from external to main flash.

I'm still having some issue with the code below, it is working with index = 0 but fails as soon as index = 1 with this message: "Break at address "0x22968" with no debug information available, or outside of program code."

uint32_t index = 0;
uint8_t data[4096];
uint32_t address = 0x090000;
uint32_t start_addr = 0;
uint32_t end_addr = 0;

for (index = 0; index < 100; index++)
{

memset(data,0,4096);

start_addr = ((index * 4096));
end_addr = (((index + 1) * 4096)-1);

read_data(start_addr + address, &data[0], 4096);                                                 // get 4k of data from external flash

MAP_FlashCtl_A_unprotectMemory(start_addr, end_addr);

MAP_FlashCtl_A_eraseSector(start_addr);

while (!MAP_FlashCtl_A_programMemory(data, (void*)start_addr,(uint32_t) 4096));          // fail with index = 1

MAP_FlashCtl_A_protectMemory(start_addr, end_addr);

}

**Attention** This is a public forum