Commit Graph

10252 Commits (2ac978fd530af1db0adda130a05e3d7bd9f0914a)

Author SHA1 Message Date
jeromecoutant f7c392eb75 reduce IAR heap and stack size for small targets 2017-04-07 14:01:41 +01:00
Mahadevan Mahesh 88b3a7b1a5 Issue 3763: Reduce heap allocation in the GCC linker file
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-04-07 14:01:35 +01:00
Mahadevan Mahesh 4d3a34ee29 K66F: Move bss section to m_data_2 Section
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-04-07 14:01:29 +01:00
Tony Wu 95ccafa7f6 tools - turn off page alignment of sections
By default, ld sets page alignment of sections to 0x8000, which bloats
up elf file size. This behavior is unnecessary for MCU.

Example:

1. page alignment on

mbed.elf file size 144936

Program Headers:
  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  LOAD           0x008000 0x00000000 0x00000000 0x00400 0x00400 R   0x8000
  LOAD           0x008400 0x00000400 0x00000400 0x00010 0x00010 R   0x8000
  LOAD           0x008410 0x00000410 0x00000410 0x0ab3c 0x0ab3c RWE 0x8000
  LOAD           0x018000 0x20000000 0x0000af4c 0x008d0 0x008d0 RW  0x8000
  LOAD           0x01b81c 0x0000b81c 0x0000b81c 0x00000 0x00004 RW  0x8000
  LOAD           0x020000 0x1fff0000 0x1fff0000 0x00000 0x00400 RW  0x8000
  LOAD           0x0188d0 0x200008d0 0x200008d0 0x00000 0x08860 RW  0x8000

2. page alignment off

mbed.elf file size 91792

Program Headers:
  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  LOAD           0x000114 0x00000000 0x00000000 0x00400 0x00400 R   0x4
  LOAD           0x000514 0x00000400 0x00000400 0x00010 0x00010 R   0x1
  LOAD           0x000528 0x00000410 0x00000410 0x0ab3c 0x0ab3c RWE 0x8
  LOAD           0x00b068 0x20000000 0x0000af4c 0x008d0 0x008d0 RW  0x8
  LOAD           0x00b938 0x0000b81c 0x0000b81c 0x00000 0x00004 RW  0x1
  LOAD           0x00b938 0x1fff0000 0x1fff0000 0x00000 0x00400 RW  0x1
  LOAD           0x00b938 0x200008d0 0x200008d0 0x00000 0x08860 RW  0x8

Signed-off-by: Tony Wu <tonywu@realtek.com>
2017-04-07 14:01:22 +01:00
Michel Jaouen bf96039159 USBHOST : fix device disconnection from hub during hub port reset 2017-04-07 14:01:15 +01:00
jeromecoutant f50accc03c NUCLEO_L011K4 remove unsupported tool chain files 2017-04-07 14:01:09 +01:00
Bradley Scott 72c7cedf12 STM32: Correct I2C master error handling
If I2C slave support is included, then the I2C error handler would
always reset the I2C address, resulting in incorrectly changing the
I2C state to listen for a controller configured as I2C master.  This
change conditionalizes the address setting to only occur if the
controller was in slave mode when the error occurred.
2017-04-07 14:01:03 +01:00
Seppe Stas 79c79a4347 Fixed OBOE in async serial tx for NRF52 target, fixes #4002 2017-04-07 14:00:57 +01:00
Jimmy Brisson 80756e9d7a Add some type checking of configs
Before, the types were not checked and just expected. The old behavior
would cause lots of tracebacks, or, much worse, convert things like:
```
{
     "target_overrides": {
        "*": {
		"target.macros_add": "CONFIG_GPIO_AS_PINRESET"
        }
     }
}
```
into a definition of each of the letters as macros that expand to
nothing, causing massive compilation problems.

