improve sys interface for flash_erase_all_and_exec

This commit is contained in:
NIIBE Yutaka
2012-05-29 09:41:25 +09:00
parent e2ab8c9183
commit 08563d5a65
5 changed files with 37 additions and 10 deletions

View File

@@ -484,7 +484,7 @@ main (int argc, char *argv[])
/* Set vector */
SCB->VTOR = (uint32_t)&_regnual_start;
/* Leave Gnuk */
flash_mass_erase_and_exec ();
flash_erase_all_and_exec (*((void (**)(void))(&_regnual_start+4)));
/* Never reached */
return 0;