hathach
0fc9f2f4bd
shrink size by not using sprintf()
2021-09-16 12:25:48 +07:00
hathach
3791f9376e
remove TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP from config descriptor
2021-09-15 22:23:20 +07:00
Ha Thach
5e1fe6aeb8
Merge pull request #222 from adafruit/refractor
...
Refractor
2021-09-10 19:23:41 +07:00
lady ada
90f163f6d8
add another button
2021-08-29 17:18:43 -04:00
lady ada
a427853ae0
glasses def
2021-08-29 17:15:29 -04:00
hathach
d7d084673f
use bug tempalte form, update raytac dongle url
2021-08-27 16:06:38 +07:00
hathach
1a6d8eae97
clean up
2021-08-04 19:05:30 +07:00
hathach
a2b3ae4970
clean up main
2021-08-04 19:05:30 +07:00
hathach
2f9ed3e447
more clean up
2021-08-04 16:57:06 +07:00
hathach
dedbb74562
increase app reserved size to 40KB to match circuitpython for 840
...
along with other clean up
2021-08-04 16:35:42 +07:00
hathach
eae198000c
clean up
...
- mostly whitespace
- use ceil div
2021-08-03 23:17:57 +07:00
Dario Budimir
9622b4f903
Merge branch 'adafruit:master' into nrf52840-bboard
2021-07-24 19:54:55 +01:00
dumam
a7fe7c98a3
Init header id with invalid value
2021-07-04 21:12:15 +02:00
dumam
6e33825e9f
Init header without init whole buffer
2021-06-27 14:29:12 +02:00
dumam
b1e0d2fd72
GCC 11 Fixes
2021-06-26 16:53:59 +02:00
mfranck
a754296a8a
add makerdiary m60 keyboard (uses nrf52840_m2)
2021-06-13 12:52:33 +02:00
ddB
2e59aa3a6b
changed PID as suggested on openmoko PR
2021-06-04 14:46:43 +01:00
ddB
082a0f2064
added openmoko VID
2021-06-04 10:08:48 +01:00
ddB
1e6b74f427
added nrf52840-BBoard
2021-06-03 20:58:58 +01:00
Nick Winans
20a5b93402
Add support for nice!nano v2
2021-06-02 17:07:27 -05:00
hathach
0ec25a7add
update pid for raytac dongle
2021-06-02 22:43:23 +07:00
Ha Thach
81240bfdb9
Merge pull request #206 from jpconstantineau/EByte-E104
...
EByte-E104: fix to LED direction
2021-05-31 10:07:10 +07:00
Pierre
398ede8f90
swap TX/RX
2021-05-30 16:16:09 -06:00
Pierre
cef07b4eeb
fix to LED direction
2021-05-30 16:04:33 -06:00
Pierre
0c086c2a4c
Adding E73 Test board from EByte
2021-05-30 15:59:51 -06:00
Pierre
0e87ce6e3e
update to comments
2021-05-29 23:04:21 -06:00
Pierre
4c1344c612
fix to buttons
2021-05-29 23:04:14 -06:00
Pierre
6755bd101c
adding EByte E104-BT5032A Module
2021-05-29 23:02:54 -06:00
hathach
12d36857c2
clean up
2021-05-12 10:45:15 +07:00
Benny Meisels
0a677620ab
Add board definition files for ARAMCON 2 Badge
2021-04-18 10:07:22 +03:00
hathach
488c6c4463
update changelog for release
...
rename board to all lower case
2021-04-04 14:42:12 +07:00
hathach
0098324683
skip DFU entirely with DFU_MAGIC_SKIP
2021-04-04 12:58:47 +07:00
hathach
26bafdcf24
Merge branch 'BUTTON_DFU_WAKEUP' of https://github.com/lyusupov/Adafruit_nRF52_Bootloader into lyusupov-BUTTON_DFU_WAKEUP
2021-04-02 23:14:02 +07:00
Chris Dailey
78d0c3ae27
Update board.h
...
Adjust `UF2_BOARD_ID` to fit UF2 format.
2021-03-23 09:11:10 -04:00
Linar Yusupov
0299cfedb5
Avoid entering into DFU mode upon wake up by BUTTON_DFU GPIO
2021-03-11 13:20:25 +03:00
Chris Dailey
d88ab7427a
Updated sf micromod USB PIDs
...
As per the PIDs provide by TheHoff, [here](https://forum.sparkfun.com/viewtopic.php?p=223812#p223812 )
2021-03-09 12:53:02 -05:00
nitz
1a5df60739
Add board 'sparkfun_nrf52840_micromod'.
2021-03-07 00:56:50 -05:00
James Devine
0670265be0
Add ifdef guard for apa102 teardown
2021-03-03 12:47:27 +00:00
James Devine
6f7dc38d3c
ifdef guard inclusion of nrf_spim
2021-03-02 23:41:45 +00:00
James Devine
91f16ade72
add support for APA102 LEDs
2021-03-02 23:32:01 +00:00
Glenn Engel
755cfa95e4
Add USB connect timeout for app reset to UF2 or Serial via GPREGRET
2021-02-15 07:49:52 -08:00
Linar Yusupov
f9125593b2
fix against pollution of REGOUT0 reserved bits
2021-01-30 12:27:52 +03:00
hathach
72160554dc
change ci to matrix build
2021-01-19 12:19:47 +07:00
Michal Moskal
6fc2145871
Allow for power supply configuration
2020-12-02 10:55:00 +01:00
Ha Thach
64ea299572
Merge pull request #173 from Atelier-Du-Maker/master
...
Add Holyiot nrf52840
2020-10-29 10:18:56 +07:00
Gaetan
d19e26fc9b
Fix UF2_VOLUME_LABEL
2020-10-28 22:31:19 +01:00
Gaetan
7963ebcad9
Change Board Name & fix typo
...
rename : src/boards/holyiot_nrf52840/board.h -> src/boards/ADM_B_NRF52840_1/board.h
rename : src/boards/holyiot_nrf52840/board.mk -> src/boards/ADM_B_NRF52840_1/board.mk
rename : src/boards/holyiot_nrf52840/pinconfig.c -> src/boards/ADM_B_NRF52840_1/pinconfig.c
2020-10-28 22:25:11 +01:00
Gaetan
d7af151e72
Add File
...
modifié : src/boards/holyiot_nrf52840/board.h
2020-10-26 22:27:20 +01:00
Pierre
705990bce8
changing from BlueMicro to BlueMicro nrf52840
2020-10-22 16:26:05 -06:00
Pierre
0443811140
updated PID as per openmmoko PR
2020-10-22 08:07:11 -06:00
Pierre
d37a3ae640
checked buton 2 connection
2020-10-20 22:17:02 -06:00
Pierre
f5a48c3356
adding BlueMicro to boards
2020-10-20 21:43:52 -06:00
Pierre
88bc14bb4e
adding BlueMicro to boards
2020-10-20 21:41:57 -06:00
ogatatsu
66097042bb
add akizukidenshi AE-BL652-BO
2020-09-10 21:00:46 +09:00
nitz
9ad10c8b1b
Add MakerDiary Pitaya Go board.
2020-08-18 20:05:45 -04:00
nitz
a5b78ff410
Updated with @xiongyhui's VID/PID from Seeed
2020-08-06 11:11:31 -04:00
nitz
8ab7a41fab
Fix strings to be MakerDiary
...
Not sure how I managed to mix my branches up.
2020-08-05 20:10:41 -04:00
nitz
86a6622724
Revert NO_SOFT_DEVICE change.
...
Will be more work, will work on it in it's own feature branch.
2020-08-05 08:46:24 -04:00
nitz
307125255b
Rename USES_NFCT to USE_NFCT
2020-08-05 08:09:33 -04:00
nitz
75c89998c6
Support for skipping the NFCT as GPIO & SD defines
...
nrf52840_m2 makes use of these skips.
2020-08-04 18:55:55 -04:00
nitz
4263c8ff79
Add MakerDiary nRF52840 M.2 Module board.
2020-08-04 18:37:08 -04:00
Edrig
7d76c828ec
Add File for Holyiot Nrf52840
...
new file : src/boards/holyiot_nrf52840/board.h
new file : src/boards/holyiot_nrf52840/board.mk
new file : src/boards/holyiot_nrf52840/pinconfig.c
2020-08-04 14:37:04 +02:00
Henry Gabryjelski
2e5b45edfe
remove additional ifdef ... source not compiled when no USB, so no compilation error for nRF42832
2020-07-31 10:27:22 -07:00
Henry Gabryjelski
6a092abb5e
updates per @hathach feedback
2020-07-27 21:21:34 -07:00
Henry Gabryjelski
e843045f4d
Revert "always use/define CFG_UF2_BOARD_APP_ID"
...
This reverts commit aa8cd83961 ,
because the feather_nrf52832 does not define its own USB VID/PID.
2020-07-27 10:16:16 -07:00
Henry Gabryjelski
aa8cd83961
always use/define CFG_UF2_BOARD_APP_ID
2020-07-27 10:05:12 -07:00
Henry Gabryjelski
dc90457828
Expose UF2 file using board-specific familyID
...
Where the board has a defined USB VID/PID, allow
that as a family ID when flashing a UF2 file, and
also use the VID/PID for the familyID in the UF2
file that is exposed via ghostfat.
2020-07-25 17:36:10 -07:00
Henry Gabryjelski
b3a2afa5c5
Begin UF2 board-specific family ID
...
Per @hathach's comments, uses the USB
vendorID and productID.
2020-07-25 17:18:45 -07:00
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
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
725c82c7e8
clean up cfg
2020-05-05 14:30:35 +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
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
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
1c48833336
more cleanup
2020-03-27 00:12:49 +07:00
hathach
9a7eeeb499
use SD_FLASH_SIZE + MBR_SIZE for USER_FLASH_START
2020-03-27 00:03:30 +07:00
hathach
e92937e9d5
still clean up
2020-03-26 16:32:41 +07:00
hathach
c467875ca3
clean up
2020-03-26 13:06:44 +07:00
hathach
2128d60cc9
enable most warning option, fix all warnings
2020-03-25 18:39:39 +07:00
hathach
6b3f70db47
remove all uart pin from nrf52840 board, since it is not used.
2020-03-25 18:18:27 +07:00
hathach
b2d4b016a9
enale Wextra
...
clean up some warning
2020-03-25 14:09:07 +07:00
hathach
01ac2b3d46
clean up
2020-03-25 00:31:39 +07:00
hathach
42734a1ab5
move segger out of src folder
2020-03-24 21:59:53 +07:00
hathach
86809ca043
fix #89
2020-03-24 21:46:54 +07:00
hathach
54f4fdab58
sync with tinyusb master
2020-03-24 21:26:00 +07:00
hathach
cb735eaf8b
clean up makefile, move linker out of src folder
2020-03-24 21:07:20 +07:00
hathach
0526a2b120
update board list, change Clue to CLUE
2020-03-12 12:27:40 +07:00
hathach
ab4ecd141f
follow up to #114
2020-03-12 12:21:57 +07:00
Michal Moskal
fc63d5096a
Fix for 832
2020-03-09 21:00:20 -07:00
Michal Moskal
7d59a758da
Make sure all pins are in reset state on teardown
2020-03-09 20:37:44 -07:00
Dan Halbert
9df8b8b870
correct LED1 pin; make volume label FTHRSNSBOOT
2020-03-05 15:55:42 -05:00
hathach
80e0c1501e
follow up to pincofig
2020-03-01 00:49:52 +07:00