2016-02-24 04:12 AM
Hello,
I'm trying my old Flash Library.(for SPC560B50L5) But not working. How is use DFLASH for SPC564B70L7? (debug stop => ''_unhandled_exception:'')Thanks a lot. #dflash2016-02-24 04:53 AM
2016-02-24 05:38 AM
2016-02-24 06:31 AM
/**
* @brief Initializes the driver. */ void spc5_dflash_init( void ) { /* Fixes wrong initialization in HAL driver.*/ // CFLASH.PFCR1.R = 0x318D8081; CFLASH.PFCR1.B.BK1_APC = 3; CFLASH.PFCR1.B.BK1_RWSC = 6; /* Unlock procedure.*/ DFLASH.LML.R = 0xA1A11111; DFLASH.LML.B.LME = 1; DFLASH.SLL.R = 0xC3C33333; DFLASH.SLL.B.SLE = 1; DFLASH.MCR.R = 0x0; /* All blocks unlocked.*/ DFLASH.LML.B.LLK = 0; DFLASH.SLL.B.SLK = 0; } bla bla.. Writing : DFLASH.MCR.R = 0x00000010; (*(U_32 *)Addr) = data; DFLASH.MCR.R = 0x00000011; while(!(DFLASH.MCR.R & 0x00000400)); DFLASH.MCR.R = 0x00000010; DFLASH.MCR.R = 0x00000000;2016-02-25 12:46 AM
2016-02-25 01:25 AM
Thanks. But not working.