Commit Graph

4421 Commits (3bd3aca6db0a5cacd7e46ae7ed47507f83ad1aa3)

Author SHA1 Message Date
Qinghao Shi 55bd5d5c44 FastModel: rename SMM_MPS2.h to FVP_MPS2.h 2019-01-02 22:32:04 +00:00
Qinghao Shi a7de0a5991 FastModel: share the same MPS2 platform header to all targets 2019-01-02 22:12:07 +00:00
Qinghao Shi f0f2a5d440 FastModel: remove SMSC9220 related definitions from SDK 2019-01-02 22:07:03 +00:00
ccli8 39f705e033 [Nuvoton] Fix crypto_misc.cpp compile error with RTOS-absent
Replace Mutex with PlatformMutex which supports RTOS-absent
2019-01-02 15:53:31 +08:00
ccli8 388076d36d [Nuvoton] Remove unnecessary mbed_rtos_storage.h in crypto_misc.cpp 2019-01-02 14:06:03 +08:00
Cruz Monrreal 51143eab02
Merge pull request #8815 from ThunderSoft123/master
Add platform TT_M3HQ
2018-12-27 21:11:28 -06:00
Cruz Monrreal 1bf7e1cb32
Merge pull request #9171 from OpenNuvoton/nuvoton_nuc472_hardfault
Nuvoton: Fix NUC472 hard fault in SMCC tests
2018-12-27 21:09:42 -06:00
Lu 5fa127313f realtek-rtl8195am-Hide_Debugging_Messages
This PR addresses the issue of #8903.
A new boolean variable 'debug' is added to turn off the display of debugging message (by default). It can be turned on when needed.

Description
1.	Add new boolean parameter ‘debug’ in function ‘RTWInterface’ in file "RTWInterface.h".
2.	Add conditional statement to enable/disable variable ‘GlobalDebugEnable’ in file "RTWInterface.h" to control whether debugging message should be displayed.
2018-12-27 13:35:32 +08:00
ccli8 17fb5b7ff2 [Nuvoton] Fix UART flow control CTS/RTS
Configure RTS pin outout to active low when RTS is disabled. This allows the peer to be able
to send data if its CTS is still enabled.
2018-12-25 18:21:11 +08:00
Anna Bridge 70956ee9bb
Merge pull request #8955 from ARMmbed/dreemkiller_LPC54608_fix
Bug fix for UART issue on LPC54608 - issue #7398
2018-12-24 12:54:54 +00:00
Anna Bridge 52a45e71d3
Merge pull request #9180 from kjbracey-arm/stm_dont_skip_rtc_write
Revert "STM32 RTC : skip rtc_write if possible"
2018-12-24 12:54:01 +00:00
Cruz Monrreal a8fa6ec38b
Merge pull request #9174 from ashok-rao/MTB_ODIN_v2_fixes
MTB_ODIN_v2_fixes
2018-12-22 12:33:53 -06:00
Donatien Garnier 8415d25b5e Disable MPU support on NRF52x platforms 2018-12-21 12:12:26 +00:00
Ashok Rao 64e9ad0b11 MTB_ODIN_v2_fixes
1. Removed redundant code comments. Added relevant ones for MTB pins.
2. More SPI_CS pins added for peripherals on the MTB.
3. Disabled LSE_Clock as it is not present on the MTB in targets.json
2018-12-21 11:40:43 +00:00
Kevin Bracey 535b439362 Revert "STM32 RTC : skip rtc_write if possible"
`rtc_write` must start the RTC. `time()` uses `rtc_write(0)` to start
the RTC if it is not already enabled, but this check made that not
work.

There's no point trying to optimise this case in a HAL - if we wanted
`set_time()` to protect against users making pointless adjustments, the
implementation should be there. But even then, you might want different
levels of hysteresis depending on application, so it's probably best
left to applications.

