Nick Moore
fdaff00c78
Make some space for NVM adafruit/circuitpython#1042
2019-04-09 10:56:53 +10:00
Nick Moore
8e7fee2246
Working flash pages for nvm.ByteArray adafruit/circuitpython#1042
...
import microcontroller
def dump(n = microcontroller.nvm):
for i in range(0,len(n)):
print ("%02X " % n[i], end="")
if i % 16 == 15: print('')
microcontroller.nvm[0:4096] = bytes([1,2,3,4,5,6,7,8]) * 512
microcontroller.nvm[4096:8192] = bytes([16,17,18,19]) * 1024
microcontroller.nvm[4090:4101] = b'thisisatest'
microcontroller.nvm[100:105] = b'hello'
microcontroller.nvm[8000:8007] = b'goodbye'
dump()
2019-04-09 10:55:39 +10:00
Nick Moore
492431a694
nvm.ByteArray reads & writes but no sensible erase yet adafruit/circuitpython#1042
2019-04-09 10:54:11 +10:00
Nick Moore
f8e5e2da64
Start on nRF nvm.ByteArray adafruit/circuitpython#1042 (doesn't do anything yet)
2019-04-09 10:54:11 +10:00
Scott Shawcroft
0f003ac5b8
Reorganize board busses into shared-bindings and shared-module.
2019-04-08 16:58:50 -07:00
Dan Halbert
fe555a4098
Allow NFC pins to be used for other purposes.
2019-03-21 11:22:58 -04:00
Jerry Needell
bd13834a74
implement default busses for particle boards
2019-02-24 09:34:33 -05:00
Dan Halbert
9c24c804fb
Fix #ifdefs in port.c to call xxx_reset() rroutines properly. Remove most uses of EXPRESS_BOARD.
2019-02-18 22:44:31 -05:00
Dan Halbert
7b3f7605b8
address @tannewt changes: move and rename common files; remove PORT_HEAP_SIZE
2019-02-15 20:32:32 -05:00
Dan Halbert
a345ef28f2
finish Makefile refactoring; nrf builds work
2019-02-15 18:55:10 -05:00
Scott Shawcroft
6404aaf411
Fix up nrf and using board.SPI in FourWire
2019-01-17 18:19:07 -08:00
Scott Shawcroft
760bd8d8a4
share fourwire and make nrf compile
2019-01-17 15:15:59 -08:00
Scott Shawcroft
c1e6624f8f
Merge pull request #1470 from gpshead/mdk_usb_dongle
...
Add Makerdiary nRF52840 MDK USB dongle support.
2019-01-15 23:05:15 -08:00
dsiee
af0f1a7542
Update pins.c
...
whitespace
2019-01-16 15:02:48 +11:00
dsiee
c2d39a7ab7
Update pins.c
2019-01-16 14:58:16 +11:00
dsiee
ac238838f2
Update pins.c
...
add declaration for RED_LED as D3 to match silkscreen.
2019-01-16 14:48:41 +11:00
Gregory P. Smith
7296b647ef
Add MDK nRF52840 MDK USB Dongle support.
...
Adds support for https://wiki.makerdiary.com/nrf52840-mdk-usb-dongle/ .
A cheap nRF52840 USB stick with optional headers, very Trinket and Itsy like.
2019-01-15 01:37:22 -08:00
Dan Halbert
b6b5ed9c89
Remove nRF52832 support
2018-12-30 22:49:20 -05:00
Jerry Needell
55084b30ef
remome FRAMEBUF from nrf builds - use QSPI for particle ARGON
2018-12-27 09:38:35 -05:00
Scott Shawcroft
8fc72e8978
Add SPI and I2C to SparkFun nRF52840 mini definition and add it to Travis.
2018-12-10 20:32:19 -08:00
Scott Shawcroft
8a981dc8e8
Merge remote-tracking branch 'adafruit/master' into sfe840
2018-12-10 20:13:36 -08:00
Scott Shawcroft
6ef8639971
Rework safe mode and have heap overwrite trigger it.
...
This creates a common safe mode mechanic that ports can share.
As a result, the nRF52 now has safe mode support as well.
The common safe mode adds a 700ms delay at startup where a reset
during that window will cause a reset into safe mode. This window
is designated by a yellow status pixel and flashing the single led
three times.
A couple NeoPixel fixes are included for the nRF52 as well.
Fixes #1034 . Fixes #990 . Fixes #615 .
2018-12-06 14:24:20 -08:00
Scott Shawcroft
b25bf062fb
Add correct flash chip for Particle Mesh boards
2018-12-04 18:20:51 -08:00
Scott Shawcroft
15c1fc873c
Add particle boards, fix cp32 and try to speed up atmel build
2018-12-04 18:20:48 -08:00
Dan Halbert
63cd9209f1
allow KeyboardInterrupt on UART read; fix nrf UART pin claiming; rename feather 52840 UART pins
2018-12-04 15:05:39 -05:00
jimblom
09316b35d7
remove non-broken-out nrf pins. re-organize pins.c list.
2018-11-30 14:58:36 -07:00
jimblom
f67814fc97
Adding SparkFun nRF52840 Mini board support.
2018-11-30 13:57:22 -07:00
Scott Shawcroft
d446d328d8
Fix QSPI on Feather nRF52840
...
We were writing with quad page program including the address (0x38)
which is unsupported by the GD25Q16C but it is supported by the
flash on the DK. So, we use the single address, quad data command
(0x32).
2018-11-27 00:13:24 -08:00
Scott Shawcroft
15eeac5d4b
A few fixes for nRF52840 feather QSPI and neopixel
2018-11-23 14:22:07 -08:00
Dan Halbert
5fe746f643
Latest Feather nRF52840 pin revisions
2018-11-21 19:46:49 -05:00
Scott Shawcroft
9d91111b1b
Move atmel-samd to tinyusb and support nRF flash.
...
This started while adding USB MIDI support (and descriptor support is
in this change.) When seeing that I'd have to implement the MIDI class
logic twice, once for atmel-samd and once for nrf, I decided to refactor
the USB stack so its shared across ports. This has led to a number of
changes that remove items from the ports folder and move them into
supervisor.
Furthermore, we had external SPI flash support for nrf pending so I
factored out the connection between the usb stack and the flash API as
well. This PR also includes the QSPI support for nRF.
2018-11-08 17:25:30 -08:00
Dan Halbert
64d457dad9
bring bleio PR up to date
2018-11-07 14:12:22 -05:00
arturo182
d5a71a4b8a
nrf: Move bluetooth driver to the 'bluetooth' folder
2018-10-21 15:55:25 +02:00
Josh Klar
aefabc5353
Update docs to reflect proper size of device
2018-10-20 03:29:20 -07:00
Josh Klar
4c75a60bd3
Declobber a DEFINE
2018-10-20 02:57:17 -07:00
Josh Klar
16ca9c8c7c
Makefile fixes and some docs
2018-10-20 02:43:13 -07:00
Josh Klar
3d7b96aeb1
Add board and pin defs for MakerDiary NRF52840 MDK
2018-10-20 02:43:12 -07:00
hathach
f724647a45
fix feather nrf52840 build error
2018-09-25 17:09:54 +07:00
hathach
2f0e0bdcaf
migrate serial from uart to uarte
2018-09-25 16:14:44 +07:00
hathach
7a1b4ccc9b
Merge branch 'master' into nrf52_uart_io
2018-09-24 12:50:48 +07:00
hathach
c5593ec074
got uart tx work
2018-09-19 17:59:15 +07:00
hathach
1df3bcf392
add board.UART() function
2018-09-19 14:40:37 +07:00
hathach
d8c8c5f005
remove CFG_HWUART_FOR_SERIAL
2018-09-18 20:26:50 +07:00
Pierrick C
7e8816ad6f
Add VOLTAGE_MONITOR alias to pin D31/A7
2018-09-13 23:46:47 +02:00
Dan Halbert
e335c74ac6
use open-drain capabilities on GPIO; clean up board init; set correct GPIO voltage
2018-09-09 15:01:28 -04:00
Dan Halbert
4382389e6f
fix typos, remove incorrect pca10059 example; add default buses for pca10056; improve board names for pca boards
2018-09-01 00:29:36 -04:00
Dan Halbert
9ea809bef7
add pin claiming to devices
2018-08-31 18:38:05 -04:00
Dan Halbert
585597a252
pin files rework; implement pin claiming; add more boards
2018-08-31 18:05:55 -04:00
ladyada
ded38d30b6
rename pin.h to nrf_pin.h to avoid conflict with Pin.h
2018-08-26 20:37:12 -04:00
Dan Halbert
4cc33f8de6
Merge remote-tracking branch 'adafruit/master' into nrf_board_rename
2018-08-23 16:25:57 -04:00
hathach
7961103ee6
update SD to v6.1.0
2018-08-22 21:51:30 +07:00
Dan Halbert
eaf4d19dbb
Merge remote-tracking branch 'adafruit/master' into nrf_board_rename
...
Merge #1137
2018-08-22 10:24:10 -04:00
hathach
a516d1123f
fix typos
2018-08-22 19:42:41 +07:00
hathach
fc955b1591
remove bootloader binaries, update readme for using adafruit-nrufitl and flashing bootloader
2018-08-22 15:22:17 +07:00
Dan Halbert
c503cf990b
forgot to change .travis.yml
2018-08-21 20:35:58 -04:00
Dan Halbert
85df32907f
rename nrf boards to feather_nrf52832 and feather_nrf52840_express
2018-08-21 18:45:37 -04:00
hathach
df4184e478
rename linker file to SD major version only
2018-08-21 16:02:57 +07:00
hathach
e1ccc07841
remove bootloader & dfu-bootloader target
...
user should go to bootloader repo to upgrade bootloader
2018-08-14 20:19:28 +07:00
hathach
3525d65af3
should fix #1021
...
- update tinyusb for wanted char
- move usb code into usb.c
2018-07-17 21:24:49 +07:00
hathach
f98c7f708e
merge review
2018-07-12 01:37:23 +07:00
hathach
10846d316b
Merge branch 'master' into nrf52840_usbboot
2018-07-11 21:35:44 +07:00
hathach
a53b1c7cf1
code format
2018-07-10 22:49:51 +07:00
arturo182
2c63fb2a94
nrf: Remove the random hal and module
...
Thus getting rid of the whole old hal!
The module is not needed because the common-hal
nRF implementation uses HW RNG anyway.
2018-07-10 14:59:22 +02:00
hathach
0e819599e7
Merge branch 'master' into nrf52840_usbboot
2018-07-10 02:02:52 +07:00
hathach
7715d19efe
update bootloader hex
2018-07-10 01:20:37 +07:00
hathach
97a1ae911e
add family option for uf2
2018-07-10 01:18:14 +07:00
arturo182
25ece8fb3d
nrf: Rewrite the UART HAL using nrfx
2018-07-08 16:42:04 +02:00
arturo182
c6a2a55bc9
nrf: Cleanup mpconfigboard files
...
All the removed defines were used by legacy modules that are now
removed.
2018-07-08 15:18:11 +02:00
hathach
948ddf8463
make SD default to s140 and s132 for nrf52840 and nrf52832
...
add CFG_HWUART_FOR_SERIAL for using jlink as REPL
2018-07-06 14:39:49 +07:00
hathach
7fff7f5e70
add usb msc support for nrf52840
2018-07-04 16:40:53 +07:00
hathach
46c453cf0a
add tinyusb as submodule
2018-07-03 17:46:08 +07:00
hathach
c4f11dfd32
flash target update bootloader setting to skip crc checksum
2018-06-27 15:22:44 +07:00
hathach
8fbe1d73e9
clean up makefile
2018-06-27 15:13:20 +07:00
hathach
4920cc47ca
move dfu-gen dfu-flash dfu-bootloader bootloader uf2 target to common Makefile since several board use it
2018-06-27 14:31:08 +07:00
hathach
bed7310fd7
update bin files
2018-06-27 14:13:18 +07:00
hathach
ecd3993d43
update pin map for feather52840
2018-06-27 14:06:15 +07:00
hathach
8d065fe0e6
update reamde
2018-06-26 00:16:58 +07:00
hathach
54547683f9
add uf2, bootloader target
2018-06-25 23:31:14 +07:00
hathach
4722371be9
update bootloader hex with uf2
2018-06-25 23:27:00 +07:00
hathach
f5be5ed6ee
Merge branch 'master' into nrf52840_usbboot
2018-06-25 17:12:24 +07:00
arturo182
596a1d8843
nrf: Rename feather52 to feather52832 in readme files
2018-06-22 10:04:39 +02:00
arturo182
25e71a56d4
nrf: Update the PCA10056 example to use new pin naming
2018-06-20 23:39:36 +02:00
arturo182
c2d4d0a10b
nrf: Simplify pin generation and definition
...
This commit cleans up the pin generation code, all the pins and their
AF (only ADC, for now) are specified in nrf52_af.csv and board use their
own csv file to specify which pins are available on that board and if
they have any special names.
2018-06-20 23:26:32 +02:00
arturo182
ff918556cd
nrf: Simplify the board makefiles
...
With the only difference between a SD and non-SD build is the linker
file, there's no need to have two separate .mk per board files,
just use a conditional.
2018-06-20 21:21:45 +02:00
arturo182
5509f394dc
nrf: Add a nrfx submodule and prepare for using the new drivers
2018-06-20 20:43:59 +02:00
arturo182
b47a67d566
nrf: Remove machine, pyb and utime modules
...
Micropython legacy, keeping it consistent with atsam port.
2018-06-20 18:21:18 +02:00
hathach
61437106e7
update bootloader for feather nrf52840
2018-06-19 15:27:07 +07:00
hathach
6d2702ed98
Merge branch 'master' into nrf52840_usbboot
2018-06-19 14:50:17 +07:00
Scott Shawcroft
4e7eee3553
Merge pull request #946 from arturo182/nrf_sd6
...
nrf: Use the production version of s140 6.0.0
2018-06-18 16:29:41 -07:00
arturo182
feee808955
nrf: Use the production version of s140 6.0.0
2018-06-18 23:12:28 +02:00
Scott Shawcroft
05547b72ac
Switch to Feather52s full name to avoid confusion with the nrf52840 later.
...
Fixes #940
2018-06-18 10:51:04 -07:00
hathach
35d38dbfed
update nrf52840 bootloader hex
2018-06-13 17:27:55 +07:00
hathach
418e28c7dc
update nrf52840 bootloader hex and target
2018-06-08 16:10:49 +07:00
hathach
2b3436e87c
add feather nrf52 uart rts, cts support
2018-06-08 15:59:38 +07:00
hathach
c10899d13f
allow to flash feather52 and feather52840 with jlink
...
add crc bypass magic to bootloader settting
2018-06-08 15:11:17 +07:00
hathach
6d4a2f5524
Merge branch 'master' into usbboot
2018-05-17 15:23:45 +07:00
hathach
52ebfd07a5
update nrfutil to 0.5.2d with singlebank option
2018-05-17 15:20:07 +07:00
hathach
53593d1315
fix #809
...
define CIRCUITPY_BOOT_OUTPUT_FILE will cause mp_hal_stdout_tx_strn() to
invoke before serial_init() is called. Solution is skipped output to
serial if it is not inited.
2018-05-15 18:40:49 +07:00
hathach
05f36ebeb1
update the bootloader hex for feather52840
2018-05-15 16:06:03 +07:00
Kevin Townsend
d0e00d7fbe
Added built to example
2018-04-23 20:01:53 +02:00
Kevin Townsend
0de8697315
Added note on USB CDC bootloader
2018-04-23 19:58:29 +02:00
hathach
ce9f05f91b
add missing files
2018-04-24 00:51:44 +07:00
hathach
50e7a4caa8
add bootloader hex
2018-04-24 00:19:04 +07:00
ladyada
926849d7a8
don't use python nrfutil on windows, it doesnt work :/ tested feather52 makefile on windows/mingw
2018-04-13 14:00:20 -04:00
Kevin Townsend
fce0b0858f
Removed leftover build option
2018-02-15 21:46:14 +01:00
Kevin Townsend
10497d1db0
Update for style consistency
2018-02-15 21:44:05 +01:00
Kevin Townsend
6544f4cb5c
Cleanup minor typos
2018-02-15 21:42:24 +01:00
Kevin Townsend
da15053e0a
Fixed pin P0_00
2018-02-15 21:41:21 +01:00
Kevin Townsend
d4356f9416
Added second 'P0_00'
2018-02-15 17:00:58 +01:00
Kevin Townsend
cd7baed14d
Added note nrfutil and flashing
2018-02-15 16:00:34 +01:00
Kevin Townsend
70596b6641
Added note on MSDDisable
2018-02-15 15:51:10 +01:00
hathach
f989db25b5
more bootloader feather52840 update
2018-02-15 21:43:27 +07:00
hathach
2e0edd5a63
Merge branch 'nrf52840' of github.com:microbuilder/circuitpython into nrf52840
2018-02-15 15:19:47 +07:00
hathach
2c9cd38547
update bootloader for feather52840
2018-02-15 15:12:30 +07:00
Kevin Townsend
0981c579f0
Fixed pin names
2018-02-13 18:26:28 +01:00
Kevin Townsend
b65e97bdb3
Update pin names
2018-02-13 18:17:31 +01:00
Kevin Townsend
5160dda473
Merge branch 'master' into nrf52840
2018-02-13 18:13:47 +01:00
Kevin Townsend
7b1cc9985b
Merge branch 'master' of github.com:adafruit/circuitpython
2018-02-13 18:11:20 +01:00
Kevin Townsend
283be4f58e
Added note on installing nrfutil
2018-02-13 11:55:24 +01:00
Kevin Townsend
7b6d1052d9
Improved README
2018-02-13 11:50:51 +01:00
Kevin Townsend
6a8bafc91b
Updated FATFS to 256KB
2018-02-13 11:50:29 +01:00
Kevin Townsend
fc28fc4f0b
Added notes on flashing bootloader
2018-02-13 11:26:10 +01:00
Kevin Townsend
4745272d6c
Added feather52840 readme
2018-02-13 09:34:09 +01:00
Kevin Townsend
76eacad27b
Updated board detection macro
2018-02-13 08:52:17 +01:00
Kevin Townsend
9f1cd41d77
Update to S140
2018-02-13 08:44:35 +01:00
Kevin Townsend
d2b8ae66cb
Update mpconfigboard.h
2018-02-13 08:42:44 +01:00
Kevin Townsend
59f25fb7a5
Update to S140
2018-02-13 08:40:40 +01:00
hathach
3a54a67f3d
add 52840 serial bootloader
2018-02-13 13:32:47 +07:00
hathach
3bb45511fa
add feather52840 board
2018-02-13 12:26:34 +07:00
arturo182
9962ea6449
nrf: Change pin names on DKs to match silkscreen
...
Quite a big revamp of the make-pins script, it is now used on each
build to generate the pin files, so the static ones are not needed
anymore.
2018-02-12 22:41:19 +01:00
arturo182
a7cde0e49a
nrf: Fix pca10040 support
...
Works with no SD, or s132 2.0.1 and 5.0.0.
2018-02-07 23:41:21 +01:00
arturo182
8bfdaa89b9
nrf: Remove SAMD mentions carried over while copying files
2018-02-07 22:44:27 +01:00
arturo182
05bd5d4ee6
nrf: Remove nRF51 boards and files, update README
2018-02-07 22:44:13 +01:00
arturo182
29ae4cdd1c
nrf: Fix building pca10056 without SD
2018-02-07 22:41:26 +01:00
arturo182
1de2ee6884
nrf: Implement ticks, add gamepad module and example
2018-02-05 20:48:25 +01:00
arturo182
76f5c01798
nrf: Get the port working on pca10056 (nRF52840)
2018-02-05 20:38:41 +01:00
arturo182
fed9087274
nrf: Add flash section for fatfs for no SD pca10056
2018-02-02 20:31:47 +01:00
Kevin Townsend
d5af898999
Added note on REPL over NUS
2018-01-18 11:32:47 -08:00
hathach
5e6f113779
add REPL via bleuart
2018-01-18 11:32:47 -08:00
microbuilder
fda065ea89
Minor scan example cleanup
2018-01-18 11:32:47 -08:00
microbuilder
e2ebcbe514
Simple BLE scanner example
2018-01-18 11:32:47 -08:00
microbuilder
178925640b
Moved comment to avoid abbreviation
2017-12-27 21:13:39 +01:00
microbuilder
a14bfeba64
Merge branch 'nrf52_3.x' of github.com:microbuilder/circuitpython into nrf52_3.x
2017-12-22 12:03:41 +01:00
microbuilder
60feb1a9aa
Added .gitattributes for ZIP bin support
2017-12-22 12:03:25 +01:00
Kevin Townsend
b3928288f0
Add files via upload
2017-12-22 12:02:15 +01:00
Kevin Townsend
8dcd9cc35c
Delete feather52_bootloader_5.0.0_s132_single.zip
2017-12-22 12:00:41 +01:00
Kevin Townsend
de72f7fabb
Delete feather52_bootloader_2.0.1_s132_single.zip
2017-12-22 12:00:34 +01:00
microbuilder
a3289c3c2f
Added D13 for standard LED examples
2017-12-22 11:42:33 +01:00
microbuilder
393bc9bce9
Removed leftover code snippet
2017-12-22 11:39:40 +01:00
microbuilder
c868b66f5b
Minor typo removed in path
2017-12-22 11:33:17 +01:00
microbuilder
60a23f0fb6
nRF52 update with internal file system support
2017-12-21 13:49:14 +01:00
Kevin Townsend
ce75a21e50
Revert "Supervisor REPL support for ports/nrf/boards/feather52"
...
This reverts commit 92113dde81
.
2017-11-23 13:38:38 +01:00
Kevin Townsend
92113dde81
Supervisor REPL support for ports/nrf/boards/feather52
2017-11-23 09:22:11 +01:00
Kevin Townsend
237cc954e3
Fixed feather52 DFU support
2017-11-10 09:17:24 +01:00
Ayke van Laethem
d18bf876e3
ports/nrf: Add WT51822-S4AT board.
2017-10-08 23:23:11 +02:00
Glenn Ruben Bakke
44e2cb415f
ports/nrf: Moving nrf51/52 port to new ports directory
2017-10-04 21:46:48 +02:00