Commit Graph

4173 Commits (aceeb269d15c39eae85da79031f43a8147df818c)

Author SHA1 Message Date
Martin Kojtal ad37c84060 Merge branch 'disco-l072_adc_vbat' of https://github.com/bcostm/mbed-os into dev_rollup 2018-11-24 20:50:55 +00:00
Martin Kojtal 0ec41ce277 Merge branch 'F0_adc_vbat' of https://github.com/bcostm/mbed-os into dev_rollup 2018-11-24 20:50:45 +00:00
Martin Kojtal a4362f02ea Merge branch 'master' of https://github.com/ganesh-ramachandran/mbed-os into dev_rollup 2018-11-24 20:50:05 +00:00
Martin Kojtal e1b60b1e58 Merge branch 'disco_f746ng_bootloader' of https://github.com/bcostm/mbed-os into dev_rollup 2018-11-24 20:49:55 +00:00
Martin Kojtal b16569dc3f
Merge pull request #8838 from 0xc0170/dev_rollup
Rollup v2 for 5.11rc1
2018-11-24 21:37:02 +01:00
Martin Kojtal d7f2e3056c
Merge pull request #8737 from kapi90/cm3ds_lp_requirements
Add low power implementations for CM3DS
2018-11-24 19:49:57 +01:00
David Saada e9c25e23a5 KVStore & derived classes: design docs, implementation & configuration
Implement the following:
KVStore base class
TDBStore class
FileSystemStore class
SecureStore class
Global APIs
Configuration framework
Design documentation
2018-11-24 17:43:35 +02:00
Martin Kojtal 52aea31655
Merge pull request #8702 from SenRamakri/sen_CrashReportingImpl
Crash Reporting implementation
2018-11-23 20:24:53 +01:00
Martin Kojtal 7a6b166b1a Merge branch 'realtek-rtl8195am-wifi-headerfile-updates' of https://github.com/M-ichae-l/mbed-os into dev_rollup 2018-11-23 18:37:28 +00:00
bcostm a35deac578 DISCO_F746NG: add bootloader support 2018-11-23 10:52:13 +01:00
Ganesh Ramachandran 811ff21c70 Corrected detect_code for TMPM4G9 2018-11-23 12:34:22 +05:30
Martin Kojtal 7995e8beac
Merge pull request #8756 from ashok-rao/br-Murata-BL241
Add Murata WSM-BL241 as new target
2018-11-22 17:55:24 +01:00
Martin Kojtal 78bd53121a
Merge pull request #8291 from theotherjimmy/fix-ff-lpc546xx
*LPC546XX: Finish MCU Refactoring
2018-11-22 17:31:18 +01:00
jeromecoutant baec3b9e90 STM32 remove html release notes files 2018-11-22 16:27:59 +01:00
Deepika c0981a358a Addressed review comments from team-nuvoton 2018-11-22 09:07:21 -06:00
Deepika 1d8c00eccb Update parition sizes in M2351 - based on #8607
RAM/ROM sizes in tools were updated to report entire device size, and in M2351
they were used earlier to report secure/non-secure partition size.

M2351 files are updated to take full RAM/ROM device size and derive secure
and non-secure partition size based on that.
2018-11-22 09:07:21 -06:00
Martin Kojtal 60b5547b65
Merge pull request #8784 from c1728p9/nrf52_serial_fixes
NRF52 serial fixes
2018-11-22 13:43:00 +01:00
Martin Kojtal 37630b237d
Merge pull request #8778 from jeromecoutant/PR_LPTIM_DIV
STM32 LPTICKER with LPTIM : reduce clock feature
2018-11-22 09:31:57 +01:00
Russ Butler 4acdf7012c Disable all NRF52 serial interrupts on init
When initializing serial disable all interrupts as some of these may
have been enabled by a bootloader. This ensures that the NRF52
serial driver remains compatible with any bootloader version.
2018-11-21 14:37:20 -06:00
ccli8 e36c074359 [Nuvoton] Support DAC 2018-11-21 17:09:35 +08:00
Przemyslaw Stekiel f05d642422 TARGET_MCUXpresso_MCUS: fix lp ticker init function
In case when lp ticker is already initialized the ticker interrupt should be disabled.
2018-11-21 08:54:49 +01:00
c_jin 62e34ecb38 Add SPDX identifier 2018-11-21 11:38:53 +08:00
Cruz Monrreal II a5bef60afe Revert "Merge pull request #8272 from NXPmicro/Ensure_RTC_OSC_Start"
This reverts commit 3d859ca1d6, reversing
changes made to 03f4623b80.
2018-11-20 16:58:11 -06:00
Bence Káposzta 5dd6d19253 Merge branch 'master' into cm3ds_lp_requirements
Change-Id: I3c687694ee924938ec08ea40d0ddbcaf20dd0a73
2018-11-20 19:54:33 +01:00
bcostm 55d4db5676 NUCLEO_F030/F070: remove ADC_VBAT pin definition 2018-11-20 16:45:23 +01:00
bcostm df74f64a4a DISCO_L072CZ: remove ADC_VBAT pin definition 2018-11-20 16:03:12 +01:00
jeromecoutant f9ddc5a08e STM32 LPTICKER with LPTIM optimisation 2018-11-20 15:03:44 +01:00
Russ Butler 9ce3965ae2 Add flow control for RX FIFO filling
When the RX FIFO is nearly full use flow control to stop receiving
data.
2018-11-19 19:21:46 -06:00
Russ Butler 59bb79b05b NRF52 Serial overhaul
Make the following enhancement:
-Support serial port use without flow control
-Prevent dropped bytes by updating flow control handling
-Remove dead code

