Fixed CDC and DFU bootloaders API page erase and write function failures (thanks to Martin Lambert).
This commit is contained in:
parent
579fbb68fc
commit
2e27cc2670
5 changed files with 9 additions and 4 deletions
|
@ -38,12 +38,14 @@
|
|||
void BootloaderAPI_ErasePage(const uint32_t Address)
|
||||
{
|
||||
boot_page_erase_safe(Address);
|
||||
boot_spm_busy_wait();
|
||||
boot_rww_enable();
|
||||
}
|
||||
|
||||
void BootloaderAPI_WritePage(const uint32_t Address)
|
||||
{
|
||||
boot_page_write_safe(Address);
|
||||
boot_spm_busy_wait();
|
||||
boot_rww_enable();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue