Commit Graph
569 Commits
Author SHA1 Message Date
Henry Gabryjelski da2aca70cc Exclude VSCode directory 2020-05-28 22:58:59 -07:00
Ha Thach ff120ffadb Merge pull request #128 from adafruit/self-uf2
Major upgrade to bootloader to decouple SoftDevice and self upgrade with uf2
2020-05-29 09:33:16 +07:00
hathach 2df81e6543 use python3 for hex merge 2020-05-13 22:34:05 +07:00
hathach a4084e0f46 add SD detection to INFO.txt 2020-05-13 14:11:47 +07:00
hathach 26e02484f3 remove submodule intelhex, use copied hexmerge.py instead 2020-05-13 13:22:34 +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 62336dc766 add uf2 conv for bootloader 2020-05-13 00:00:28 +07:00
hathach 316891dbd5 everything seems good 2020-05-12 23:21:58 +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 0e4995c680 drop SD in linker name 2020-05-12 16:06:02 +07:00
hathach 29a62bc0ed continue to fix ci 2020-05-12 15:39:39 +07:00
hathach d50796ff4c replace mergehex with python-intelhex 2020-05-12 14:53:13 +07:00
hathach c41dd59b5f fixing ci build 2020-05-12 14:45:51 +07:00
hathach f841a4593d update tinyusb for dcd nrf detect SD dynamically. 2020-05-12 14:36:42 +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 348f268113 app is invalid if both of its 2 first words are empty mask 2020-05-08 12:17:47 +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 bce102e34a remove address from checking app valid function
either use address after SD or MBR
2020-05-06 16:25:50 +07:00
hathach d95684ce8b comment out factory reset 2020-05-06 16:13:56 +07:00
hathach 74c650851e more update 2020-05-06 15:53:31 +07:00
hathach af105128f3 populate bootloader address and mbr param if not available in MBR
check SD MAGIC before using sd API when init usb
2020-05-06 00:11:29 +07:00
hathach ed7c5ac2f3 add mbr flash target 2020-05-05 22:04:39 +07:00
hathach 0b84f428d2 added mbr 2.4.1 2020-05-05 21:47:20 +07:00
hathach 725c82c7e8 clean up cfg 2020-05-05 14:30:35 +07:00
Ha Thach 9f80139ee8 Merge pull request #108 from xiongyihui/master
a step to no softdevice
2020-05-05 13:02:37 +07:00
Ha Thach 3426778a27 Merge branch 'self-uf2' into master 2020-05-05 12:55:22 +07:00
hathach 6ac95d3798 clean up for merging PR 2020-05-05 12:33:18 +07:00
hathach 1dbe7c3b80 correct retarget 2020-05-04 17:26:54 +07:00
hathach 3ca3b92e2a update tinyusb to commit 101f234 2020-05-04 16:51:58 +07:00
hathach 1c1104e989 added RTT printf for debugging 2020-05-04 16:50:56 +07:00
hathach 3bf0635676 updating wip 2020-04-23 13:42:30 +07:00