Skip to content

Commit 128e527

Browse files
khoa-nguyen-18KhiemNguyenT
authored andcommitted
hal: renesas: ra: Fix flash hp when using with DCACHE
When enabling DCACHE, Flash hp can't read or write. This commit aim to fix this issue. Signed-off-by: Khoa Nguyen <[email protected]>
1 parent 570ca33 commit 128e527

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/ra/fsp/src/r_flash_hp/r_flash_hp.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2643,6 +2643,13 @@ fsp_err_t flash_hp_pe_mode_exit (void)
26432643
err = temp_err;
26442644
}
26452645

2646+
#if defined(BSP_CFG_DCACHE_ENABLED)
2647+
#if (1U == BSP_CFG_DCACHE_ENABLED)
2648+
/* Clean and Invalidates D-Cache */
2649+
SCB_CleanInvalidateDCache();
2650+
#endif
2651+
#endif
2652+
26462653
return err;
26472654
}
26482655

0 commit comments

Comments
 (0)