Serial port use without flow control:
In the prior implementation there was a window of time between
reloading DMA buffers after a timeout where bytes could be dropped.
This is because the uart needed to be turned off in order to flush the
bytes in the DMA buffer.

This change configures the DMA buffer to only receive one byte at a
time so there is no need to disable the uart to flush it. After each
byte is received the DMA transfer will be over so the transfer will
never be partially complete and need flushing. Since the uart is
always on it is safe to use it even without flow control.

Prevent dropped bytes by updating flow control handling:
To prevent dropped bytes due to high latency the flow control handling
of the RTS line was configured to be asserted automatically by
hardware after each byte. Once the CPU has read the byte and setup
the next receive buffer the RTS line is deasserted to the transfer can
continue. This ensure that when flow control is enabled data won't be
lost due to interrupt latency.

Remove dead code:
With the above changes there is a lot of dead code, such as the timer
handling code. This patch removes the code that is no longer used.
2018-11-19 19:21:45 -06:00
Jimmy Brisson 75200144ad Update mbed_rtx.h switch for new target naming 2018-11-19 09:37:17 -06:00
Jimmy Brisson ab84d2bf33 *LPC546XX: Finish MCU Refactoring
### Description

The Mbed 2 release was broken for FF_LPC546XX as it would include
the entire mbed 2 build of the LPC546XX. This PR seperates these 2
builds completely by:

 * Removing non-shared extra labels from the MCU_LPC546XX target
 * Moving the target implementation to a shared target directory

### Pull request type

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Breaking change
2018-11-19 09:37:17 -06:00
Martin Kojtal 00c5b56e32
Merge pull request #8683 from NXPmicro/feature-qspi-lpc546xx
Feature qspi lpc546xx
2018-11-19 13:11:44 +00:00
c_jin 5a15f810a6 Error modification 2018-11-19 09:41:17 +08:00
chao_king 787cdbe6ee
Delete added information (GD32F307VG) 2018-11-18 20:51:37 +08:00
chao_king 36a27326c2
Delete startup_gd32f30x_cl.s 2018-11-18 20:37:22 +08:00
chao_king 2b90f34ed7
Delete startup_gd32f30x_cl.s 2018-11-18 20:37:06 +08:00
chao_king db27eab41c
Delete startup_gd32f30x_cl.s 2018-11-18 20:36:43 +08:00
chao_king 612662117c
Delete startup_gd32f30x_cl.s 2018-11-18 20:36:00 +08:00
c_jin 2b9071afe6 conflicts resolve 2018-11-18 20:19:19 +08:00
chao_king 9ee4af6096 Remove the "device_name": "GD32F307VG"
Our MCU is not in CMSIS Pack and later I will submit a PR that adds back the value with the data from the released CMSIS Pack.
2018-11-18 19:42:13 +08:00
chao_king b6e455c428 Add it to replace startup_gd32f30x_cl.s 2018-11-18 19:31:45 +08:00
chao_king 16ff28db31 Add it to replace startup_gd32f30x_cl.s 2018-11-18 19:31:45 +08:00
chao_king 0728dde170 Add it to replace startup_gd32f30x_cl.s 2018-11-18 19:31:45 +08:00
chao_king c8cadd6f12 Add it to replace startup_gd32f30x_cl.s 2018-11-18 19:30:32 +08:00
chao_king d2779a6a3b Delete a button definition 2018-11-18 19:30:32 +08:00
chao_king bb1e4a72d8 Add support for GD32F307VG
Add GD32F307VG MCU information to target.json
2018-11-18 19:30:31 +08:00
chao_king 1afb50d7a7 Re add target support for GD32F307VG
1. Mainly change TARGET_Gigadevice --> TARGET_GigaDevice
2. Add license header
2018-11-18 19:26:04 +08:00
c_jin 644cc537cf Consistent with the remote repo and add GD32F307VG 2018-11-18 10:59:14 +08:00
Russ Butler 21dd8e40ab Configure NRF52 uart on interrupt attach
When attaching an irq to serial call nordic_nrf5_serial_configure.
This ensures the serial is ready to receive data at the correct
baudrate.
2018-11-16 17:35:54 -06:00
Marcus Chang bb98ce082e Make serial_putc for NRF52 non-blocking
Busy-wait before sending a charecter instead of after. If
serial_writeable has been called first, the busy-wait loop will
be skipped.

Added initialization code to ensure NRF_UARTE_EVENT_TXDRDY is
armed correctly.
2018-11-16 17:32:53 -06:00
Russ Butler 4cda158e55 Fix uart race condition dropping bytes on NRF52
In nordic_nrf5_uart_event_handler if the events NRF_UARTE_EVENT_ENDRX
and NRF_UARTE_EVENT_RXSTARTED become pending after the check for
NRF_UARTE_EVENT_ENDRX but before the check for
NRF_UARTE_EVENT_RXSTARTED the RX DMA buffers will be setup incorrectly
by nordic_nrf5_uart_event_handler_rxstarted because active_bank hasn't
been updated. This cause dropped and incorrect data.

