Commit Graph

369 Commits

Author SHA1 Message Date
hathach d790f4adc9 add mising license for ghostfat
also do a bit of clean up
2020-07-16 12:34:27 +07:00
ikigaisense 2118c82eaf ikigaisense_vita-PID-change 2020-07-14 11:48:53 -06:00
ikigaisense 8e52dd5e49 add-ikigaisense_vita-nrf52840 2020-07-14 11:14:36 -06:00
Ha Thach 0b0677d0d7 Merge pull request #144 from ElectronicCats/bast_ble
Added variant for Bast ble
2020-07-12 00:11:22 +07:00
sabas1080 2aad7be11b add button dummie 2020-07-11 01:01:21 -05:00
sabas1080 3512f27da5 change VID and PID 2020-07-11 01:01:01 -05:00
Ha Thach 10b470afad Merge pull request #143 from adafruit/usb_timeout
Reset into app, if no USB connection in 3s
2020-07-10 01:13:05 +07:00
Michal Moskal 6642747a2d Disable timeout in OTA mode; add comments 2020-07-09 11:03:06 -07:00
Michal Moskal 6b4cf21ba2 Reset into app, if no USB connection in 3s
(only applies in SINGLE_TAP_RESET mode (MakeCode))
2020-07-08 13:49:53 -07:00
Michal Moskal 7966e5e85c Add pin config for itsy bitsy 840 2020-07-08 13:43:36 -07:00
sabas1080 c7ec6baabe init bootloader 2020-06-20 12:07:00 -05:00
Nick c6d9ca8082 Add unique PID 2020-06-05 10:02:10 -05:00
Nick 4ba551827f Add nice!nano 2020-06-04 19:18:54 -05:00
Henry Gabryjelski 28e09e0aba READ CAPACITY uses CFG_UF2_NUM_BLOCKS,
Therefore, use that existing configuration setting
for BPB_TOTAL_BLOCKS.
2020-05-28 23:02:13 -07:00
Henry Gabryjelski 513cc7ab44 Enable use of larger sized GhostFAT volume 2020-05-28 22:58:59 -07:00
Henry Gabryjelski 1b0816163b Ready for review and testing?
CFG_UF2_NUM_BLOCKS is currently set in uf2cfg.h.
Likely will hard-code file system to a large value.

Maximum value for CFG_UF2_NUM_BLOCKS: 0x101dd

If remove one `STATIC_ASSERT()`, at the risk of
compatibility issues with FAT implementations that
have off-by-one errors (of which there are many),
the maximum value could be raised to 0x101fd.

The maximum value is based on the following values:
* BPB_SECTOR_SIZE         (fixed at 512 for FAT16)
* BPB_RESERVED_SECTORS    (fixed at   1 for FAT16)
* BPB_NUMBER_OF_FATS      (fixed at   2 for FAT16)
* BPB_ROOT_DIR_ENTRIES    (fixed at  64 by  GhostFAT)
* BPB_SECTORS_PER_CLUSTER (fixed at   1 by  GhostFAT)
* BPB_SECTORS_PER_FAT     (calculated from CFG_UF2_NUM_BLOCKS)