This reverts commit 9da5e48941.
2018-12-21 13:12:34 +02:00
panyz0725@thundersoft.com 0146c21924 Add MPU to fix CI failed 2018-12-21 14:43:16 +08:00
panyz0725@thundersoft.com 9efce259b8 Fix Expecting object 2018-12-21 10:22:02 +08:00
panyz0725@thundersoft.com 2c25b45417 Set __ICFEDIT_size_cstack__ =1k 2018-12-21 10:03:09 +08:00
ThunderSoft_mbed_os 79e57f0869 Update us_ticker.c 2018-12-21 10:03:09 +08:00
ThunderSoft_mbed_os 7718186a03 Update spi_api.c 2018-12-21 10:03:09 +08:00
ThunderSoft_mbed_os d421a165e4 Update sleep.c 2018-12-21 10:03:09 +08:00
ThunderSoft_mbed_os d883eb8f83 Update pwmout_api.c 2018-12-21 10:03:09 +08:00
ThunderSoft_mbed_os 076b5a64b0 Update port_api.c 2018-12-21 10:03:09 +08:00
ThunderSoft_mbed_os 35d088e5ba Update pinmap.c 2018-12-21 10:03:09 +08:00
ThunderSoft_mbed_os 5c706251c6 Update objects.h 2018-12-21 10:03:08 +08:00
ThunderSoft_mbed_os 07b23d84b0 Update i2c_api.c 2018-12-21 10:03:08 +08:00
ThunderSoft_mbed_os 198fe703b8 Update gpio_object.h 2018-12-21 10:03:08 +08:00
ThunderSoft_mbed_os df5fe31bac Update gpio_api.c 2018-12-21 10:03:08 +08:00
ThunderSoft_mbed_os a04498c4bc Update device.h 2018-12-21 10:03:08 +08:00
ThunderSoft_mbed_os 7c20ed8396 Update analogout_api.c 2018-12-21 10:03:08 +08:00
ThunderSoft_mbed_os 87293ce15c Update analogin_api.c 2018-12-21 10:03:08 +08:00
ThunderSoft_mbed_os 425d7e164f Update PortNames.h 2018-12-21 10:03:08 +08:00
ThunderSoft_mbed_os 39ee74e4d6 Update PinNames.h 2018-12-21 10:03:08 +08:00
ThunderSoft_mbed_os 0271bf7e3f Update PeripheralNames.h 2018-12-21 10:03:08 +08:00
ThunderSoft_mbed_os 0bd2efe60d Update mbed_rtx.h 2018-12-21 10:03:08 +08:00
ThunderSoft_mbed_os 568ea3187c Update us_ticker.c 2018-12-21 10:03:08 +08:00
panyz0725@thundersoft.com 7a24b6aded Add platform TT_M3HQ 2018-12-21 10:03:08 +08:00
Cruz Monrreal c1226ffbd8
Merge pull request #8916 from jeromecoutant/PR_F439
STM32F429/STM32F439 alignment
2018-12-20 12:08:42 -06:00
Martin Kojtal 4d44e1c0b6
Merge pull request #9134 from jeromecoutant/PR_TICKDELAY4
STM32: enable TICKLESS
2018-12-20 16:30:36 +00:00
Martin Kojtal efc0239518
Merge pull request #9166 from u-blox/ublox_c030_ADC
Ublox C030 ADC internal channels added
2018-12-20 16:29:25 +00:00
cyliangtw d5e643fd41 [Nuvoton] Fix NUC472 hard fault in SMCC tests 2018-12-20 19:42:42 +08:00
Martin Kojtal 3a2f6e924a
Merge pull request #8832 from j3hill/nRF52840_QSPI
nRF52840_DK: "qspi_api.c" check read/write WORD alignment, set clock frequency divider
2018-12-20 10:37:55 +00:00
Martin Kojtal 99778bd6a5
Merge pull request #8777 from jeromecoutant/PR_LP_RTC
STM32 LPTICKER with RTC : better sleep time
2018-12-20 10:26:44 +00:00
Alastair D'Silva aa80b7c70a Don't use define checks on DEVICE_FOO macros (partner code)
The DEVICE_FOO macros are always defined (either 0 or 1).

This patch replaces any instances of a define check on a DEVICE_FOO
macro with value test instead.

Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
2018-12-20 20:02:29 +11:00
TomoYamanaka 65b4e72928 Modify IRQ handler processing without RTOS at Cortex-A IAR Compiler
In case of unusing RTOS, there is no processing against IRQ handler and it causes a linker error.
Therefore, I added this processing with WEAK attribute. Also I added cmain.S file at cmsis/TARGET_CORTEX_A folder.
2018-12-20 16:24:07 +09:00
TomoYamanaka dd8d8ea3c7 Modify IRQ handler processing without RTOS at Cortex-A GCC Compiler
In case of unusing RTOS, IRQ handler executes "while(1)" and it causes a program freeze.
Therefore, I revised this processing.
2018-12-20 16:19:04 +09:00
TomoYamanaka 240060ee69 Modify IRQ handler processing without RTOS at Cortex-A ARM Compiler
In case of unusing RTOS, IRQ handler executes "while(1)" and it causes a program freeze.
Therefore, I revised this processing. Also I added the heap setting processing and set the align to 8 byte.
2018-12-20 16:12:54 +09:00
mudassar-ublox a7ccb65e80 Ublox C030 ADC internal channels added 2018-12-20 11:00:36 +05:00
Cruz Monrreal e17b14adaf
Merge pull request #9157 from lrusinowicz/sequana_m0_firmware_update
PSOC6: Updated default M0 image to not modify UDB configuration when…
2018-12-19 13:35:56 -06:00
Cruz Monrreal 07947f4647
Merge pull request #9155 from lrusinowicz/srm_fixes
PSOC6: Fixing merge issue for pull request #9009
2018-12-19 13:16:20 -06:00
Cruz Monrreal 9edbcd77df
Merge pull request #9081 from OpenNuvoton/nuvoton_refine_crypto_ac
Nuvoton: Fix crypto AC management
2018-12-19 13:09:47 -06:00
Cruz Monrreal 6f576009c7
Merge pull request #9061 from kjbracey-arm/more_mpu_work
More MPU work
2018-12-19 12:32:54 -06:00
Leszek Rusinowicz e448b2b1c2 [PSOC6] Updated default M0 image to not modify UDB configuration when comming out of a deep sleep state.
On Mbed this is performed only on M4 core.
2018-12-19 14:07:11 +01:00
Leszek Rusinowicz 0f6a35ba73 Fixing merge issue for merge into master. 2018-12-19 13:35:07 +01:00
ccli8 ca44675086 [Nuvoton] Fix crypto AC management
1. For SHA AC, use atomic flag to manage its ownership.
   (1) Nuvoton SHA AC doesn't support SHA context save & restore, so S/W
       SHA fallback has been supported before. To make non-blocking 'acquire'
       semantics clearer, introduce 'try_acquire' to substitute for 'acquire'.
   (2) No biting CPU due to mechanism above.
   (3) No deadlock due to mechanism above.
2. For AES/DES/ECC AC, change to mutex to manage their ownership.
   (1) Change crypto-misc.c to crypto-misc.cpp to utilize C++ SingletonPtr
       which guarantees thread-safe mutex construct-on-first-use.
   (2) With change to crypto-misc.cpp, add 'extern "C"' modifier to CRYPTO_IRQHandler()
       to avoid name mangling in C++.
   (3) No priority inversion because mutex has osMutexPrioInherit attribute
       bit set.
   (4) No deadlock because these AC are all locked for a short sequence
       of operations rather than the whole lifetime of mbedtls context.
   (5) For double mbedtls_internal_ecp_init() issue, it has been fixed in upper
       mbedtls layer. So no need to change ecc init/free flow.
2018-12-19 10:17:39 +08:00
Russ Butler adf253e1fd Update MPU ram/rom split for Nuvoton M2351
Move the start of RAM from 0x10000000 to 0x20000000 on the
NUMAKER_PFM_M2351. This allows the target to work correctly.
2018-12-18 17:35:10 -06:00
j3hill 2c4a3d5980 NRF52840_DK: QSPI check Read/Write WORD alignment, and properly set
clock frequency divider

These changes are to enable QSPI functioanlity
for the NRF52840DK.
2018-12-18 13:55:10 -06:00
Cruz Monrreal 187d2d0104
Merge pull request #9102 from OpenNuvoton/nuvoton_support_boot_stack_option
Nuvoton: Support boot stack size configuration option
2018-12-18 13:22:46 -06:00
Cruz Monrreal d969d46bbf
Merge pull request #9084 from AdamZhang0124/realtek-rtl8195am-Network_Socket_Update
Realtek-rtl8195am-Network_Socket_Updates
2018-12-18 10:31:25 -06:00
Cruz Monrreal 15765d6286
Merge pull request #9126 from fluidblue/master
Fix multiple definitions of '__aeabi_atexit'
2018-12-18 10:30:49 -06:00
jeromecoutant ed582b0331 STM32 : Enable TICKLESS for targets with LPTIM 2018-12-18 11:57:04 +01:00
jeromecoutant 834ced6d06 STM32: update LPTICKER_DELAY_TICKS for LPTIM targets 2018-12-18 11:57:03 +01:00
Lu 1422379c24 Realtek-rtl8195am-Network Socket Updates
This PR addresses the issue of #8124.
It updates and enriches the wifi connection error type to adapt the Network Socket test plan requirement.
In the meantime, it increases the heap size that allows the transmission of larger packet size.

Description
1. Increase heap size in lwipstack\mbed_lib.json to fulfill bursty TCP and UDP transmission requirement.
2. Modify and enrich wifi connection error types in TARGET_AMEBA\RTWInterface.cpp to adapt the decision logic of the wifi test cases.
3. Add new static constants in TARGET_AMEBA\RTWInterface.h, including 'SSID_MAX_LENGTH', 'PASSPHRASE_MAX_LENGTH' and 'PASSPHRASE_MIN_LENGTH' to help verifying the validity of ssid and passphrase.

Pull request type
[x] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change
2018-12-18 17:18:32 +08:00
Martin Kojtal eda1952a74
Merge pull request #9053 from NXPmicro/Add-Support-RapidIoT-KW41Z
Rapid-IoT: Add support for the KW41Z side of the platform
2018-12-18 08:05:42 +00:00
ccli8 28b820fbf0 [NANO130] Change main thread stack size to default for stack size unification
NANO130 just has 16 KiB SRAM. User application may change it through "rtos.main-thread-stack-size"
configuration option.
2018-12-18 11:11:43 +08:00
Cruz Monrreal ff6744c85e
Merge pull request #9105 from LaurentLouf/improve-precision-duty-cycle-pwm-stm
Add some rounding to determine the pulse value for PWM for the STM target
2018-12-17 14:43:43 -06:00
fluidblue 96b345444b Removed GCC_CR toolchain for LPC11U68 2018-12-17 15:54:13 +01:00
Fluidblue c9eb60c6e2
Prevent multiple __aeabi_atexit definition linker error (GCC_CR) 2018-12-17 15:01:00 +01:00
Fluidblue 69ef8043a6
Prevent multiple __aeabi_atexit definition linker error (GCC_ARM) 2018-12-17 15:00:27 +01:00
Cruz Monrreal 64e7e468b2
Merge pull request #9089 from jeromecoutant/DEV_QSPI_TEST
STM32 QSPI update
2018-12-14 10:14:13 -06:00
Mahesh Mahadevan 3d8d65be6a Rapid-IoT: Add support for the KW41Z side of the platform
Add support for the KW41Z side of the RapidIoT platform. This requires the latest
DAPLink binary to be programmed on the RapidIoT platform, binary can be downloaded
from the below link:
https://armmbed.github.io/DAPLink/

Also, the KW41Z side on RapidIoT does not have a serial port connected to the Debug
terminal. Therefore a SerialPassThrough program should be flashed and running on the
K64F side of RapidIoT platform for the mbed tests to pass.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-12-14 06:35:43 -06:00
Laurent Louf db3f05e5fe Add some rounding to determine the pulse value for PWM for the STM target. 2018-12-14 12:08:09 +01:00
ccli8 244d4b6405 [Nuvoton] Support boot stack size configuration option 2018-12-14 17:29:55 +08:00
Cruz Monrreal 49103d8b0c
Merge pull request #8978 from JojoS62/fix-LPC1549-stack_top-linkerfile
fixed wrong __StackTop calculation
2018-12-13 18:15:58 -06:00
Cruz Monrreal f0a2b1dcb6
Merge pull request #9085 from u-blox/C030_PinName
U-blox C030 PinNames Updated
2018-12-13 18:14:52 -06:00
Anna Bridge a91dccd901
Merge pull request #9072 from theotherjimmy/toggle-memory-defines
Enable stats reporting with a flag in targets.json
2018-12-13 15:10:46 +00:00
jeromecoutant 9790f67acc STM32L4 QSPI: correct register address 2018-12-13 10:56:39 +01:00
jeromecoutant 40f6d58b89 STM32 QSPI: remove QUADSPI_BK2 as dual bank feature is not supported 2018-12-13 10:56:37 +01:00
jeromecoutant fc548cdc05 STM32 QSPIF: add DISCO_L496AG, DISCO_F746NG and DISCO_F769NI 2018-12-13 10:56:36 +01:00
jeromecoutant dfa902ec6c STM32 QSPI: frequency calculation update 2018-12-13 10:56:33 +01:00
jeromecoutant 5b5dcd8b26 Enable QSPI for DISCO F769 and L496 2018-12-13 10:56:33 +01:00
jeromecoutant b5bc128e36 STM32L496 : add QSPI definition 2018-12-13 10:56:31 +01:00
jeromecoutant 4a6bc96345 STM32F769 : add QSPI definition 2018-12-13 10:56:29 +01:00
jeromecoutant 64f8cc472c NUCLEO_F746ZG : no embedded QSPI 2018-12-13 10:56:26 +01:00
jeromecoutant 7c8de3c4e1 STM32 : removed unused QSPI pin names 2018-12-13 10:56:25 +01:00
Cruz Monrreal 27e1bc30dc
Merge pull request #9073 from vervaekejonathan/master
W7500x target ADC 6 and 7 not implemented
2018-12-12 18:46:21 -06:00
Cruz Monrreal f196942446
Merge pull request #8831 from toyowata/dev-arch_max
[Seeed Arch MAX] Add Mbed OS 5 support
2018-12-12 17:04:50 -06:00
Cruz Monrreal fda9f2ee2a
Merge pull request #9060 from scartmell-arm/fix-duplicate-keys-in-targets-json
Fix duplicate 'overrides' keys in targets.json config file
2018-12-12 17:02:05 -06:00
Cruz Monrreal 4e52240052
Merge pull request #9036 from c1728p9/rt1050_fix
Disable MPU on RT1050 due to memory map
2018-12-12 16:55:30 -06:00
test user 5de7fac91c ublox c030 pinName updated 2018-12-12 04:08:17 -12:00
vervaekejonathan 70ab75704f
Extend W7500x target with ADC 6 and 7 2018-12-12 16:23:06 +01:00
Martin Kojtal 7cd01266a9
Merge pull request #9035 from jeromecoutant/PR_L4TRNG
STM32L4: correct RNG clock source
2018-12-12 14:45:40 +01:00
Kevin Bracey 574f9fad21 nRF52840: Set mpu-rom-end to 0x1fffffff
So we have at least one test platform exercising the special case of
mpu-rom-end being 0x1fffffff, set that for nRF52840.
2018-12-12 15:44:22 +02:00
Martin Kojtal 45215c2ffa
Merge pull request #9008 from jeromecoutant/PR_NUCLEO_L4R5ZI_P
Add NUCLEO_L4R5ZI_P target
2018-12-12 14:44:22 +01:00
Kevin Bracey 02330336f2 Fix target.mpu-rom-end setting, for ARMv8-M too
targets.json was not specifying the same macro name as the code was
checking for, so setting was ineffective.

Making this work tripped up not-supported checks in ARMv8-M - rather than deal
with making this work, support it instead.

Both ARMv7-M and ARMv8-M slightly reduce code size and runtime impact if
mpu-rom-end is 0x1fffffff, using one fewer region.

This means default setup for ARMv8-M now requires 5 regions, with
mpu-rom-end set to default 0x0fffffff, but this can be put back to 4 by
changing the setting.
2018-12-12 15:44:21 +02:00
Martin Kojtal c387fec36b
Merge pull request #8725 from ChazJin/master
Add support for GD32F307VG
2018-12-12 14:42:20 +01:00
Jimmy Brisson 9dbdbe8e85 Enable stats reporting with a flag in targets.json
### Description

PR #8607 will cause problems for the NRF52832 and the NRF52840
in the online compiler starting with 5.10.2. This PR prevents this problem
by using a toggle in `targets.json` to enable these new defines for every
target except for the NRF52832 and NRF52840.

### Pull request type

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Docs update
    [ ] Test update
    [ ] Breaking change
2018-12-11 15:58:37 -06:00
Cruz Monrreal f5fdbffbe7
Merge pull request #9020 from c1728p9/enable_mpu
Revert "Turn off MPU on targets failing OOB"
2018-12-11 13:07:49 -06:00
Steve Cartmell 8c541465ed fix: Merge duplicate 'overrides' keys in targets.json config file 2018-12-11 16:19:06 +00:00
Cruz Monrreal f50403a9dc
Merge pull request #8905 from lrusinowicz/spi_fixes
SPI and deep sleep fixes for FUTURE_SEQUANA target.
2018-12-10 11:35:23 -06:00
Russ Butler f4a168bed5 Disable MPU RT1050 due to memory map
Disable the MPU on the RT1050 since this target has a memory map that
is incompatible with the default MPU driver.
2018-12-10 10:15:15 -06:00
jeromecoutant 503777d850 STM32L4: correct RNG clock source 2018-12-10 14:04:25 +01:00
Leszek Rusinowicz ea5dccaa92 FUTURE_SEQUANA deep sleep fixes:
- fixed feature rename (from DEVICE_LOWPOWERTIMER to DEVICE_LPTICKER) in all missed places
- disabled power manager callback for serial driver
2018-12-10 12:56:58 +01:00
Martin Kojtal 40e13cf28c
Merge pull request #9003 from juhoeskeli/wise_1570_mpu_enable
Revert "Merge pull request #8922 from juhoeskeli/wise_1570_mpu_disable"
2018-12-10 12:21:36 +01:00
jeromecoutant c950cc352a Add NUCLEO_L4R5ZI_P 2018-12-10 10:27:21 +01:00
Cruz Monrreal 1f329d0fc4
Merge pull request #9009 from lrusinowicz/srm_fixes
[PSOC6]: Fix for static resource manager.
2018-12-08 18:36:42 -06:00
Toyomasa Watarai 4d11ff8791 Add network-default-interface-type and remove comment 2018-12-08 15:24:43 +09:00
toyowata 91296c8417 [Seeed Arch MAX] Add Mbed OS 5 support 2018-12-08 15:24:42 +09:00
Russ Butler 7208f8c8ec Revert "Turn off MPU on targets failing OOB"
The cause of the pelion-enablement test failures for Nuvoton boards
is not caused by or related to the MPU so this patch re-enables the
MPU for these boards.

The cause of the  pelion-enablement test failures for the
UBLOX_C030_U201 has been identified and corrected so this patch
re-enables the MPU for this board.