I resolved this by adding some type checking to the config data. Now
there is a type check for most of the fields within a library and
application configurations.
2017-04-07 14:00:50 +01:00
Rob Meades 31d1338c82 Construct a ticker-based wait, rather than calling wait_ms(), in the C027 board startup code since, for mbed 5, wait_ms() is an RTOS function and the RTOS is not initialised at this stage in start-up. 2017-04-07 14:00:44 +01:00
Mahadevan Mahesh a0aacd607a KW24D: Add missing SPI defines and Arduino connector definitions
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-04-07 14:00:38 +01:00
Jimmy Brisson cebf64a7a3 Remove the nrf_soc_nosd directory
This removes the duplicate header files from the build. We were getting
lucky on most invocations of `mbed compile` in that these headers were
searched for after some others, but not when exporting to uvision.
2017-04-07 14:00:32 +01:00
Brian Daniels 87cc3d599a Fixing a macro to detect when RTOS was in use for the NRF52840_DK 2017-04-07 14:00:26 +01:00
Andrzej Puzdrowski 1d1df9e172 use core_util_critical_section_enter/exit instead of __enable_irq/__disable_irq 2017-04-07 14:00:19 +01:00
Ron Eldor 7e2a2ca1df Fix compilation errors on linux machine
Change path of include from '\' to '/', which works on linux as well.
2017-04-07 14:00:13 +01:00
Andrzej Puzdrowski ff5ad3ff92 Removed nrf52 targets files form nrf5_sdk13 sources. 2017-04-07 14:00:06 +01:00
Andrzej Puzdrowski 842bfc70f7 code formating, CR changes corrected spi_init() to properly handle re-initialization… #3842 2017-04-07 14:00:00 +01:00
Andrzej Puzdrowski afdbcd3db9 i2c_api implementation has been changed in order to support single byte reads and writes (the latter are used in I2CEeprom module used in CI tests, and this caused that tests-i2c-api were failing). These operations (single byte transfers) are not possible to achieve with the driver from nrf5 SDK (nrf_drv_twi), so the new implementation uses TWI HAL only. 2017-04-07 13:59:53 +01:00
Andrzej Puzdrowski 8731015202 fix mbed-os-rtos-rtx-target_cortex_m-tests-memory-heap_and_stack@IAR by increasing heap size for IAR. Corected initial MSP for ARMCC. 2017-04-07 13:59:47 +01:00
Andrzej Puzdrowski 8898650c66 Removed nRF52840 from memory constrained device list. 2017-04-07 13:59:40 +01:00
Andrzej Puzdrowski febf63b728 fix bugs: - 128 bits service's UUID discovered by a GATT client was shifted. - not possible to connect while being scanning. - not possible to scanning while being connected. for sd >= 3 whitelisting is now setups into setWhitelist method - Gap::setAddress could failed - Gap::getWhitelist wron implemenation 2017-04-07 13:59:34 +01:00
Andrzej Puzdrowski c4e6c0e938 fix: - whitelistin setup modifies identitiy flag and omits address' type. 2017-04-07 13:59:28 +01:00
Andrzej Puzdrowski b5d9db7b44 fix: Gap::setAddress implementation Gap::getPermittedTxPowerValues implemnetation 2017-04-07 13:59:21 +01:00
Andrzej Puzdrowski bb1f316ad5 Changes from CR. - fix typso, renaming, repharse commnets. - fix alghoritm of white/id lists setup functions in nRF5xGap class. 2017-04-07 13:59:15 +01:00
Andrzej Puzdrowski f7aa6e5efe fix: - bad number of pin from nRF52840 , - bad type of mask of gpio for nRF52940 - typo (object.h) - revert abort func. to spi_master driver - update twi_master driver to the newest (e8527f65e90eee6a4dd48ca55d3fc051a556320a master SDK nRF5) 2017-04-07 13:59:09 +01:00
Andrzej Puzdrowski 69919a45e5 upgrade implementationof gap::connect in case of private address and whitelisting for SD API 3 and further 2017-04-07 13:59:02 +01:00
Andrzej Puzdrowski 3a969c6748 introduce API update to (v3.x.x and further)in BLE_GAP_EVT_CONNECTED service. whitelist and identiti list settings provider now takes into account scaner filter po0licy and advertise r filter policy 2017-04-07 13:58:56 +01:00
Andrzej Puzdrowski 8c4c1bd4d6 nrf5_SDK13 update copyright clause 2017-04-07 13:58:50 +01:00
Andrzej Puzdrowski d6a7eeb94c nRF5: whitelisting update fo SD API >-3.x.x 2017-04-07 13:58:44 +01:00
Andrzej Puzdrowski 1730def8b6 add mising fds configuration 2017-04-07 13:58:38 +01:00
Andrzej Puzdrowski 0e8a393d54 NRF5_SDK13: Make BLE sources compilable - this is not redy to use! - Remove ble_advertising.h/c - it was unused, redundant code - includes for SD header ble.h were changed to headers\ble.h in order to distingusch form feature-ble BLE.h - btle_init() introduced PM for disable <B>privacy</B> for API 3 and further. - temporary removed or mocked real implemantation of whitelist-ing support functionalities: btle_security.createWhitelistFromBondTable , gap::startAdvertising, gat::startRadioScan, gap::stopAdvertising Gap::generateStackWhitelist, Gap::getStackWhiteIdentityList-(mock) - Characteristic Descriptor Discoverer - aligned to the apply SD API - long uuid service's read spupport - add BLE features support to sdk configurations file - publicate sdk's id_manager.ah() function. - cutted out f. app_error_handler for mbed-os - removed PACKED definition form app_util_platform (redefined by mbed-os) - Gap::setAddress - allign to new SD API using peer manager - extend Gap::getPermittedTxPowerValues for nRF52840 2017-04-07 13:58:32 +01:00
Andrzej Puzdrowski baaa6086e6 nrf52840: add workaround for RTC errata 20 include thered main stack for cmsis rtos 2017-04-07 13:58:25 +01:00
Andrzej Puzdrowski 60d90ac939 initial creation of nRF52840 BLE target implementation "NRF5_SDK13" as a copy of "NRF5" 2017-04-07 13:58:19 +01:00
Andrzej Puzdrowski 9ff6e8120a Enabled nRF52840_DK's compilation for IAR IDE: - corected scater & startup file for IAR EW - fix warnings caused by port_api.c, ble_radio_notification.c, nrf_drv_spi.c (for IAR it was error), serial_api.c 2017-04-07 13:58:12 +01:00
Andrzej Puzdrowski b7dc228f5f make nRF52840 target compilable for ARM compiler - enable fstorage in sdk config - remove files of modules: bootloader, DFU bootloader and UICR setings 2017-04-07 13:58:06 +01:00
Andrzej Puzdrowski 2b9de59387 to be commented 2017-04-07 13:57:59 +01:00
Andrzej Puzdrowski 4a38ec8b83 ported-fixed for nRF52840 port + serial + analog + pin description + gpio + cmsis vector opp + gcc startup/scater file 2017-04-07 13:57:53 +01:00
Andrzej Puzdrowski b313873683 + description of the NRF52840_DK target + mbed RTx setings for nRF52840
fix build of test for NRF52840
+ few sdk's missing filess
- few sdk's unvanted files
corect mbed HAL implementation to changes made in sdk v13
2017-04-07 13:57:47 +01:00
Andrzej Puzdrowski 5362dd46a1 fix: align nRF5 v13 sdk struct to origin 2017-04-07 13:57:41 +01:00
Andrzej Puzdrowski 2fd4b4b4a9 fix- sdk updste script bug causing losing of nested directory when coping file by forced directory. 2017-04-07 13:57:35 +01:00
Andrzej Puzdrowski a43acb3d01 move s140 headers to headers directory add softdevices compiled inetl-hex files 2017-04-07 13:57:29 +01:00
Andrzej Puzdrowski 37a7fa566b Update nRF5 SDK sources from version v11 to the version nRF5_SDK_13.0.0-1.alpha_055eef3 using .\targets\TARGET_NORDIC\TARGET_NRF5_SDK13\porting_tools\sdk_update.py and .\targets\TARGET_NORDIC\TARGET_NRF5_SDK13\porting_tools\replace_headers.py
files .\targets\TARGET_NORDIC\TARGET_NRF5_SDK13\TARGET_MCU_NRF52832\sdk\softdevice\s132\headers\nrf_ble*.h
renamed to .\targets\TARGET_NORDIC\TARGET_NRF5_SDK13\TARGET_MCU_NRF52832\sdk\softdevice\s132\headers\ble*.h
by hand.
2017-04-07 13:57:23 +01:00
Andrzej Puzdrowski 704122fcd2 merge nRF528xx sdk sources into one directory 2017-04-07 13:57:13 +01:00
Andrzej Puzdrowski 8e18e8dd3b Initial commit of NRF52840 target as the copy of NRF52832 and NRF52_DK. 2017-04-07 13:57:06 +01:00
jeromecoutant 91a097bd4f Correct ARDUINO pin 2017-04-07 13:56:58 +01:00
Martin Kojtal 50b3418e45 Merge pull request #4025 from ARMmbed/release-candidate
Release candidate for mbed-os-5.4.2
2017-03-29 10:58:25 +01:00
Seppo Takalo 0edca5ad20 Update mbed-trace
* commit 'c8a16cc274fbbb074909690a78a9d2aaf5411d5a':
  Squashed 'features/FEATURE_COMMON_PAL/mbed-trace/' changes from 31e338c23..af5f59cd2
2017-03-28 09:28:14 +01:00
Anna Bridge 378c10b6ff Update MBED_LIBRARY_VERSION to v139 2017-03-24 20:48:22 +00:00
Steven Cooreman 691564aab3 Stop using device_has for non-mbed options
As asked by @0xc0170 in PR #3934, we won't be using device_has for indicating RF/Crypto features any longer. RF config options moved to the SL_RAIL lib.json, crypto config options will come with mbedTLS integration.
2017-03-24 20:48:20 +00:00
Steven Cooreman fe0700e31c Pass Travis
Removing device_name for devices that haven't shown up in the Keil package manager yet to avoid Travis from tripping on our PR
2017-03-24 20:48:07 +00:00