Some initial bringup of the dfu bootloader on the mk20dx256vlh7
This commit is contained in:
parent
46fc3e596b
commit
e41444304b
17 changed files with 249 additions and 65 deletions
|
@ -1,5 +1,5 @@
|
|||
/* Copyright (c) 2011,2012 Simon Schubert <2@0x2c.org>.
|
||||
* Modifications by Jacob Alexander 2014 <haata@kiibohd.com>
|
||||
* Modifications by Jacob Alexander 2014-2015 <haata@kiibohd.com>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -20,7 +20,11 @@
|
|||
|
||||
// ----- Defines -----
|
||||
|
||||
#if defined(_mk20dx128vlf5_)
|
||||
#define FLASH_SECTOR_SIZE 1024
|
||||
#elif defined(_mk20dx256vlh7_)
|
||||
#define FLASH_SECTOR_SIZE 2048
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
@ -30,8 +34,9 @@ __attribute__((section(".ramtext.ftfl_submit_cmd"), long_call))
|
|||
int ftfl_submit_cmd(void);
|
||||
int flash_prepare_flashing(void);
|
||||
int flash_erase_sector(uintptr_t);
|
||||
int flash_program_section(uintptr_t, size_t);
|
||||
//int flash_program_section(uintptr_t, size_t);
|
||||
int flash_program_sector(uintptr_t, size_t);
|
||||
int flash_program_longword(uintptr_t, uint8_t*);
|
||||
void *flash_get_staging_area(uintptr_t, size_t);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue