Commit Graph

644 Commits (d4a1b5a803c11a2196a865728488cdcf908da90b)

Author SHA1 Message Date
Martin Kojtal 8196045f20
Merge pull request #14047 from harmut01/clean_nordic_targets
Remove unsupported Nordic SoftDevice build support
2020-12-17 12:59:47 +00:00
phst ec6e865607 fix QSPI-API for NRF52 2020-12-15 17:03:34 +01:00
Harrison Mutai 1e96afbe6e Remove unsupported common SoftDevice build support 2020-12-15 12:25:07 +00:00
Harrison Mutai 8ddef46e90 Remove unsupported S140 SoftDevice build support (MBR,OTA,FULL) 2020-12-15 12:25:07 +00:00
Harrison Mutai 3879b7ca31 Remove unsupported S132 SoftDevice build support (MBR,OTA,FULL) 2020-12-15 12:25:07 +00:00
Harrison Mutai 5243adcb8c Remove unsupported S112 SoftDevice build support 2020-12-15 12:24:17 +00:00
Lingkai Dong b174edb282 MCU_NRF52832: use two-region memory layout (stack + heap) to support MicroLib
MicroLib is the lightweight C lib for the Arm toolchain and
used as the default C lib on bare metal builds with the Arm
toolchain. It requires two separate memory regions for stack
and heap.

The change is based on nRF52840.sct.
2020-11-24 16:35:02 +00:00
Martin Kojtal 76ff098e94
Merge pull request #13691 from jrobeson/drop-nordic-sdk11
Remove unused Nordic TARGET_SDK_11
2020-11-12 09:35:42 +00:00
Hugues Kamba 794e32df74 CMake: Use relative paths to list source files and directories
The absolute path is still required for listing linker
files as they are referenced from a function in the top
level CMake input source file.
2020-11-09 12:32:30 +00:00
Martin Kojtal d48415cc67 CMake nrf52480: fix startup/linker inclusion 2020-11-06 17:25:23 +00:00
Rajkumar Kanagaraj e7c0d93ad4 CMake: add mbed-os and mbed-baremetal targets
mbed-os consists of mbed-core and mbed-rtos
mbed-baremetal consists of mbed-core

The main change is for mbed-core. Changing from object library to be interface. This way it allows us to do the above to have 2 main targets for users to use.

This should be backward compatible change as mbed-os target we used contains the same files/options as previously set.
2020-11-06 17:25:22 +00:00
Hugues Kamba bf84a5b329 CMake: Rename CMake targets
* mbed-os renamed mbed-core
* mbed-os-<COMPONENT> renamed mbed-<COMPONENT>
2020-11-06 17:25:22 +00:00
Rajkumar Kanagaraj 8016a53400 CMake: replace usage of the mbed_add_cmake_directory_if_labels() function (#13754)
Directories that start with special prefixes (TARGET_, FEATURE_, COMPONENT_)  are added to the build based on Mbed target configuration from targets.json instead of calling utility function mbed_add_cmake_directory_if_labels().
2020-11-06 17:25:21 +00:00
Hugues Kamba 01ddb7d471 CMake: Fix NRF52840_DK build failure
* Remove duplicated ARM toolchain directory
* Link with archived cryptocell 310 libraries instead
  of adding them as source files
* Provide default MBED_BOOT_STACK_SIZE definition
  in scatter file as is done for GCC_ARM linker file
2020-11-06 17:25:19 +00:00
Hugues Kamba eb4102be48 CMake: Fix failure due to BLE component dir move 2020-11-06 17:25:19 +00:00
Hugues Kamba 8a74bf1d04 CMake: Add support for NRF52840_DK target 2020-11-06 17:25:15 +00:00
Martin Kojtal 61aa6817f0
Merge pull request #13724 from harmut01/license_refactor
Add license notice to Arm copyrighted source files
2020-10-16 09:09:53 +01:00
Martin Kojtal c8345a3490
Merge pull request #13595 from gutbag/add-nrf52-midi-baud-rate
Nordic: Support 31250 baud rate
2020-10-16 09:06:31 +01:00
Harrison Mutai 4fad1112e5 Add SPDX license identifier to Arm files
Add license identifier to files which Arm owns the copyright to,
and contain either BSD-3 or Apache-2.0 licenses. This is to address
license errors raised by scancode analysis.
2020-10-15 10:47:27 +01:00
Johnny Robeson 394c976f5f Remove unused Nordic TARGET_SDK_11 2020-09-30 20:22:48 -04:00
winneymj d60af095ba Fix spacing 2020-09-29 17:55:06 -05:00
winneymj 38e6bdc8f4 Fixes for nrf52840 SPIM 3 implementation. Specifically:
- Correct definition of SPI2C_INSTANCES when using SPIM vs SPI
- Use NRFX_SPIM_XFER_TRX macro vs manually filling structure.
- Fix compile error in NRFX_SPIM_DEFAULT_EXTENDED_CONFIG where ordering of members does not match structure nrfx_spim_config_t
- Use High Drive if using SPIM3 on MOSI and SCK pins.
2020-09-29 17:13:30 -05:00
Martin Kojtal 468372e759
Merge pull request #13492 from talorion/fix-PwmOut-resets-after-suspend
Fix pwm out resets after suspend
2020-09-10 12:40:18 +01:00
Jaeden Amero 612b148fd4 stack: armc: Workaround config passing bug
Workaround a bug where the boot stack size configuration option is not
passed on to armlink, the Arm Compiler's linker. Prefer
MBED_CONF_TARGET_BOOT_STACK_SIZE if present, as this is what the
configuration system should provide. Fall back to MBED_BOOT_STACK_SIZE
if MBED_CONF_TARGET_BOOT_STACK_SIZE is not defined, as in the case of
buggy tools. If both MBED_CONF_TARGET_BOOT_STACK_SIZE and
MBED_BOOT_STACK_SIZE are not defined, then we fall back to a hard-coded
value provided by the linkerscript. See
https://github.com/ARMmbed/mbed-os/issues/13474 for more information.
2020-09-10 10:08:38 +01:00
Hugues Kamba 2ed7403e3e NRF52: Fix failure if boot stack size is not provided
The same default value is provided in the GCC_ARM linker file.
2020-09-10 10:08:38 +01:00
Jaeden Amero 39e69d328d Use boot stack size from config system
To allow overriding of the boot stack size from the Mbed configuration
system, consistently use MBED_CONF_TARGET_BOOT_STACK_SIZE rather than
MBED_BOOT_STACK_SIZE.

Fixes #10319
2020-09-10 10:08:38 +01:00
Mark Lamb 9ffd462a28 Support 31250 baud rate 2020-09-09 20:13:11 +01:00
talorion b03d80fd08 pwmout - fixed compile errors 2020-09-02 13:39:17 +02:00
talorion dda71f0262 pwmout - NRF52 - add read methods for period and pulsewidth 2020-09-02 13:39:12 +02:00
winneymj e5f32ff3f9 Add SPIM description to README.md 2020-08-17 10:27:46 -05:00
winneymj b72adbe5c0 Fix defines 2020-08-16 12:42:18 -05:00
winneymj 21c928e6e5 Fix detection of enabled SPIM 2020-08-15 08:02:49 -05:00
winneymj 6dbeece347 Fix detection of enabled SPIM 2020-08-14 19:43:24 -05:00
winneymj 5249a9ad31 Remove duplicate code 2020-08-05 19:46:54 -05:00
winneymj 541a2c8664 Remove DEBUG 2020-08-05 19:40:54 -05:00
winneymj 40831f7018 remove NRFX_SPIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED 2020-08-05 19:35:42 -05:00
winneymj 0b80e3c302 Disable SPIM & enable SPI 2020-08-05 19:33:47 -05:00
winneymj 32b5f2d3fb Revert "Initial commit"
This reverts commit dec6e3600f.
2020-08-05 19:30:16 -05:00
winneymj e4e7dcc1ff First stab at implement SPIM DCX 2020-08-03 20:10:07 -05:00
winneymj b6a1ec7716 Mix SPI with SPIM 2020-08-02 11:21:03 -05:00
winneymj f65cd0f461 Add Int handler for SPIM3_IRQHandler 2020-07-31 19:58:39 -05:00
winneymj 2d5776a757 Fix more SPIM 2020-07-31 16:29:49 -05:00
winneymj c6bc6513bd Enable nrfx_spim_1_irq_handler 2020-07-31 16:12:49 -05:00
winneymj bcacf2136d Fix include 2020-07-29 19:39:19 -05:00
winneymj db23d53d32 Enable SPIM and bring into code. 2020-07-29 19:27:19 -05:00
winneymj 65ed9d42fc Move SPI_PSELSSO = p41 2020-07-20 19:16:48 -05:00
winneymj 4c299fe96d Add USBConsole.h so that default printf can be sent to USBSerial 2020-07-19 15:23:52 -05:00
winneymj 24624d25ab Fix missing pins 2020-07-15 20:48:43 -05:00
winneymj dec6e3600f Initial commit 2020-07-15 16:15:10 -05:00
Vance Farren 70b0acaa33 clean up dead code 2020-06-18 08:56:40 -04:00