mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
Merge pull request #569 from DrDoof/fix/flash-security-dummy
flash: set the dummy cycles required by the security register read
This commit is contained in:
1 file changed
+1
@@ -269,6 +269,7 @@ void flash_read_security(void)
|
|||||||
|
|
||||||
// Set slow read mode
|
// Set slow read mode
|
||||||
SFR_FLASH_CMD_R = CMD_READ_SECURITY_REGS; // read security register
|
SFR_FLASH_CMD_R = CMD_READ_SECURITY_REGS; // read security register
|
||||||
|
SFR_FLASH_DUMMYCYCLES = 8;
|
||||||
|
|
||||||
// Transfer 4 bytes (command + 3byte address)
|
// Transfer 4 bytes (command + 3byte address)
|
||||||
SFR_FLASH_TCONF = 4;
|
SFR_FLASH_TCONF = 4;
|
||||||
|
|||||||
Reference in new issue
Block a user