Fixing device bricking bug
- When loading a garbage image onto the device, the chip hangs and refuses to jump to the bootloader and start dfu Fix - Check if chip was in locked state and jump to dfu - Check if watchdog timer fired and jump to dfu
This commit is contained in:
parent
8e54672121
commit
2c7542e2e7
3 changed files with 38 additions and 18 deletions
|
@ -68,7 +68,6 @@ int flash_erase_sector(uintptr_t addr)
|
|||
|
||||
int flash_program_section(uintptr_t addr, size_t num_words)
|
||||
{
|
||||
GPIOA_PSOR |= (1<<19);
|
||||
FTFL.fccob.program_section.fcmd = FTFL_FCMD_PROGRAM_SECTION;
|
||||
FTFL.fccob.program_section.addr = addr;
|
||||
FTFL.fccob.program_section.num_words = num_words;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue