Commit Graph

4487 Commits (e7e9e0734ccf015ceb1ed519b34a9bae8c38235e)

Author SHA1 Message Date
Martin Kojtal d92febe700
Merge pull request #9327 from jeromecoutant/PR_IFDEF
STM32: replace missing #ifdef DEVICE_xxx
2019-01-11 14:07:28 +00:00
Martin Kojtal fd6ceda960
Merge pull request #9323 from jeromecoutant/PR_AST
STM32: astyle check
2019-01-11 14:06:05 +00:00
Martin Kojtal 919dba535b
Merge pull request #9321 from jeromecoutant/PR_QSPI
STM32 : typo error in QSPI
2019-01-11 14:05:51 +00:00
c_jin 4d9c4343a0 Support boot stack size configuration option 2019-01-11 18:04:56 +08:00
Przemyslaw Stekiel 14f6cddc6f [GigaDevice] Support boot stack size configuration option(GD32_F450ZI) 2019-01-11 09:51:39 +01:00
c_jin 75d4705d60 adjust directory structure for device 2019-01-11 09:54:47 +08:00
c_jin 7a29b20fb6 resolve conflicting file targets.json and add support for GD32_E103VB 2019-01-11 09:53:02 +08:00
c_jin c9ec3632ce Add GD32_E10X as new target 2019-01-11 09:44:22 +08:00
Cruz Monrreal 2454b25eba
Merge pull request #9092 from mprse/stack_unification_sec_try
Interrupt stack size unification + test
2019-01-10 16:08:44 -06:00
Cruz Monrreal 12980f4acd
Merge pull request #9232 from ChazJin/gd32f450
Add GD32_F450ZI as new target
2019-01-10 16:07:33 -06:00
Martin Kojtal f4487b76da
Merge pull request #9315 from NXPmicro/Fix_Build_MCU_LPC546XX
LPC546XX: Do not make MCU_LPC546XX target public
2019-01-10 12:18:55 +00:00
Martin Kojtal 27dd445722
Merge pull request #9313 from kevinong0108/fix_adc_pin
STM32L476VG: fix wrong pin map function on ADC channels
2019-01-10 10:56:14 +00:00
jeromecoutant 877a3a13e1 STM32: replace missing #ifdef DEVICE_xxx 2019-01-10 11:02:52 +01:00
jeromecoutant b1a284a876 STM32: astyle check 2019-01-10 10:22:21 +01:00
jeromecoutant cc447e9b27 STM32 : typo error in QSPI 2019-01-10 10:06:17 +01:00
Mahesh Mahadevan 59116b17a4 LPC546XX: Do not make MCU_LPC546XX target public
This is a fix for Issue:9207

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-01-09 13:05:01 -06:00
kevin.ong d3dfc986b5 STM32L476VG: fix wrong pin map function on ADC channels
This issue is start on https://github.com/ARMmbed/mbed-os/pull/6931

