Accessing more of the MOD54415 UserParameters flash
Posted: Tue Mar 11, 2014 11:24 am
The MOD54415 specifies 128kB of user parameter storage vs. the 8kB of the MOD5234 and others. However, the SaveUserParameters() system call only allows 8k maximum to be written. I have cloned a custom routine that increases the write limit to 128kB. It seems to work just fine.
Is there anything I am missing that may conflict with my expanded usage of this part of the Flash? Are there any hidden uses of other regions of the "user" memory block?
Mike McCarthy
Code: Select all
int SaveMyUserParameters( void *pCopyFrom, int len )
{
void *bp;
bp = GetUserParameters();
if ( ( len > 131072 ) || ( len < 0 ) )
{
return 0;
}
else
{
USER_ENTER_CRITICAL();
FlashErase( bp, len );
FlashProgram( bp, pCopyFrom, len );
USER_EXIT_CRITICAL();
return len;
}
}
Mike McCarthy