This patch fixes that problem by adding a second check for
NRF_UARTE_EVENT_ENDRX after checking for NRF_UARTE_EVENT_RXSTARTED
and skipping processing if NRF_UARTE_EVENT_ENDRX is set. The
subsequent interrupt will process both in the correct order. This
ensures that these events cannot be handled out of order and thus fixes
the corruption.
2018-11-16 17:30:31 -06:00
Senthil Ramakrishnan f1926c0ea9 Fix linker script errors 2018-11-16 14:00:00 -06:00
Senthil Ramakrishnan ef8c1c3cb6 Linker script modifications for crash data region 2018-11-16 13:59:59 -06:00
Ashok Rao ff55961c1f Changing license header 2018-11-16 15:38:11 +00:00
jeromecoutant 1ec222f268 STM32 LPTICKER with LPTIM : reduce clock feature 2018-11-16 15:34:57 +01:00
Ashok Rao fce42ae28e Incorporating review comments 2018-11-16 14:28:08 +00:00
Mahesh Mahadevan f8f9faa841 LPC566XX LPCXpresso: Update to add QSPI support
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-11-16 07:56:29 -06:00
Mahesh Mahadevan b3d0b5c210 Remove QSPI support for FF_LPC546XX target
This needs a device specific file

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-11-16 07:56:29 -06:00
Mahesh Mahadevan 4bbf0025b8 LPC MCUXpresso: Add QSPI support
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-11-16 07:56:28 -06:00
Qinghao Shi d157e59267 reformat to following codeing style rules 2018-11-16 10:29:31 +00:00
Qinghao Shi 78b186ec56 Update code according to the reviews
* move emac driver to COMPONENT folder
* use mbed rtos C++ API instead of CMSIS API
2018-11-16 10:29:31 +00:00
Qinghao Shi eea7245d41 update targets.json enable EMAC driver for FVP_MPS2 platforms 2018-11-16 10:29:30 +00:00
Qinghao Shi bbe3b131dc add lan91c111 drivers for FVP MPS2 platfrom 2018-11-16 10:22:42 +00:00
Ashok Rao ec78ca937f Adding LED defines for CI 2018-11-16 09:51:32 +00:00
chao_king 218fee80b6
Delete startup_gd32f30x_cl.s 2018-11-16 11:47:38 +08:00
chao_king a4a19fae31
Delete startup_gd32f30x_cl.s 2018-11-16 11:47:18 +08:00
chao_king 37744d88a1
Delete startup_gd32f30x_cl.s 2018-11-16 11:46:54 +08:00
chao_king 200c28b7ca
Add it to replace startup_gd32f30x_cl.s 2018-11-16 11:46:24 +08:00
chao_king 6adb0482c0
Add it to replace startup_gd32f30x_cl.s 2018-11-16 11:45:43 +08:00
chao_king 7e480f0f2f
Add it to replace startup_gd32f30x_cl.s 2018-11-16 11:31:31 +08:00
chao_king 369eec8a19
Delete startup_gd32f30x_cl.s 2018-11-16 11:08:38 +08:00
chao_king c566757b82
Add it to replace startup_gd32f30x_cl.s 2018-11-16 11:07:51 +08:00
Ashok Rao 1bdfcba99b Removing unnecessary pin defines 2018-11-15 18:39:17 +00:00
Ashok Rao 8ef1378644 Adding Murata WSM-BL241 as new target 2018-11-15 18:28:24 +00:00
Martin Kojtal 22185ba229 Merge branch 'wio3g' of https://github.com/SeeedJP/mbed-os into dev_rollup 2018-11-15 14:03:13 +00:00
Martin Kojtal 9a252cd218 Merge branch 'feature-emac-mxrt1050' of https://github.com/NXPmicro/mbed into dev_rollup 2018-11-15 13:58:27 +00:00
Martin Kojtal 88ef552d1a Merge branch 'master' of https://github.com/kyliuxing/mbed-os into dev_rollup 2018-11-15 13:58:04 +00:00
zhangzhenwu c97d343470 wifi-headerfile-updates
1, add "extern "C" {}  " to "wifi_ind.h" for being called by CPP files.
2018-11-15 17:02:03 +08:00
chao_king d44ef2735d
Delete a button definition 2018-11-15 17:00:08 +08:00
chao_king 0d4bb5c7f0
Add support for GD32F307VG
Add GD32F307VG MCU information to target.json
2018-11-15 16:55:42 +08:00
Yoshihiro TSUBOI dad6ede7f5 [Wio 3G] Added default I/F type and pin defs 2018-11-15 17:38:03 +09:00
chao_king 9752a9b1c9 Re add target support for GD32F307VG
1. Mainly change TARGET_Gigadevice --> TARGET_GigaDevice
2. Add license header
2018-11-15 16:01:52 +08:00
Martin Kojtal 1ac4d9b430
Merge pull request #8680 from kfnta/initial_components
Add PSA build components to build configuration for non-PSA targets
2018-11-15 07:31:09 +00:00
Mahesh Mahadevan fffb37534e LPC546XX: Update the SPIFI SDK driver
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-11-14 09:00:34 -06:00
Anna Bridge 4d07bcbd6e
Merge pull request #8579 from jarvte/cellular_context
Major refactoring: changing Network inheritance from CellularNetwork to new class CellularContext
2018-11-14 14:37:19 +00:00
Mahesh Mahadevan d5cf53aba1 MIMXRT1050_EVK: Update the SDK clock driver
This fixes build failures seen with GCC_ARM

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-11-14 07:13:07 -06:00
Mahesh Mahadevan 12c6b1bd88 MIMXRT1050EVK: Add ENET support
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-11-14 07:13:07 -06:00
Bence Kaposzta ee7cefc868 Add RTC and Sleep to CM3DS
This commit represents the second stage of the low power implementations
that are required from Mbed 5.10 onwards. Besides the default hal
implementations (rtc_api.c and sleep.c), the PL031 RTC's native driver
needed to be added. Due to HW limitations in SSE-050 and the CM3DS,
Deep Sleep couldn't be implemented, therefore it is functionally
identical to Sleep (WFI).

