With this code i am able to save to flash 8 times.
#define FLASH_PB_START 0x000FF000
#define FLASH_PB_END 0x00100000
#define FLASH_PB_SIZE 512
FlashPBInit(FLASH_PB_START, FLASH_PB_END, FLASH_PB_SIZE);
After that the FlashPBSave returns on this line.
// If every possible location has been checked and none are valid, then
// it will not be possible to write this parameter block. Simply
// return without writing it.
//
if((g_pui8FlashPBCurrent && (pui8New == g_pui8FlashPBCurrent)) ||
(!g_pui8FlashPBCurrent && (pui8New == g_pui8FlashPBStart)))
{
return;
}
I found this forum thread which describes my situation. I don't see a resolution.
Also, my code came from a working stellaris project that we ported to the new TIVA part. The only thing we changed were these 2 defines
#define FLASH_PB_START 0x000FF000
#define FLASH_PB_END 0x00100000
Anyone got any helpful hints where to go from here?
Also