Skip to content

Commit

Permalink
V3.1.2
Browse files Browse the repository at this point in the history
Fixed H5 configuration
  • Loading branch information
nimaltd committed Jun 21, 2024
1 parent fcc6131 commit 2287e53
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ This library facilitates EEPROM emulation on microcontrollers by selecting the l
- - [x] STM32G0
- - [x] STM32G4
### STM32H
- - [ ] STM32H5
- - [x] STM32H5
- - [x] STM32H7
### STM32U
- - [ ] STM32U0
Expand Down
11 changes: 9 additions & 2 deletions ee.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
#endif

#ifdef STM32H5
#define EE_ERASE EE_ERASE_PAGE_ADDRESS
#define EE_ERASE EE_ERASE_SECTOR_NUMBER
#endif

#ifdef STM32H7
Expand Down Expand Up @@ -156,7 +156,6 @@ EE_HandleTypeDef eeHandle;
************** Private Functions
************************************************************************************************************/


/************************************************************************************************************
************** Public Functions
************************************************************************************************************/
Expand Down Expand Up @@ -274,6 +273,10 @@ bool EE_Format(void)
void EE_Read(void)
{
uint8_t *data = eeHandle.DataPointer;
#ifdef HAL_ICACHE_MODULE_ENABLED
/* disabling ICACHE if enabled*/
HAL_ICACHE_Disable();
#endif
if (data != NULL)
{
/* reading flash */
Expand All @@ -283,6 +286,10 @@ void EE_Read(void)
data++;
}
}
#ifdef HAL_ICACHE_MODULE_ENABLED
/* disabling ICACHE if enabled*/
HAL_ICACHE_Enable();
#endif
}

/***********************************************************************************************************/
Expand Down
7 changes: 5 additions & 2 deletions ee.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@
Youtube: https://www.youtube.com/@nimaltd
Instagram: https://instagram.com/github.NimaLTD
Version: 3.1.1
Version: 3.1.2
History:
3.1.1
3.1.2
- Fixed H5 configuration
3.1.1
- Fixed formatting F4
3.1.0
Expand Down

0 comments on commit 2287e53

Please sign in to comment.