Change-Id: Ibed2bdb452f48c98024dc7ef07fb51a4425e0a80
Signed-off-by: Bence Kaposzta <bence.kaposzta@arm.com>
2018-11-14 11:10:26 +01:00
Bence Kaposzta 1b792317e4 Implement LP and us tickers to CM3DS
This commit represents the first stage of the low power implementations
that are required from Mbed 5.10 onwards. The LP ticker has been
implemented using a CMSDK Dual Timer's both timers (HW prescaler needed
to operate in the specified frequency domain), whereas the us ticker
uses one CMSDK Timer. Besides the default hal implementations (lp_ticker.c
and us_ticker.c), the CMSDK Dual Timer's native driver needed to be added.

Change-Id: I0b16b93dfac7753bebf430a2ce77761cb9c43ee5
Signed-off-by: Bence Kaposzta <bence.kaposzta@arm.com>
2018-11-14 11:10:09 +01:00
Oren Cohen 4091a4c8c7 Add PSA build components to build configuration for non-PSA targets
* Added PSA components to base Target in targets.json
* Fix all targets declaring components
2018-11-14 10:40:37 +02:00
Cruz Monrreal II 798ffd0d5a Merge branch 'fm_flash' of ssh://github.com/jamesbeyond/mbed-os into rollup 2018-11-13 17:26:48 -06:00
Cruz Monrreal II 0499ee2783 Merge branch 'erase_flash_fix' of ssh://github.com/deepikabhavnani/mbed-os into rollup 2018-11-13 17:26:47 -06:00
Teppo Järvelin 1b3db96634 Cellular: Added missing MDMRTS and MDMCTS for TARGET_MTB_ADV_WISE_1570. 2018-11-13 09:06:40 +02:00
Yoshihiro TSUBOI cd2a5835f8 fixed year and added SPDX identifier 2018-11-13 00:03:02 +09:00
Steve Cartmell 4551d94072 Format targets.json to put the items of large lists on their own line 2018-11-12 13:57:40 +00:00
Yoshihiro TSUBOI 222b21e593 [Wio BG96] Adding platform HAL 2018-11-11 23:32:22 +09:00
shileiyu 627064297e New target UNO_91H from RDA Microelectronics. 2018-11-10 18:15:26 +08:00
Deepika 4e7cbd4d4c Add library and secure application for FlashIAP change 2018-11-09 15:12:25 -06:00
Deepika 049b5f533f Revert flash_get_value for M2351 done in PR#8589
`flash_get_erase_value` is added in hal/TARGET_FLASH_CMSIS_ALGO/flash_common_algo.c
duplicate copy of same function in targets/TARGET_NUVOTON/TARGET_M2351/flash_api.c
resulted in build issues with secure build
2018-11-09 14:17:49 -06:00
Cruz Monrreal II 0803c04d7d Merge branch 'PR_LL_GPIO' of ssh://github.com/jeromecoutant/mbed into rollup 2018-11-09 11:40:29 -06:00
Cruz Monrreal II 143a976d5d Merge branch 'stm32f407vg-flash' of ssh://github.com/productize/mbed-os into rollup 2018-11-09 11:40:28 -06:00
Qinghao Shi f7ff09d243 fix bug set a correct page size 2018-11-09 15:29:36 +00:00
Cruz Monrreal 44ee9a7af7
Merge pull request #8686 from cmonr/rollup
Rollup PR:
2018-11-09 09:14:49 -06:00
Martin Kojtal 662b744c89
Merge pull request #8324 from ganesh-ramachandran/m3hq_new_target
Add Support for TOSHIBA TMPM3HQ
2018-11-09 09:45:52 +01:00
Cruz Monrreal II b353136da1 Merge branch 'Fix_LPC_Flash_Driver' of ssh://github.com/NXPmicro/mbed into rollup 2018-11-08 13:24:26 -06:00
Cruz Monrreal II a2bdc44eee Merge branch 'fm_sdk' of ssh://github.com/jamesbeyond/mbed-os into rollup 2018-11-08 13:24:16 -06:00
Cruz Monrreal II 20fc4da5df Merge branch 'KW41Z_Add_Bootloader-Support' of ssh://github.com/NXPmicro/mbed into rollup 2018-11-08 13:24:10 -06:00
Cruz Monrreal II 6b386f5237 Merge branch 'update_peripheral_pins' of ssh://github.com/MultiTechSystems/mbed into rollup 2018-11-08 13:24:07 -06:00
Adam Heinrich 02ea9ce746 STM32F407VG: Add FLASH support 2018-11-08 17:32:39 +01:00
jeromecoutant 4cf4cf1375 STM32 GPIO : code cleaning 2018-11-08 17:26:17 +01:00
Martin Kojtal 0217f69511 Merge branch 'cm3ds_emac' of git://github.com/kapi90/mbed-os into dev_rollup 2018-11-08 09:21:38 +00:00
David Saada 542744d03c Support erase value in Flash HAL drivers, FlashIAP and block devices 2018-11-07 14:23:07 +02:00
Qinghao Shi 97ac4bb6ce Cosmetic coding changes of remove white space 2018-11-06 22:14:18 +00:00
Qinghao Shi be9e75cc47 update GCC startup script to align with armcc and iar 2018-11-06 22:11:09 +00:00
Mahesh Mahadevan 76930c0979 KW41Z: Add Bootloader support
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-11-06 12:03:26 -06:00
Leon Lindenfelser a360b0012f Update peripheral pins
1. Add missing SPI and I2C pins.
2. Remove pin definitions for pins that are no connects.
2018-11-06 08:46:38 -06:00
Ganesh Ramachandran ac7bb55105 Updated license header 2018-11-05 19:54:17 +05:30
Ganesh Ramachandran 4cbdfb380f Added MBED_APP_START and SPI pin definitions 2018-11-05 19:54:17 +05:30
Ganesh Ramachandran 7d93fb4c15 Added Support for TOSHIBA TMPM3HQ 2018-11-05 19:54:16 +05:30
Leszek Rusinowicz 6203d04630 Removed "intermediate" PSOC6 targets from buildable target list. 2018-11-02 01:15:21 +01:00
Leszek Rusinowicz 8f528277fd Added missing README files for Cypress PDL library.
hex files subfolder moved up one level to avoid license confusion.
Removed non-TLS implementation of TRNG. Removed unused crypto libraries and headers.
Replaced Cypress copyright licence per agreement.
Removed unsed eeprom emulation middleware files.
Renamed assembler files from *.s to *.S
Removed "device_name" from targets.json definitions as it is not supoprted yet.
2018-11-01 22:16:16 +01:00
Leszek Rusinowicz 7d322dcd41 Simplified M0/M4 binary merging functionality. Now, M0 binary image to be used has to be explicitely named in a json file (can be ovverriden in mbed_app.json).
Exporter hooks removed completely.
Cleanup and improvements to the comments, including removal of the redundant doxygen comments.
Code run through astyle. Additionally:
 - changes to drivers/Timer.cpp reverted
 - ipcpipe_transport.* files removed as they are not used for now,
 - fixed condition in stdio_init.cpp to perform serial initialization only when STDIO is enabled,
 - added missing resurce manager call in PWM initialization,
 - us_ticker initialization changed to use pre-reserved clock divider (to avoid resource manager call).