This reverts commit b217c5fe4d.
2018-12-07 20:19:26 -06:00
Cruz Monrreal 0e3d712702
Merge pull request #8996 from jamesbeyond/fm_eth_fix
Fix uninitialized handler pointer in FastModels ethernet driver
2018-12-07 14:47:57 -06:00
Cruz Monrreal c4e913baa4
Merge pull request #8960 from jeromecoutant/PR_RTC2
STM32: avoid STM32 family name check
2018-12-07 11:23:07 -06:00
Leszek Rusinowicz 30f0bc65ce [PSOC6]: Fix for static resource manager. 2018-12-07 13:36:30 +01:00
Anna Bridge 54f53e09d8
Merge pull request #8994 from c1728p9/disable_mpu
Turn off MPU on targets failing OOB
2018-12-07 11:12:22 +00:00
Juho Eskeli bc2f8c4ffd Revert "Merge pull request #8922 from juhoeskeli/wise_1570_mpu_disable"
This reverts commit f82014e1af, reversing
changes made to 6749a8a321.
2018-12-07 11:52:28 +02:00
c_jin 6ac625d474 Style Format for GD32F30x standard peripheral files 2018-12-07 17:00:10 +08:00
c_jin ca46d12053 Delete GD32F450ZI and GD323103VB which are not implemented
Delete GD32F450ZI and GD323103VB which are not implemented yet and add them later.
2018-12-07 15:30:27 +08:00
Cruz Monrreal ea4a8e4f81
Merge pull request #8867 from bcostm/fix_trng_clock_setting
STM32L4: fix trng clock setting
2018-12-06 21:27:02 -06:00
Qinghao Shi f8edab12f4 fix uninitialized handler pointer in ethernet driver 2018-12-06 23:38:28 +00:00
Russ Butler b217c5fe4d Turn off MPU on targets failing OOB
Turn off MPU for the UBLOX_C030 and MCU_M480 and all targets derived
from these. When the MPU is enabled on these platforms they do not
pass the pelion-enablement tests. Once the root cause is determined
and fixed the MPU can be re-enabled for these targets.
2018-12-06 13:29:56 -06:00
Cruz Monrreal 78d6018ecc
Merge pull request #8745 from kfnta/feature-new-target-future-sequana-psa
Add new target future sequana PSA
2018-12-06 13:13:36 -06:00
c_jin 881561ac5e Error resolve, bug fix and 2 new targets information add
1. Resolve the Error: L6218E: Undefined symbol flash_get_erase_value
2. Bug fix (ADC, USART, etc.)
3. Modify the wrong name (TATGET_GigaDevice-->TARGET_GigaDevice)
4. Add new targets (GD32-F450ZI and GD32-E103VB) support to target.json
5. Add INITIAL_SP macro for GD32-F450ZI and GD32-E103VB
2018-12-06 19:43:20 +08:00
Oren Cohen cb58b34581 Prebuilt images 2018-12-06 11:33:35 +02:00
Oren Cohen 2e19868ff9 Prepare postbuild for prebuilt images 2018-12-06 09:35:50 +02:00
Oren Cohen 251a270942 fix for flash iap test 2018-12-05 20:01:07 +02:00
Oren Cohen b69e03fb1e Fix initial_sp on psa sequana 2018-12-05 19:59:36 +02:00
Oren Cohen b2d2cae3c4 License 2018-12-05 16:52:22 +02:00
JojoS62 cb72db2249 fixed wrong __StackTop calculation
StackTop calculation was not adjusted when ram size was increased by using al 3 ram regions.
This caused memory allocation failures althogh enough free heap was reported
2018-12-05 14:50:52 +01:00
Martin Kojtal 1c201b4628
Merge pull request #8910 from c1728p9/nrf52_tx_fix
Fix rare NRF52 serial TX lockup
2018-12-05 13:40:03 +01:00
Cruz Monrreal b32151bbe0
Merge pull request #8860 from ithinuel/aconno-port
Add the port for the ACONNO ACN52832 module on MTB's form factor
2018-12-04 11:52:14 -06:00
Cruz Monrreal 0f0e63aaac
Merge pull request #8900 from OpenNuvoton/nuvoton_refine_uart
Nuvoton: Refine UART init/deinit
2018-12-04 11:51:16 -06:00
Oren Cohen f1d3eb9340 Add FUTURE_SEQUANA_PSA target
* Modify linker scripts to be compatible with bootloader and PSA
* Add memory protection
* Modify original post-build step to allow link with PSA binaries
* Config kvstore for ITS on FUTURE_SEQUANA_PSA
* Enable PSA-Crypto on PSoC6 with NVSeed
2018-12-04 18:38:50 +02:00
Martin Kojtal 4dfb97c60f
Merge pull request #8899 from TomoYamanaka/master
Renesas : Add the setting of SD as components
2018-12-04 13:29:33 +01:00
Martin Kojtal 3411e5e095
Merge pull request #8952 from c1728p9/psoc6_mpu
Turn off MPU for PSOC 6
2018-12-04 12:45:25 +01:00
jeromecoutant 4aca14fe8b STM32 LPTIM update for easy maintenance 2018-12-04 11:08:34 +01:00
jeromecoutant 75fb93c8ab STM32 mbed_sdk_init update for easy maintenance 2018-12-04 11:08:33 +01:00
jeromecoutant 2496f1dc16 STM32 SLEEP update for easy maintenance 2018-12-04 11:08:31 +01:00
jeromecoutant 6b226ffcef STM32 RTC update for easy maintenance 2018-12-04 11:08:30 +01:00
Cruz Monrreal 69c534d4c0
Merge pull request #8920 from juhoeskeli/odin_mpu_workaround
MODULE_UBLOX_ODIN_W2: disable MPU code until target properly supported
2018-12-03 21:16:08 -06:00
Cruz Monrreal f82014e1af
Merge pull request #8922 from juhoeskeli/wise_1570_mpu_disable
MTB_ADV_WISE_1570: disable MPU code until target properly supported
2018-12-03 21:15:21 -06:00
TomoYamanaka 9060bf884c Renesas : Add the setting of SD as components 2018-12-04 10:10:23 +09:00
Derek Miller d1ae8b2604 Bug fix for UART issue on LPC54608 - issue #7398 2018-12-03 16:17:49 -06:00
Russ Butler 0bacb9adad Turn off MPU for PSOC 6
Turn off  the MPU for the PSOC 6 since it has a non-standard memory
map. This fixes crashes on boot for this target.
2018-12-03 14:27:36 -06:00
Russ Butler c48d3de85a Add rather than override PSOC 6 macros
Use "macros_add" rather than "marcos" so any macros defined by
MCU_PSOC6 are not overwritten.
2018-12-03 14:27:08 -06:00
Wilfried Chauveau fd6aa1b568
fix according to @ashok-rao's review 2018-12-03 16:30:46 +00:00
Wilfried Chauveau 1ba5861930
fix copyrights 2018-12-03 16:30:45 +00:00
Wilfried Chauveau 9f8d96a1a3
Add the port for the ACONNO ACN52832 module on MTB's form factor 2018-12-03 16:30:41 +00:00
Kari Haapalehto f6e16b9553 TARGET_WICED updated.
Connection status issue corrected. If the link layer status changes,
the connection status callback is now called correctly.

