Commit Graph

58 Commits

Author SHA1 Message Date
Henry Gabryjelski
04290e7bea
Fix bug in __DOSTIME__ macro 2019-08-14 12:32:36 -07:00
hathach
6bbcab7f50
update uf2 product name 2019-04-24 16:46:25 +07:00
hathach
137785f2f0
update uf2 index url, add UF2_ prefix for volume lable and index url 2019-04-24 16:31:08 +07:00
hathach
4ec938230d
update uf2 BOARD_ID 2019-04-24 16:17:00 +07:00
hathach
9a0ee51d91 rename macros.h to compile_date.h 2019-04-24 12:31:09 +07:00
hathach
3fec038ed8 remove ARRAY_SIZE2 since bootloader is only built with C 2019-04-24 12:26:26 +07:00
Henry Gabryjelski
66d1770407 manually add another lost comment 2019-03-19 01:01:50 -07:00
Henry Gabryjelski
8ab4774c93 Manual merge?
Pickup a couple changes that don't seem to be propagating?
Possible that there's some git merge I missed, but it's simple enough to fix manually.
2019-03-19 00:57:24 -07:00
Henry Gabryjelski
1b54f0457d PR review requested changes.
Per hathach's request, remove built-in test option.
Per hathach's request, remote __TIME__ from info file.
2019-03-19 00:37:53 -07:00
Henry Gabryjelski
04fc396fd8 Put macros into new file, rather than uf2.h. 2019-03-13 23:49:52 -07:00
Henry Gabryjelski
04e0df1c18 prepare to split file 2019-03-13 23:40:18 -07:00
Henry Gabryjelski
6d58633db0 Merge branch 'master' of https://github.com/adafruit/Adafruit_nRF52_Bootloader into patch-6
# Conflicts:
#	src/usb/uf2/ghostfat.c
2019-03-13 22:39:12 -07:00
Henry Gabryjelski
174e6e9724 Fix Directory entries
The media would show as corrupt in CMD.EXE in Windows.
This is because the date/time fields were invalid.
Since this needed to be fixed anyways, update so that
the date and time correspond to the time that the
preprocessor parsed the source file.
2019-03-13 22:05:57 -07:00
Henry Gabryjelski
53a99195bf Raises file limit from 14 to 62 files.
Enable all four sectors of root directory to contain files.
2019-03-13 21:38:59 -07:00
Henry Gabryjelski
8def8aee53 Safer code
Add additional compile-time assertions
Add additional comments to define limitations future maintainers should be aware of.
2019-03-13 18:28:43 -07:00
Henry Gabryjelski
c51a227fd9 Add static assert
This guards against future increase in number of files
causing buffer overflow when reading the first root directory sector.
2019-03-13 15:24:42 -07:00
hathach
be5a925f72
Merge pull request #55 from henrygab/patch-4
Use local variable to store partially-calculated size.
2019-03-13 00:53:37 -07:00
Henry Gabryjelski
b8a0551678 Use local variable to store partially-calculated size.
This avoid re-entrancy problems, such as if this is ever
interrupted mid-execution, and called a second time before
the initial execution completes.
2019-03-12 13:41:33 -07:00
Henry Gabryjelski
0f216b8618 Fix spacing 2019-03-12 13:13:58 -07:00
Henry Gabryjelski
e0251415e7 Add some additional comments. 2019-03-12 12:29:05 -07:00
Henry Gabryjelski
12bb62eadd Per request, keep hard drive type in boot block.
Update the .PhysicalDrive in boot block.
Update the first fat entries to match MediaDescriptor of boot block.
2019-03-12 12:09:49 -07:00
Henry Gabryjelski
e2afc36dae
Fix media type mismatch
Fix the boot sector media descriptor to match the first FAT entries.
2019-03-10 20:02:56 -07:00
hathach
9ed3f5ea32 fix #46 complete uf2 writing using tud_msc_write10_complete_cb 2019-02-22 00:21:34 +07:00
hathach
d79fcb2ea5 fix #37
- dfu cdc write exact bytes of firmware which is not a muliplier of 256.
This cause incorrect section index with uf2 drive. Solution is round up
current flash size to 256
- also fix incorrect block number causing it is impossible to use old
current.uf2 to update
2018-12-21 12:17:14 +07:00
Scott Shawcroft
1b35dbf643
Add build script and hook it into Travis 2018-12-04 15:18:49 -08:00
Scott Shawcroft
2ece2daf90
Rework LED flashing and add Particle's boards 2018-12-04 13:45:55 -08:00
hathach
4f48b8b51a
rename led blink fast name 2018-11-23 11:46:21 +07:00
hathach
cb1ae6d947 add need_erase for flash_nrf5x. Only uf2 erase when flush, dfu serial (uart and cdc) will prepare erase in advance. 2018-10-02 20:41:53 +07:00
hathach
f14aebba1d rename flash_ to flash_nrf5x_ 2018-09-28 23:45:27 +07:00
hathach
d5dcd3a564 rename flash to flash_nrf5x 2018-09-28 23:41:46 +07:00
hathach
50dec0e77a move uf2 led blink fast to ghostfat 2018-09-28 13:37:01 +07:00
hathach
bb4891debc add build date to INFO_UF2.TXT 2018-08-31 02:35:59 +07:00
hathach
4924e6787f remove "Adafruit" in model with pca10056 board 2018-08-29 16:30:03 +07:00
hathach
8c66a55511 add CDC mode only for use with Arduino touch 1200
fix issue with reading current.uf2 size when flashed with jlink
2018-08-16 19:27:27 +07:00
hathach
85ad6e6b65 add boards.c , remove msc_uf2.h lots of clean up and refactor 2018-08-14 15:56:24 +07:00
hathach
1c2911a63c close #18, close #19
softdevice is only enabled with OTA mode
2018-08-13 21:50:55 +07:00
hathach
b47927f95c clean up 2018-08-11 10:50:40 +07:00
hathach
e06a35ce74 add family flag and value to read uf2 file 2018-08-11 00:19:01 +07:00
hathach
94a17d720c move flash_write and flush to seperate files for other usage 2018-08-11 00:09:17 +07:00
hathach
c176894075 implemennt uf2 family option #10 2018-08-08 19:52:51 +07:00
hathach
25671db338 solve #9, disable softdevice when upgrading with uf2 file 2018-08-08 18:01:09 +07:00
hathach
69ff86ffd2 clean up 2018-08-08 17:14:58 +07:00
hathach
f41c039228 move boards.h to src 2018-08-08 15:19:02 +07:00
hathach
6f40f02537 more clean up 2018-08-08 00:41:41 +07:00
hathach
98a1304881 update tusb 2018-07-15 00:02:44 +07:00
hathach
98ba8b9b32 clean up 2018-06-25 17:02:34 +07:00
hathach
e3ef2aca34 clean up 2018-06-25 16:53:52 +07:00
hathach
b31eac0950 clean up 2018-06-25 16:36:50 +07:00
hathach
6e9ecad3c8 get uf2 writing works 2018-06-25 16:00:42 +07:00
hathach
3a2d350c88 clean up 2018-06-25 15:17:53 +07:00