If any of the above change, then the maximum value
will also change.
2020-05-28 22:58:59 -07:00
Henry Gabryjelski 041defeb63 Statically ensure valid FAT16 cluster count 2020-05-28 22:58:59 -07:00
Henry Gabryjelski 2c9826acd9 Fix start cluster calculation.
Fixes 133.
2020-05-28 22:58:59 -07:00
Henry Gabryjelski 09697eb541 Use defines rather than magic numbers 2020-05-28 22:58:59 -07:00
Henry Gabryjelski cc829aa405 additional minor cleanup 2020-05-28 22:58:59 -07:00
Henry Gabryjelski 614da97a4a More descriptive names for some defines 2020-05-28 22:58:59 -07:00
Henry Gabryjelski 00669e813e more static-compilation changes 2020-05-28 22:58:59 -07:00
Henry Gabryjelski 763c7df557 More static assertions and defines 2020-05-28 22:58:59 -07:00
Henry Gabryjelski f157069595 Static assertions and additional #defines 2020-05-28 22:58:59 -07:00
Henry Gabryjelski 947045239a Move BPB related defines 2020-05-28 22:58:59 -07:00
hathach a4084e0f46 add SD detection to INFO.txt 2020-05-13 14:11:47 +07:00
hathach 148723984c revert VID/PID for pca10056/pca10059 use feather nrf52840
as it previously does.
2020-05-13 00:59:27 +07:00
hathach cf1ccfecad all boards are now required pinconfig for storing bootloader ID in cf2 format 2020-05-12 20:52:21 +07:00
hathach e6de13f679 clean up 2020-05-12 20:43:12 +07:00
hathach 7929dc3dae add check for boatloader id in cf2 config 2020-05-12 20:27:07 +07:00
hathach 7c8e1e59e5 change bootloader family id to random generated value of 0xd663823c 2020-05-12 16:41:07 +07:00
hathach 013458ad97 makefile to generate bootloader-nosd.uf2
everything seems working
2020-05-12 14:33:56 +07:00
hathach d594cbc1a4 add intelhex submodule
clean up
2020-05-12 13:25:52 +07:00
hathach 27882cdce6 fixed the bootloader start address for simplicity and prevent bricking device 2020-05-12 01:28:21 +07:00
hathach afeb645a87 correct the DFU_BL_IMAGE_MAX_SIZE
skip populate MBR_BOOTLOADER_ADDR/MBR_PARAM_PAGE_ADDR
2020-05-12 00:48:06 +07:00
hathach 46adc425a4 try to allow new bootloader with different size than current one
however, due to the design of MBR, the SD_MBR_COMMAND_COPY_BL prioritize
its internal flash location MBR_BOOTLOADER_ADDR, we won't be able to
change bootloader starting address to increase its size
2020-05-11 19:03:39 +07:00
hathach 08c0f27f45 correct app address in APP_ASKS_FOR_SINGLE_TAP_RESET() 2020-05-08 12:44:41 +07:00
hathach 5ed4d509f5 clean up 2020-05-08 12:42:41 +07:00
hathach cf4efa2c94 move boards.c/h into boards folder 2020-05-08 12:27:20 +07:00
hathach 4bbdeab8d1 fix ci build by re-using VID/PID of feather 52840 for other boards
build for these board will be disabled in the future.
2020-05-08 12:18:37 +07:00
hathach 72902e6931 finalize fixed readback current.uf2 size 2020-05-08 11:35:04 +07:00
hathach 6adf9810a6 read back full app size for simplicity 2020-05-08 11:23:11 +07:00
hathach 609473760a mark app as invalid when updating Softdevice only as application in uf2 mode
able to flash combine SD + cpy as single uf2. still has issue writing
back CURRENT.UF2
2020-05-08 00:45:01 +07:00
hathach 54a0ad7070 correct uf2 app/sd size when writing and reading 2020-05-07 16:55:57 +07:00
hathach 447207b875 add failed safe mbr forward address 2020-05-07 12:18:58 +07:00
hathach 570bd5b664 more clean up, everything look good
usb example work without SD, which means ISR forwarding is working.
2020-05-06 23:45:17 +07:00
hathach 99d31d2c82 remove the use of factory reset 2020-05-06 23:16:02 +07:00
hathach dad8e10f6c bootloader_app_start() correct set
- use sd vector table set if existed
- otherwise use mbr to set to application (0x1000)
2020-05-06 23:12:07 +07:00
hathach f12c837479 the pca10056 and pca10059 usb vid/pid to match those in nordic sdk 2020-05-06 19:18:01 +07:00
hathach d95684ce8b comment out factory reset 2020-05-06 16:13:56 +07:00