Commit Graph

4189 Commits (198fe703b8d7dcdf486bc18d66f280e0077f2aae)

Author SHA1 Message Date
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
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