Changed reporting level from info to debug in PSOC6.py.
Added missing includes for function declarations in startup files.
Fixed (removed) garbadge text in psoc6_utils.c
Precompiled binaries updated for recent changes in psoc6_utils.c and moved to a separate folder; README and LICENSE files added.
2018-11-01 22:14:06 +01:00
Leszek Rusinowicz 9b1db83eaa Added required changes outside of TARGET_Cypress tree:
1. In drivers/Timer.cpp make sure that hardware timer is initialized outside of critical section.
   This is because on PSoC 6 hardware resources are shared between both cores
   and we have to make sure that the other core is not already using a particular resource.
   This mechanism is based on interprocessor communication taht cannot be handled iside of
   critical section.
2. Added support for post-binary hook function for PSoC 6 targets, so the hex image for M0+ CPU core
   can be merged with M4 core image for the final image.
3. Added possibility to use hook function from exportes, so the M0+ hex image could be included
   in the generated project.
4. Included hex images in the build dependency list, so the update of image is catched by the
   build process.
2018-11-01 20:19:21 +01:00
Leszek Rusinowicz f906aac096 Added BLE support based on CORDIO stack. 2018-11-01 20:15:57 +01:00
Leszek Rusinowicz d37026d063 Updated TARGET_Cypress sub-tree for FUTURE_SEQUANA target:
1. Complete set of HAL drivers for all peripherals of CY8C63xx PSoC chips.
2. Cypress PDL library updated to official 3.0.1 version.
3. Tree structure reorganized and cleaned up:
 + TARGET_Cypress
 +--+ TARGET_PSOC6+                  -> code & libs applicable to all PSoC 6 based devices
    +--+ TARGET_CY86XX               -> code & libs applicable to PSoC 63 based devices
    |  +--- TARGET_MCU_PSOC6_M0      -> code & libs applicable to PSoC6 Corted M0+ core
    |  +--- TARGET_MCU_PSOC6_M4      -> code & libs applicable to PSoC6 Corted M0F core
    |
    +--+ TARGET_FUTURE_SEQUANA       -> code applicable to Sequana board, both cores
       +--- TARGET_FUTURE_SEQUANA_M0 -> code applicable only to M0+ core on Sequana board
