Commit Graph

480 Commits (c98b0d0b03bd111d47cbe0ae8d6545103a42b9e1)

Author SHA1 Message Date
Martin Kojtal b47064ae65
Merge pull request #10933 from tymoteuszblochmobica/chache
Nordic NRF52832 cache ON
2019-07-05 10:09:59 +01:00
George Beckstein f2b88362fb Apply same resolution fix to nRF52832 targets 2019-07-01 12:22:04 -04:00
George Beckstein b08a26bfa0 Fix SAADC resolution set in sdk_config. analogin_read_u16 assumes 12-bit range but config was set to 10 bit range causing incorrect readings to be returned. 2019-07-01 12:09:27 -04:00
Tymoteusz Bloch 1af0fe89b8 Nordic NRF52832 onboard instruction cache is turned ON to increase MCU performance 2019-07-01 15:08:53 +02:00
Martin Kojtal d71db32154
Merge pull request #10881 from AGlass0fMilk/fix-nrf52-critical-region-api
Fix Nordic/Mbed Critical Section API Inconsistency (In Builds w/o Softdevice)
2019-07-01 09:18:10 +01:00
George Beckstein 15cd907d35
Fix alignment 2019-06-24 08:34:54 -04:00
George Beckstein f548f558da Fixed bug causing Nordic drivers to use a different critical section API from Mbed. This caused conflicts when Nordic's critical section API would globally reenable interrupts while Mbed still expected to be in a critical section. 2019-06-20 14:54:10 -04:00
Maciej Bocianski fcde82ba4f HAL I2C: adds missing DEVICE_I2C guards 2019-06-19 23:08:55 +02:00
Anna Bridge 07f1e068a9
Merge pull request #10689 from AGlass0fMilk/nrf52840-usbphy-implementation
nRF52840 USB Device Implementation
2019-06-18 16:28:20 +01:00
Anna Bridge 378e997e25
Merge pull request #10753 from desmond-blue/feature-fix-nrf52-uart-count
Fix nrf52 enabled uart count and enable uart0/1
2019-06-12 14:50:12 +01:00
desmond.chen d5624b6ec6 Fix nrf52 enabled uart count and enable uart0/1 2019-06-12 15:36:09 +08:00
Martin Kojtal 489bd10626
Merge pull request #10629 from trowbridgec/add-target-ep-agora
Add support for the Embedded Planet Agora target
2019-06-06 14:50:14 +01:00
Chris Trowbridge 7531c2bb56 Remove unneeded custom_board.h file 2019-05-30 14:16:29 -04:00
George Beckstein 5386b87693 Removing systick edit from sdk_config.h 2019-05-28 10:48:09 -04:00
George Beckstein d8fbdfcac3 Disabling systick 2019-05-28 10:48:09 -04:00
George Beckstein 002df471e0 Changed formatting, check if endpoint is stalled in unstall. Added errata header 2019-05-28 10:48:09 -04:00
George Beckstein 1ab27aff1f Finished compatibility changes for nrfx renaming 2019-05-28 10:48:09 -04:00
George Beckstein 2bd024d174 Fixing compatibilities with new nrfx drivers 2019-05-28 10:48:09 -04:00
George Beckstein bd2605cce9 Configured sdk for enabling USB. Preliminary implementation of USB for nRF52840 2019-05-28 10:48:09 -04:00
Chris Trowbridge f81130dd23 Update licenses for EP_AGORA target 2019-05-23 11:30:25 -04:00
RFulchiero 3343022f70 Remove redundant legacy files and definition of PACKED
* The following v14.2 files are removed from nrfx/legacy:
  nrf_drv_clock.h
  nrf_drv_common.h
  nrf_drv_gpiote.h
  nrf_drv_spi.h
  nrf_drv_twi.h
  nrf_drv_uarth.h
* Remove unneeded references to "nrfx_glue.h" and "nrf_drv_common.h"
* Remove the definition of PACKED from app_util_platform.h (already defined
  in mbed_toolchain.h)
2019-05-23 11:31:40 +08:00
RFulchiero 8550fd0ed2 Fix preprocessor conditionals for AC6 build 2019-05-23 11:31:39 +08:00
RFulchiero 5c276f2c0e Fix SOFTDEVICE_NONE builds and clean up
* Update all scatterfiles to define MBED_RAM_START and MBED_RAM_SIZE.  These
get defined in mbed_lib.json when building with a SoftDevice but were missing
when no SoftDevice is brought in.
* Remove SDK 14.2 SoftDevice files.
* Add missing header file to qspi_api.c.
2019-05-23 11:31:38 +08:00
RFulchiero 2690f0f8bc Update QSPI in the SDK to support long frame mode
* Carry forward changes made to v14.2SDK to support long frame mode
(from commit 2a72bb67a3).
* Fixed a few driver calls from rebase
2019-05-23 11:31:35 +08:00
RFulchiero 8237229530 Rebase to master in preparation for v5.12.0 2019-05-23 11:31:35 +08:00
Desmond Chen 4e8eed07e5 Fix nrf section iter macro check 2019-05-23 11:31:33 +08:00
Naveen Kaje e8e1ef2a70 NRF52: reloc_vector_table: check the RTS pin settings in code
Move the check from preprocessor to the if condition
2019-05-23 11:31:33 +08:00
Desmond Chen c048a34e00 Add BLE feature to mbed_lib.json of SoftDevice 2019-05-23 11:31:32 +08:00
RFulchiero f8e2b7e679 Update file header at TARGET_NRF52 level
- Update (c) year and company name
 - Add SPDX-License-Identifier
 - Impacted files:
    - Files touched for SDK15 port
    - Files added in 2018
2019-05-23 11:31:32 +08:00
RFulchiero cf162cdbab Remove duplicate file 2019-05-23 11:31:31 +08:00
Desmond Chen d20ca05a68 Fix SoftDevice configuration on NRF52_DK 2019-05-23 11:31:31 +08:00
Desmond Chen b69dc2bdae Update BLE SoftDevice from SDK14 to SDK15
- Adjust memory for SoftDevice
    - Enable PRIO=5 for interrupt priority check
    - Change NRF_SD_BLE_API_VERSION to 6
    - Add handle and buffer for advertising and scanning
    - Remove guard for phy update
    - Change scatter files and mbed_lib.json for PR #8607
2019-05-23 11:31:31 +08:00
Desmond Chen 2fbc20f9b1 Fix timer1 irq configuration 2019-05-23 11:31:30 +08:00
Naveen Kaje b17601ef43 NRF52: Cleanup unused code 2019-05-23 11:31:29 +08:00
Naveen Kaje 8eaf87cd50 NRF52: serial: fix build warnings 2019-05-23 11:31:29 +08:00
RFulchiero e9a3ca6259 Set the PWM clock prescaler back to default (1MHz clock) 2019-05-23 11:31:29 +08:00
RFulchiero 501000e6a2 Changes required for rebase:
- Brought in new nrfx APIs
 - Brought in PPI additions
 - Removed dead code for RTC
2019-05-23 11:31:28 +08:00
RFulchiero 36c70a1c78 Enabling NRFX_PPI_ENABLED for serial_api updates 2019-05-23 11:31:26 +08:00
RFulchiero 74cb69873c Cleanup for feature release
* Update TARGET_NRF5x/README.md to improve "Changing SoftDevice" section
  and added section on NRF52840 CryptoCell310 Support
* Update the file list in TARGET_SDK_15_0/TARGET_SOFTDEVICE_COMMON/README.md
* Add missing CR-LF to Nordic-provided SDK file
* Rename a header file in the TARGET_SOFTDEVICE_S112 tree
2019-05-23 11:31:26 +08:00
RFulchiero 2a968d4d35 Revert "NRF52: Fix vector table"
This reverts commit 3d2fa535a71b7bad08c6a91a31d74f4492c8948c.

This was a breaking change for the "MBR" and "NONE" builds.
After testing it was also determined that copying the vector
table a second time wasn't required for the "FULL" build.
2019-05-23 11:31:26 +08:00
Ralph F 742d10fcc2 Add missing SoftDevice build support (MBR, NONE, OTA)
- Add MBR, NONE and OTA SoftDevice build options for S132 and S140
- Add S112 SoftDevice (single build option)
- Some folder restructuring in TARGET_SOFTDEVICE_COMMON was required
2019-05-23 11:31:25 +08:00
RFulchiero 3e3ac27698 Remove dead #define PORT_SHIFT
nRF5x PinNames.h never utilized PORT_SHIFT so removed for clarity after
user commented on it.
2019-05-23 11:31:24 +08:00
RFulchiero fa84352752 Fix build for nRF51 (fewer common files with nRF52)
The 15.0 SDK doesn't support the nRF51 so it must continue to use the legacy
NRF drivers.  Thus the original common_rtc.c, gpio_api.c and us_ticker.c are
restored and placed under TARGET_NRF5x/TARGET_NRF51.

Likewise the modified common_rtc.c, gpio_api.c and us_ticker.c are moved to
TARGET_NRF5x/TARGET_NRF52 so they are excluded from nRF51 builds.
2019-05-23 11:31:23 +08:00
RFulchiero e85106129a Updates after rebase with Mbed master (circa OS v5.10.1)
* Remove NRF_SDH_CLOCK parameters from mbed_lib.json
* Bring in QSPI for nRF52840
* Migrate legacy QSPI driver to SDK v15 (nrfx_qspi.h)
* Remove outdated comment in i2c_api.c
2019-05-23 11:31:23 +08:00
Naveen Kaje 6064ef30e9 NRF52: Fix vector table
Ensure that vector table gets initialized properly. The table that we
initialize in startup_nrf52840.S gets wiped out as the section is
declared as noinit. Fix this by implementing the weak function mbed_sdk_init
that inits the vector table.
2019-05-23 11:31:22 +08:00
RFulchiero f79531414f nRF52_DK: Use mbed_lib.json to set app_offset (MBED_APP_START)
When the SoftDevice (SD) is enabled we need to set the app_offset
to 0x26000 to make room for the SoftDevice.  If we let the build
tools self-manage this, MBED_APP_START is coming out at 0x25000
which is not correct for the Nordic 15.0 SDK.

The app_offset value is translated to MBED_APP_START by the build
infrastructure.  We were hard coding MBED_APP_START in the scatter
and ld files as a temporary measure while testing.  This now sets
it properly if the SD is being brought in.
2019-05-23 11:31:22 +08:00
RFulchiero 317598604a nRF52832 needs NRFX_RNG_ENABLED to use the legacy driver 2019-05-23 11:31:22 +08:00
Naveen Kaje 35c14ebbe3 NRF52832: enable UART 2019-05-23 11:31:21 +08:00
Naveen Kaje d875c2ba2e NRF: enable PRS (Peripheral Resource Sharing) for NRF52832 and NRF52840 2019-05-23 11:31:21 +08:00
Naveen Kaje 976ba7d4da NRF52: i2c_api: port from Softdevice 14.2 to 15.0 2019-05-23 11:31:20 +08:00