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
hathach
630a271372
update tinyusb
2020-04-19 14:36:13 +07:00
hathach
d142418b0f
update tinyusb submodule to 0.6.0
2020-03-30 16:23:56 +07:00
hathach
632e4611bf
rename FLASH_SIZE to CFG_UF2_FLASH_SIZE, make it whole flash = 1MB
...
also rename UF2_NUM_BLOCKS to CFG_UF2_NUM_BLOCKS
2020-03-27 17:36:51 +07:00
hathach
3ee1955e1b
move first write to msc_uf2 for consistency
2020-03-27 17:08:46 +07:00
hathach
fe1a7ea4f2
more with uf2
2020-03-27 15:12:53 +07:00
hathach
795fd2ee17
correct msc uf2 write, only skip 512 block, not the whole sector
2020-03-27 12:05:23 +07:00
hathach
b062026606
fix potential issue with interrupts_disable
...
also clean up
2020-03-27 11:59:37 +07:00
hathach
56c6378c39
comment out unused code in ble_dis
2020-03-27 11:58:24 +07:00
hathach
2b5dd6c614
update makefile for uf2 target and ses
2020-03-27 11:57:55 +07:00