mbedtls headers from library are removed and the mbed-os one's are used.
2018-12-03 16:33:38 +02:00
Martin Kojtal d321c11531
Merge pull request #8872 from NXPmicro/Fix_RTC_Startup
MCUXpresso: Ensure the RTC OSC is running at bootup on Kinetis platforms
2018-12-03 13:41:56 +01:00
Martin Kojtal 3e90bb8cad
Merge pull request #8883 from NXPmicro/Fix_LPC546XX_Build_Failure
LPC546XX: Fix build failure due to incorrect merge
2018-12-03 13:36:47 +01:00
Martin Kojtal 179098d0f1
Merge pull request #8828 from OpenNuvoton/nuvoton_analogout
Nuvoton: Support DAC HAL
2018-12-03 13:18:57 +01:00
Cruz Monrreal 3cc7530039
Merge pull request #8844 from jeromecoutant/PR_HTML
STM32 : Remove html release notes files
2018-11-30 19:20:44 -06:00
Cruz Monrreal 5b9761e244
Merge pull request #8827 from mprse/ticker_free_k64f_fix
TARGET_MCUXpresso_MCUS: fix lp ticker init function
2018-11-30 17:55:35 -06:00
Cruz Monrreal 0b6ce4b220
Merge pull request #8798 from jeromecoutant/PR_LATENCY
STM32 : Add default deep sleep latency of 3ms
2018-11-30 17:53:25 -06:00
Martin Kojtal fa858a58ac
Merge pull request #8771 from jeromecoutant/PR_LPTICKER_LPTIM
STM32 LPTICKER with LPTIM optimisation
2018-11-30 14:31:52 +01:00
jeromecoutant 25e69171d8 STM32 LPTICKER with RTC : optimise sleep duration 2018-11-30 14:04:03 +01:00
Juho Eskeli 6ba5104281 MTB_ADV_WISE_1570: disable MPU code until target properly supported 2018-11-30 14:41:08 +02:00
c_jin 95f7a97a9b Add MPU label and fix labels alignment 2018-11-30 19:08:35 +08:00
Juho Eskeli 05da721933 Disable MPU code until target properly supported 2018-11-30 12:43:09 +02:00
jeromecoutant 9da5e48941 STM32 RTC : skip rtc_write if possible 2018-11-30 10:08:27 +01:00
jeromecoutant a8c87c0804 STM32F429/STM32F439 alignment 2018-11-30 09:20:29 +01:00
Russ Butler 131eed9b4f Fix rare NRF52 serial TX lockup
When using UARTSerial sending data over the uart follows the sequence
below:
<-TX done ISR runs and sets a software interrupt to pending
<-Software interrupt fires:
    -disables TX done interrupt
    -calls UARTSerial TX handler which sends bytes until the uart
     buffer filled (writeable returns false). Sending a byte
     re-enables the TX done interrupt continuing the cycle

Due to this sequence, if the UARTSerial TX handler does not send a byte
then the transmit state machine mentioned above will get stuck with
the TX done interrupt disabled. The events causing this failure:
<-TX done ISR runs and sets a software interrupt to pending
<-Software interrupt fires:
    -disables TX done interrupt
    -calls UARTSerial TX handler:
        -checks writeable which is true and sends a byte
            <- interrupted by a higher priority interrrupt
            <- TX done ISR runs, setting software interrupt to
               pending again
        -checks writeable which is true and sends a second byte
    -Software interrupt finishes
<-Software interrupt fires:
    -disables TX done interrupt
    -calls UARTSerial TX handler:
        -checks writeable which is false and DOES NOT SEND A BYTE
    -Software interrupt finishes, the TX interrupt is still disabled
*-Byte gets sent but TX done ISR does not fire