2018-11-01 20:15:56 +01:00
Leszek Rusinowicz ec22815fee Initial version with support for PSoC 6 CY8C63XX and both cores using updated PDL 3.0.1 beta. 2018-11-01 20:15:52 +01:00
Adrien Chardon 2c533d4693 Initial support for PSoC 6. 2018-11-01 20:15:51 +01:00
bcostm 38a5f1e0f7 DISCO_F769NI: enable bootloader in targets.json 2018-10-31 10:15:17 +01:00
bcostm 3e547e2101 DISCO_F769NI: add definitions for bootloader 2018-10-31 10:15:17 +01:00
Cruz Monrreal 1bbcfff8f3
Merge pull request #8566 from u-blox/github8520issue
Wifi: ublox fix to keep the credentials stored
2018-10-30 08:47:58 -05:00
Bence Kaposzta 9e6b1246a4 This commit adds EMAC driver for CM3DS that uses an SMSC LAN 9220
Ethernet controller. To ensure proper operation, some methods
needed to be updated in the SMSC9220's native driver as well.
It passes all related Greentea tests, however when supervised by
the Python environment it tends to fail because of Timeout.

The current timeout is set to 1200s that seems to be a little bit short
to finish all test cases, the timeout happens towards the end of the
last test case.

Change-Id: I914608c34828b493a80e133cd132537a297bfc84
Signed-off-by: Bence Kaposzta <bence.kaposzta@arm.com>
2018-10-29 15:30:47 +01:00
Cruz Monrreal 503066a736
Merge pull request #8559 from productize/stm32f407vg-rng
STM32F407VG: Add TRNG support
2018-10-29 08:50:43 -05:00
Ammad Rehmat 74ce0b78a4 fixes the credentials storage, copies them internally rather than just a pointer to external storage 2018-10-29 17:32:41 +05:00
Cruz Monrreal 870c3bce59
Merge pull request #8554 from bcostm/l4R5zi_data_alignment
NUCLEO_L4R5ZI: Fix alignment of execute region to 8byte boundary
2018-10-27 18:30:57 -05:00
Cruz Monrreal 63946d56d8
Merge pull request #8452 from u-blox/ublox_odin_driver_os_5_v3.5.0_rc1
ble: update ODIN drivers to v3.5.0 RC1
2018-10-27 09:50:12 -05:00
Cruz Monrreal 01f864eb13
Merge pull request #8553 from bcostm/F413ZH_bootloader
STM32F413ZH: Add bootloader support
2018-10-27 09:22:41 -05:00
Cruz Monrreal 4798a91f2e
Merge pull request #8223 from c1728p9/deep_sleep_wakeup_fix
Improve RTOS behavior with deep sleep
2018-10-27 08:45:33 -05:00
Cruz Monrreal a5b757312d
Merge pull request #8292 from marcuschangarm/fix_flow
Fix hardware flow control on NRF52 series
2018-10-26 15:44:52 -05:00
Adam Heinrich 28a01aeb29 STM32F407VG: Add TRNG support 2018-10-26 17:01:33 +02:00
bcostm 8560e47c31 STM32F413ZH: fix wrong flash size for ARM compiler 2018-10-26 14:16:18 +02:00
bcostm 66ab546200 NUCLEO_L4R5ZI: fix 8-bytes data alignment 2018-10-26 10:58:00 +02:00
bcostm 468e1b8334 STM32F413ZH: enable bootloader in targets.json 2018-10-26 10:31:35 +02:00
bcostm 61b3270835 STM32F413ZH: add defines for bootloader 2018-10-26 10:31:11 +02:00
Marcus Chang ab04ff1219 Remove debug flow control from NRF52_DK and NRF52840_DK
Currently flow control is not supported by the CI and enabling it
causes unwanted side effects.
2018-10-25 12:24:48 -07:00
Yossi Levy d9a84c42cf Remove SPI_PERSISTENT_MEM_CS macro and replace it with SPI_CS 2018-10-25 12:10:48 +03:00
Cruz Monrreal 140f3e20d6
Merge pull request #8508 from micgur01/master
Update linker scripts for bootloader target L496GZ
2018-10-24 19:08:41 -05:00
Cruz Monrreal dd2d9ee4be
Merge pull request #8319 from c1728p9/checksum_546xx_vector_table
Checksum the vector table of the LPC546XX
2018-10-24 19:08:22 -05:00
Marcus Chang 1ad3b49599 Fix hardware flow control on NRF52 series
Due to buggy flow control logic in the UARTE, the stop signal
is not being set as it is supposed to when the the module is
not ready to receive data.