ADC pins must need STM_PIN_ANALOG_CONTROL_BIT to call LL_GPIO_EnablePinAnalogControl
2019-01-10 00:39:18 +08:00
Mahesh Mahadevan 585a4b6ddd Add nanostack support for KW41Z
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-01-09 07:43:41 -06:00
Cai aedeaf98cd fix MPU compilation issue 2019-01-09 19:59:29 +08:00
c_jin 970bc24c1c adjust directory structure for device 2019-01-09 19:03:34 +08:00
c_jin be65ebd038 add SPDX indentifier, modify 450zi.icf file and static definition in us_ticker.c 2019-01-09 19:03:33 +08:00
c_jin 04c0e4fe5c add button definitions 2019-01-09 19:03:33 +08:00
c_jin c31ecd8e40 modify the 'INITIAL_SP' for GD32F450ZI 2019-01-09 19:03:33 +08:00
c_jin 5a1108e742 Add GD32_F450ZI as new target 2019-01-09 19:03:33 +08:00
Martin Kojtal c27dabe765
Merge pull request #9256 from jeromecoutant/PR_FLASHEEPROM
STM32L0 & STM32L1: FLASH is EEPROM
2019-01-08 15:06:50 +00:00
Przemyslaw Stekiel d97c4d5506 [TT] Support boot stack size configuration option 2019-01-08 15:32:07 +01:00
Przemyslaw Stekiel 4ee9378297 [GigaDevice] Support boot stack size configuration option 2019-01-08 15:32:07 +01:00
Przemyslaw Stekiel 888f49dade [NORDIC] Support boot stack size configuration option 2019-01-08 15:32:07 +01:00
Przemyslaw Stekiel 4a113d2e29 [ublox] Support boot stack size configuration option 2019-01-08 15:32:07 +01:00
Przemyslaw Stekiel f74f3c1fd0 [WIZNET] Support boot stack size configuration option 2019-01-08 15:32:07 +01:00
Przemyslaw Stekiel 9fe7e360b3 [TOSHIBA] Support boot stack size configuration option 2019-01-08 15:32:07 +01:00
Przemyslaw Stekiel d30a14e64f [Silicon_Labs] Support boot stack size configuration option 2019-01-08 15:32:06 +01:00
Przemyslaw Stekiel 58f6bf7292 [STM] Support boot stack size configuration option 2019-01-08 15:32:06 +01:00
Przemyslaw Stekiel 3525f6b393 [Realtek] Support boot stack size configuration option 2019-01-08 15:32:04 +01:00
Przemyslaw Stekiel 36ff05345e [RDA] Support boot stack size configuration option 2019-01-08 15:32:04 +01:00
Przemyslaw Stekiel c5a67c9267 [ONSEMI] Support boot stack size configuration option 2019-01-08 15:32:04 +01:00
Przemyslaw Stekiel 3b170118f3 [NXP] Support boot stack size configuration option 2019-01-08 15:32:04 +01:00
Przemyslaw Stekiel 6d1d08b660 [Maxim] Support boot stack size configuration option 2019-01-08 15:32:03 +01:00
Przemyslaw Stekiel 08004e141d [Freescale] Support boot stack size configuration option 2019-01-08 15:32:03 +01:00
Przemyslaw Stekiel 8f230b6e70 [Cypress] Support boot stack size configuration option 2019-01-08 15:32:02 +01:00
Przemyslaw Stekiel 5b065c5b95 [Atmel] Support boot stack size configuration option 2019-01-08 15:32:02 +01:00
Przemyslaw Stekiel f0ab08a68c [Analog_Devices] Support boot stack size configuration option 2019-01-08 15:32:02 +01:00
Przemyslaw Stekiel 0111f5d5fe [ARM_SSG] Support boot stack size configuration option 2019-01-08 15:32:02 +01:00
Przemyslaw Stekiel 55b1c664bc [ARM_FM] Support boot stack size configuration option 2019-01-08 15:32:01 +01:00
Martin Kojtal 63eca294a1
Merge pull request #9163 from InfernoEmbedded/fix-8913-partner
Don't use define checks on DEVICE_FOO macros (partner code)
2019-01-07 16:37:24 +00:00
Cruz Monrreal 90fd6cdf27
Merge pull request #9252 from jeromecoutant/PR_L4VBAT
STM32L4 ADC : power optimisation for VBAT channel
2019-01-04 11:36:10 -06:00
Cruz Monrreal 2352e18b5d
Merge pull request #9249 from ithinuel/disco_f469ni_bootloader
add bootloader support to the DISCO_F469NI
2019-01-04 10:32:53 -06:00
Cruz Monrreal 54f759176b
Merge pull request #9210 from AnttiKauppila/mbed_h_fix
mbed.h includes removed
2019-01-04 10:27:30 -06:00
jeromecoutant ef2fcebf57 STM32 L0 & L1: FLASH is EEPROM 2019-01-04 15:37:16 +01:00
Wilfried Chauveau bbb9de7c87
add bootloader support to the DISCO_F469NI 2019-01-04 11:32:23 +00:00
bcostm b897719c9d NUCLEO_H743ZI: add crash reporting for IAR 2019-01-04 10:03:36 +01:00
bcostm 1cf92dd8d4 NUCLEO_H743ZI: include rtc LL driver 2019-01-04 10:03:36 +01:00
jeromecoutant 4b67820f8a NUCLEO_H743ZI: add initial SDK 2019-01-04 10:03:36 +01:00
Martin Kojtal 26833c0281
Merge pull request #9233 from jamesbeyond/fm_sdk
FastModel: update platform header, removed unwanted smsc9220 device
2019-01-04 08:57:25 +00:00
Martin Kojtal 47c8855f31
Merge pull request #9227 from heejungPark/master
[SDT64B] changed UART0 to UART2, added UART_5 on SDT64B
2019-01-04 08:56:35 +00:00
Martin Kojtal d2e9136ddb
Merge pull request #9167 from TomoYamanaka/hanlder_without_RTOS
Modify IRQ handler processing when unusing RTOS at Cortex-A
2019-01-04 08:42:11 +00:00
jeromecoutant 164fee0e61 STM32L4 ADC VBAT CHANNEL 2019-01-04 09:15:32 +01:00
TomoYamanaka 3cdc314460 Modify the definition as to whether RTOS is not present in sys.cpp. 2019-01-04 09:43:34 +09:00
Cruz Monrreal f83e1d29d7
Merge pull request #9246 from jeromecoutant/PR_L0TEMP
STM32L0 TEMPERATURE ADC CHANNEL minor update
2019-01-03 15:32:44 -06:00
Cruz Monrreal 757626a951
Merge pull request #9182 from donatieng/disable_mpu_nrf52x
Disable MPU support on NRF52x platforms
2019-01-03 15:31:58 -06:00
Antti Kauppila b53bedba09 Fixed Realtek test build 2019-01-03 20:05:08 +02:00
Cruz Monrreal f8375a459d
Merge pull request #9202 from AdamZhang0124/realtek-rtl8195am-Hide_Debugging_Messages
Realtek-RTL8195AM-Hide_Debugging_Messages
2019-01-03 10:35:26 -06:00
Cruz Monrreal d425ec5860
Merge pull request #9197 from OpenNuvoton/nuvoton_fix_uart-flow-control
Nuvoton: Fix UART flow control CTS/RTS
2019-01-03 10:34:58 -06:00
jeromecoutant 087cd26dd4 STM32L0 ADC TEMPERATURE CHANNEL rework 2019-01-03 17:03:07 +01:00
heejungPark 725fbb96a8 changed UART0 to UART2, added UART_5 on SDT64B 2019-01-03 17:13:16 +09:00
ccli8 ad1e57bdef [Nuvoton] Refine MBED_CONF_RTOS_PRESENT check in crypto_misc.cpp 2019-01-03 09:21:05 +08:00
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