This patch prevents the TX lockup by removing the code in the
software interrupt which disables the TX done interrupt. Disabling the
TX done interrupt at this point is not necessary so this code is safe
to remove.
2018-11-29 19:09:04 -06:00
Leszek Rusinowicz 172ababc27 FUTURE_SEQUANA SPI fixes:
- fix to allow using only a subset of pins for SPI communication
- added missing conter increment in spi_master_block_write()
2018-11-29 11:24:20 +01:00
ccli8 a2c70f2ca4 [Nuvoton] Fix time to init/deinit stdio_uart
With support for checking H/W UART initialized or not, we can simplify stdio management:
1. When serial_init(&stdio_uart) calls in, just set the 'stdio_uart_inited' flag.
2. When serial_free(&stdio_uart) calls in, just clear the 'stdio_uart_inited' flag.
Except above, we needn't make special handling with 'stdio_uart'.
2018-11-29 10:23:22 +08:00
Mahesh Mahadevan dcc8b659bc 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-11-28 10:31:58 -06:00
Vincent Coubard 93d8c71b73 NORDIC: Fix labels in target.
Somehow during the rebase, both have been inverted.
2018-11-28 11:28:34 +00:00
Vincent Coubard 837ba72cc1 NRF51: Add label to compile BLE softdevice implementation. 2018-11-28 10:26:14 +00:00
Donatien Garnier 89aabaec0d Fix some rebasing quirks 2018-11-28 10:26:14 +00:00
Steve Cartmell 4f7dcf4d34 refactor(pan-cordio): Make nordic softdevice the default link layer 2018-11-28 10:26:14 +00:00
Steve Cartmell 12fdab312e feat(pan-cordio): Add nordic softdevice sources back into repository 2018-11-28 10:26:14 +00:00
Steve Cartmell 0f4ded19ac feat(pan-cordio): Replace NRF51 softdevice BLE stack with cordio 2018-11-28 10:19:08 +00:00
Steve Cartmell c3e611399f fix(pan-cordio): Fix incorrectly adding macros to NRF52_DK target 2018-11-28 10:19:08 +00:00
Steve Cartmell 93267699b8 fix(pan-nordic): Fix memory allocation sizes to resolve NRF52832 issues 2018-11-28 10:19:08 +00:00
Steve Cartmell 815d0d5efc feat(pan-cordio): Add cordio-ll libraries and NORDIC implementation 2018-11-28 10:19:08 +00:00
Steve Cartmell 299ae1d9c6 fix(pan-cordio): Override WSF handler size in a platform specific manner 2018-11-28 10:19:08 +00:00
Martin Kojtal 52822cb8af
Merge pull request #8871 from c1728p9/mpu
MPU API (Reopened)
2018-11-28 10:28:32 +01:00
ccli8 a937a62bff [Nuvoton] Check configuration option for default UART baudrate setting 2018-11-28 16:59:15 +08:00
ccli8 ae98b94a10 [Nuvoton] Avoid re-configuring UART in serial_init() for the same H/W UART
The same H/W UART may be shared by multiple serial_t objects. This fix tries to avoid
re-configuring the same H/W UART in serial_init() when there are multiple serial_t
objects constructed. To re-configure UART, call serial_baud() and serial_format()
explicitly. This can avoid confusion when e.g. a newly constructed serial_t object
changes baudrate unexpectedly in serial_init().
2018-11-28 16:26:21 +08:00
ccli8 6b16112962 [Nuvoton] Remove unused pin_tx/pin_rx fields from serial_s struct 2018-11-28 16:17:39 +08:00
Mahesh Mahadevan 49c9f7f73d LPC546XX: Fix build failure due to incorrect merge
Commit ab84d2bf33 missed including
qspi_device.h file

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-11-27 09:42:52 -06:00
Netanel Gonen f1c5aeb70e add MBEDTLS_PSA_CRYPTO_C defined to K64F PSA target 2018-11-27 14:02:55 +02:00
jeromecoutant 4bc0018a9c STM32 readme md file 2018-11-27 11:26:32 +01:00
Martin Kojtal a2368967c0 add MPU support for 3 targets
They should support MPU as they have all defined. Otherwise it fails to build
2018-11-27 10:24:53 +00:00
jeromecoutant 3b77fb0e78 STM32 : Add default deep sleep latency of 3 ms 2018-11-27 11:15:42 +01:00
Danny Shavit e72d910754 Add a weak implementation for trng_get_bytes() 2018-11-27 11:56:49 +02:00
Donatien Garnier 72f3680f1d Disable MPU on RTL8195A 2018-11-27 09:29:33 +00:00
Russ Butler 02b50b44ef Define MPU_ROM_END for all targets
Set a default value for MPU_ROM_END in target so this is defined for
all targets.
2018-11-27 09:29:33 +00:00
Russ Butler fb7e7e91ff Add MPU to device_has in targets.json
Add MPU for devices which support the API in targets.json.
2018-11-27 09:29:31 +00:00
Oren Cohen 2b3822e6cd Fix targets.json 2018-11-27 09:18:10 +02:00
Oren Cohen f771a5aff3 Fix FVP_MPS2 & ARM_CM3DS_MPS2 components definition 2018-11-27 09:16:43 +02:00
Oren Cohen dd73fa689c PSA SPM
* Intorduce PSA-SPM to mbed-os
* Add SPM tests (for PSA targets)
* Add PSA PRoT internal storage Secure implementation
* Integrate SPM into the boot proccess
* PSA manifest data generator
* Introduce PSA targets skeleton to mbed-os
* Add artifact delivery to the tools
2018-11-27 09:16:35 +02:00
ccli8 e24a3c09d7 [Nuvoton] Fix license description for analog-out HAL files
1. Fix copyright year
2. Add SPDX
2018-11-27 09:44:27 +08:00
Cruz Monrreal 1c1638342d
Merge pull request #8708 from SeeedJP/wio_bg96_hal
[Wio BG96] Adding platform HAL
2018-11-26 11:22:29 -06:00
bcostm 08f9e80770 STM32L4 TRNG:Remove trng clock setting for L4 devices
This will be done in the system_clock.c file instead.
2018-11-26 17:36:20 +01:00
Martin Kojtal fdca1e3578
Merge pull request #8730 from kfnta/its_kvstore_single_core
Add a new PSA Internal Trusted Storage APIs
2018-11-26 11:54:08 +01:00
Martin Kojtal 80e2c1133a
Merge pull request #8719 from deepikabhavnani/m2351_ram_rom_changes
M2351 RAM / ROM defines updated
2018-11-26 10:57:42 +01:00
Martin Kojtal 7fd4692b32
Merge pull request #8862 from 0xc0170/dev_rollup
Rollup 5.11rc v3
2018-11-25 11:25:54 +01:00
Danny Shavit 53728e45b7 Add a new PSA Internal Trusted Storage APIs 2018-11-25 09:57:22 +02:00
Nir Sonnenschein 0283bb84e4
Merge pull request #8667 from davidsaada/kvstore_integration
KVStore & derived classes: design docs, implementation & configuration
2018-11-25 07:30:53 +02:00
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