This commit signals the sender to halt transmitting when a DMA
buffer is full and only continue again when the atomic FIFO
buffer has been emptied. This allows platforms with hardware
flow control to minimize all buffers and rely on flow control
instead.
2018-10-24 13:11:12 -07:00
Russ Butler 50316d00bd Improve RTOS behavior with deep sleep
Only deep sleep when the wakeup time is more than
MBED_CONF_TARGET_DEEP_SLEEP_LATENCY ms in the future.
This ensures that RTOS events are handled at the correct time. Note -
when deep sleep is allow interrupt latency may still be as high as
10ms.
2018-10-24 15:02:56 -05:00
Mahesh Mahadevan 48d4a45345 MCUXpresso: Update LPC Flash driver program page function
Handle the case where the number of bytes to write is not aligned
to page size

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-10-24 08:20:00 -05:00
micgur01 6c191c0241 code review for Update linker scripts for bootloader target L496GZ 2018-10-24 11:17:56 +00:00
micgur01 2215a9ab5e code review for Update linker scripts for bootloader target L496GZ 2018-10-24 09:48:05 +00:00
Martin Kojtal 5b25b6643d
Merge pull request #8478 from JarkkoPaso/fhss_timer_dev
Fhss timer dev
2018-10-24 09:43:13 +01:00
Martin Kojtal ab6429f4af
Merge pull request #8474 from naveenkaje/NRF_RTS_Followon_Fix
NRF52 : Fix UART RTS initialization
2018-10-24 09:40:00 +01:00
Russ Butler 06c825fb83 Checksum the vector table of the LPC54XXX
LPC devices require a checksummed vector table to boot. To ensure
this most programmers automatically compute the checksum when
programming flash. This causes problems with verification if the
original image does not have a checksummed vector table. This is because
when reading the data back the checksum location differs from the
original image.

To fix this verification failure this patch adds a post build hook to
checksum the vector table of the LPC54XXX. This fixes flash
verification failures due to the checksum not matching.
2018-10-23 13:54:04 -05:00
Cruz Monrreal 0db896036c
Merge pull request #8485 from NXPmicro/feature-qspi-kinetis
Feature qspi kinetis
2018-10-23 12:38:11 -05:00
Cruz Monrreal 41bffe1c87
Merge pull request #8352 from offirko/offir-mbed-qspif
QSPI SFDP Flash Block Device
2018-10-23 10:48:28 -05:00
Naveen Kaje 7beb8d3f4b NRF52 : Fix UART RTS initialization
The preprocessor based macro check #if evaluates all
enums as 0 and hence the code does not get compiled.
Since move this to a runtime check where the pin variable
can be correctly evaluated.

Delete mbed_overrides.c as it has a target specific mbed_sdk_init() to
resolve linking problem.

