rusEFI
The most advanced open source ECU
|
Definition in file mpu_util.cpp.
Enumerations | |
enum class | DeviceType { DualBank1MB , DualBank2MB , SingleBank1MB , SingleBank2MB , Unknown } |
Functions | |
static bool | isDualBank () |
static uint16_t | flashSize () |
static DeviceType | determineDevice () |
bool | mcuCanFlashWhileRunning () |
size_t | flashSectorSize (flashsector_t sector) |
Get the size of sector . | |
uintptr_t | getFlashAddrFirstCopy () |
uintptr_t | getFlashAddrSecondCopy () |
void | stm32_standby () |
|
strong |
Enumerator | |
---|---|
DualBank1MB | |
DualBank2MB | |
SingleBank1MB | |
SingleBank2MB | |
Unknown |
Definition at line 25 of file mpu_util.cpp.
|
static |
Definition at line 33 of file mpu_util.cpp.
Referenced by getFlashAddrFirstCopy(), getFlashAddrSecondCopy(), and mcuCanFlashWhileRunning().
size_t flashSectorSize | ( | flashsector_t | sector | ) |
Get the size of sector
.
sector
size in bytes. Definition at line 63 of file mpu_util.cpp.
|
static |
Definition at line 21 of file mpu_util.cpp.
Referenced by at32GetMcuType(), determineDevice(), flashSectorSize(), and sayHello().
uintptr_t getFlashAddrFirstCopy | ( | void | ) |
Flex Non Volatile Memory is faster than flash It also has smaller pages so it takes less time to erase
There is no remote access to FlexNVM meaning that we cannot erase settings externally
Definition at line 92 of file mpu_util.cpp.
uintptr_t getFlashAddrSecondCopy | ( | void | ) |
Definition at line 118 of file mpu_util.cpp.
|
static |
Definition at line 12 of file mpu_util.cpp.
Referenced by determineDevice(), and flashSectorSize().
bool mcuCanFlashWhileRunning | ( | ) |
Definition at line 57 of file mpu_util.cpp.
void stm32_standby | ( | ) |
Definition at line 177 of file mpu_util.cpp.