lpcware

HardwareFault on erase_user_flash with emWin

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by dennisyeung on Wed Apr 23 23:35:24 MST 2014
Hi All,

I use LPC1788 with emWin. When I call erase_user_flash, everything is OK.
But with emWin in this way:
         GUI_Init();
         erase_user_flash();

This gives HardwareFault when calling     prepare_sector(USER_START_SECTOR,MAX_USER_SECTOR,cclk);
inside erase_user_flash();

Do anyone have the solution about it?

BR
Dennis

Outcomes