This is a follow on patch to:
https://github.com/ARMmbed/mbed-os/pull/8046
2018-10-23 09:44:06 -05:00
Cruz Monrreal 5bf901b3a4
Merge pull request #8493 from jeromecoutant/PR_PREDIVS
STM32 RTC : Prescaler macro issue
2018-10-23 09:08:46 -05:00
micgur01 534883046d change mode to 664 2018-10-23 12:58:52 +00:00
micgur01 ff4b567537 Update linker scripts for bootloader for L496GZ 2018-10-23 12:57:05 +00:00
Jarkko Paso de2fce2104 LPC408X: Cstack size reduced from 8K to 1K with IAR 2018-10-23 15:09:12 +03:00
Cruz Monrreal 93c5573b4d
Merge pull request #8486 from NXPmicro/Update_LPC546XX_Core_Freq
LPC54608: Raise the core freq on LPC54608 targets
2018-10-22 11:43:13 -05:00
Cruz Monrreal 353e8bd0b0
Merge pull request #8348 from maclobdell/add-k66-default-sd-storage-master
Add K66F default sd storage
2018-10-22 11:31:12 -05:00
jeromecoutant a9552232e4 STM32 RTC : Prescaler calculation issue 2018-10-22 15:58:32 +02:00
Offir Kochalsky 638951aa86 Merge remote-tracking branch 'upstream/master' into offir-mbed-qspif 2018-10-21 08:51:49 +03:00
Mahesh Mahadevan 118bde5a14 LPC54608: Raise the core freq on LPC54608 targets
This is incorrectly set to a lower value

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-10-19 12:49:28 -05:00
Cruz Monrreal e942582045
Merge pull request #8454 from ashok-rao/br-BL654-new
Adding Laird BL654 as a new MTB target
2018-10-18 17:03:22 -05:00
Cruz Monrreal 3d859ca1d6
Merge pull request #8272 from NXPmicro/Ensure_RTC_OSC_Start
MCUXpresso: Ensure the RTC OSC is running at bootup on Kinetis platforms
2018-10-18 15:16:13 -05:00
Mahesh Mahadevan 9dc3f8c19a KL82Z FRDM: Update the KL82Z Freedom board for QSPI
Add the QSPI pin defines, clock information and flash details

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-10-18 12:14:27 -05:00
Mahesh Mahadevan 858e536f1a K82F FRDM: Update the K82F Freedom board for QSPI
Add the QSPI pin defines, clock information and flash details

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-10-18 12:14:26 -05:00
Mahesh Mahadevan 9f64e46de2 K82F, KL82Z: Update register access mode for QSPI IPCR register
Add 16-bit access mode when writing the transfer size to prevent
the QSPI transaction from starting

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-10-18 12:14:26 -05:00
Mahesh Mahadevan 3bd6235032 K82F, KL82Z: Update the QSPI SDK driver to the latest version
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-10-18 12:14:25 -05:00
Mahesh Mahadevan 6b1bef26f6 QSPI: Remove QSPI from UBRIDGE and USENSE target
This needs a device specific file

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-10-18 12:14:24 -05:00
Mahesh Mahadevan e28fb7466b MCUXpresso: Add the QSPI HAL driver
This should support QSPI on Kinetis devices

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-10-18 12:14:23 -05:00
Cruz Monrreal 8a5b9ff893
Merge pull request #8400 from AdamZhang0124/realtek-rtl8195am-usticker-patch
This PR retrieves the TimerSync function to fix the lockup issue
2018-10-18 11:00:56 -05:00
Mahesh Mahadevan ebf31c67f0 MCUXpresso: Ensure the RTC OSC is running at bootup on Kinetis platforms
This is a fix for Issue 5348.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-10-18 08:55:48 -05:00
Cruz Monrreal c9adf3cef4
Merge pull request #8307 from NXPmicro/Add-Support_RapidIoT
Add support for RapidIoT
2018-10-18 08:15:07 -05:00
Ashok Rao bee4429487 QSPI pins added 2018-10-18 11:30:11 +01:00
Mac Lobdell 099654c661
Ensure storage feature is not added to K66F 2018-10-17 07:42:50 -07:00
Ashok Rao 06a5b1e76a Addressing comments w.r.t alignments 2018-10-17 15:36:13 +01:00
Ashok Rao 6f720e86a1 Adding Laird BL654 as a new MTB target 2018-10-17 14:47:17 +01:00
Cruz Monrreal c37dc5fea8
Merge pull request #8425 from OpenNuvoton/nuvoton_m487_fix_button
M487: Fix SW2/SW3 interchange error in NUMAKER_IOT_M487
2018-10-17 08:35:46 -05:00
Cruz Monrreal 2daab38194
Merge pull request #8302 from JanneKiiskila/wait_ms
Use wait_ms(int) instead of wait(float)
2018-10-17 08:34:47 -05:00
aqin 2ac6cff107 BLE support added 2018-10-17 14:19:14 +05:00
Cruz Monrreal 00e3064f58
Merge pull request #8437 from NXPmicro/Fix_TRNG_HAL
MCUXpresso: Fix for the TRNG HAL driver
2018-10-16 16:19:49 -05:00
Cruz Monrreal af19a395e0
Merge pull request #7923 from ganesh-ramachandran/master
Add Support for Toshiba TMPM4G9
2018-10-16 12:52:19 -05:00
Cruz Monrreal 461d59ab41
Merge pull request #8427 from jeromecoutant/PR_L4_8343
STM32L4 : sleep issue
2018-10-16 10:42:14 -05:00
Cruz Monrreal 5c136cc5cc
Merge pull request #8403 from bcostm/fix_issue_8372_serial
STM32: fix issue with serial_is_tx_ongoing function
2018-10-16 10:25:37 -05:00
Cruz Monrreal deaa4fa0ff
Merge pull request #8374 from TomoYamanaka/improve_armcc_linkerscript
Renesas : Improve ARMCC linker script
2018-10-16 10:23:11 -05:00
Cruz Monrreal 50e6de7df2
Merge pull request #8046 from naveenkaje/UART_HWFC_Error_Fix_Upstream_Based
NRF52 serial: Fix UART console RX
2018-10-16 10:22:25 -05:00
Martin Kojtal 9b59a3bd0d
Merge pull request #8429 from OpenNuvoton/nuvoton_m2351_fix_led
M2351: Fix LED_GREEN naming error
2018-10-16 07:33:51 -07:00
Mahesh Mahadevan 9a47915791 MCUXpresso Flash Driver: Update Flash driver to support RAPIDIOT
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-10-16 08:52:15 -05:00
maclobdell fd08cc94f2 Add support for NXP Rapid IoT prototyping kit
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-10-16 08:52:14 -05:00
Janne Kiiskila de77695b08 Use wait_ms instead of wait(n)
Small space savings, the casting from int to float will bloat
the code a bit. Using wait(1.0f) for example would avoid it,
but seems a bit silly to use floats for anything unless
really needed (in embedded products).
2018-10-16 10:00:54 +03:00
Mahesh Mahadevan f29a597411 MCUXpresso: Fix for the TRNG HAL driver
Apply the fix from K64F TRNG HAL driver.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-10-15 16:00:34 -05:00
Cruz Monrreal a6651b868b
Merge pull request #8317 from yossi2le/add-flashiap-bd-as-default
Add FlashIAP block device as default block device for WISE 1570
2018-10-15 10:22:34 -05:00
Cruz Monrreal e0e915f5db
Merge pull request #8423 from cmonr/rollup2
Rollup PR: Additional doc PRs + lingering need:CI PRs
2018-10-15 10:04:04 -05:00
bcostm 4017dea77f STM32: typo corrections 2018-10-15 11:14:18 +02:00
ccli8 67e0b7faf0 [M2351] Fix LED_GREEN naming error 2018-10-15 16:34:18 +08:00