int_szyk
5c9daa3941
Tweak stm_spi_api Coverity issue.
...
Coverity warining: "memset fill truncated (NO_EFFECT)".
Changed SPI_FILL_WORD to SPI_FILL_CHAR.
2019-08-21 16:47:35 +02:00
Vincent Veron
8ab6aecbe9
Move stm32xx_emac_config.h to family specific folder
...
This allows to specify which hal version to use for each family.
It can also be used to modify the thread stack size.
Signed-off-by: Vincent Veron <vincent.veron@st.com>
2019-08-21 15:02:45 +02:00
Vincent Veron
76fb4d22cc
STM32H7 : update linker script files to use right location for lwip_ram_heap
...
Signed-off-by: Vincent Veron <vincent.veron@st.com>
2019-08-21 11:41:30 +02:00
Vincent Veron
9f2e9aa576
Add EMAC support for NUCLEO_H743ZI
...
This port is based on :
* CurryGuy ethernet branch :
https://github.com/CurryGuy/mbed-os/tree/feature-stm32h7-emac
* STM32 Cube example :
Applications/LwIP/LwIP_HTTP_Server_Netconn_RTOS example
Signed-off-by: Vincent Veron <vincent.veron@st.com>
2019-08-21 11:40:48 +02:00
Mahesh Mahadevan
7e6da8bffe
K22: Add USBDEVICE support
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-08-20 15:15:46 -05:00
Mahesh Mahadevan
c8ad24c8f5
NXP MCUXpresso: optimize us_ticker for LPC platforms
...
Provide new optimizations for us_ticker and wait_us.
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-08-20 10:39:28 -05:00
aqib-ublox
80e30f4258
ADc internal temperature suuport and EMAC header fix
2019-08-20 18:44:22 +05:00
Martin Kojtal
ce74bb53c4
Merge pull request #11178 from Tharazi97/watchdog_max_timeout
...
ST: Watchdog: Fix timeout registers value calculation
2019-08-20 13:47:31 +02:00
Martin Kojtal
c37b5628ec
Merge pull request #11255 from cy-vaira/nvram-cy8cmod-062s2-43012
...
Update NVRAM image for target CY8CMOD-062S2-43012
2019-08-20 10:27:30 +02:00
Martin Kojtal
169ada9209
Merge pull request #11237 from Tharazi97/TT_M3HQ-build-problem
...
Fix TT_M3HQ build problem
2019-08-20 10:23:28 +02:00
Martin Kojtal
191f029f73
Merge pull request #11226 from chrissnow/LPC1768_WDT
...
LPC1768 Watchdog & Reset Reason
2019-08-20 10:22:42 +02:00
Martin Kojtal
e2fef54898
Merge pull request #11188 from NXPmicro/MXRT_TRNG
...
MIMXRT1050_EVK: Add TRNG support
2019-08-20 09:50:43 +02:00
Martin Kojtal
e3bfcbc2ff
Merge pull request #11142 from hugueskamba/hk-usb-targets-relocation
...
Relocate USB target specific code to root `targets` directory
2019-08-20 09:39:30 +02:00
Martin Kojtal
e56f3199eb
Merge pull request #11127 from NXPmicro/Fix_LPC55S69_AnalogIn
...
Fix ANALOGIN support for LPC55S69
2019-08-20 09:33:40 +02:00
Martin Kojtal
b16aaca568
Merge pull request #11118 from ganesh-ramachandran/m46b_newfeatures
...
Add new features to Toshiba's TMPM46B
2019-08-20 09:27:28 +02:00
Chun-Chieh Li
96dac4faa7
[M487] Exclude A2/A3 from testing for NuMaker-IoT-M487 V1.3
...
Since NuMaker-IoT-M487 V1.3, A2/A3 are dedicated to on-board ESP8266 WiFi
module RTS/CTS pins and so must exclude from FPGA CI testing.
2019-08-20 13:12:44 +08:00
Chun-Chieh Li
c99c43cacd
[M2351] Fix pinmap table error with SPI clock pin
2019-08-20 13:12:44 +08:00
Chun-Chieh Li
07f39f1337
[M2351] Fix CLK_SetModuleClock_S(...) error with SPI
...
Fix SPI module index error in modidx_ns_tab table in CLK_SetModuleClock_S().
Need to update secure image for this bugfix.
This is also to fix FPGA CI test mbed_hal_fpga_ci_test_shield-spi/
SPI - init/free test all pins.
2019-08-20 13:12:44 +08:00
Chun-Chieh Li
bab5d27e26
[M453] Classify by M45xD/M45xC and M45xG/M45xE
...
M451 series can classify by M45xD/M45xC and M45xG/M45xE. To support this
classification:
1. Create TARGET_M45xD_M45xC and TARGET_M45xG_M45xE targets.
2. Mark NUMAKER_PFM_M453 belongs to TARGET_M45xG_M45xE by 'extra_labels_add'
in targets.json.
3. Fix pin name table according to the classification.
4. Fix pinmap table according to the classification.
2019-08-20 13:12:43 +08:00
Chun-Chieh Li
6f1bd325cd
[NANO130] Remove SPI MOSI1/MISO1 pins from pinmap
...
MOSI1/MISO1 are used in second bit of 2-bit transfer mode and cannot be used
for normal MOSI/MISO. Remove them from pinmap.
This is also to fix FPGA CI test mbed_hal_fpga_ci_test_shield-spi/
SPI - basic test.
2019-08-20 13:12:43 +08:00
Chun-Chieh Li
c3d7ef8341
[Nuvoton] Free up peripheral pins in peripheral free-up HAL API
...
Without free-up of peripheral pins, peripheral pins of the same peripheral may
share by multiple ports after port iteration, and this peripheral may fail with
pin interference.
2019-08-20 13:12:43 +08:00
Chun-Chieh Li
ca0846b1e9
[Nuvoton] Support GPIO input pull-high/pull-low
...
In Nuvoton, only new-design chips support GPIO input pull-high/pull-low modes.
Targets not supporting this feature are listed below:
- NUMAKER_PFM_NANO130
- NUMAKER_PFM_NUC472
- NUMAKER_PFM_M453
2019-08-20 13:12:42 +08:00
Chun-Chieh Li
09bf844d76
[Nuvoton] Fix redundant call to UART IRQ handler
...
Honor RxIrq/TxIrq to avoid redundant call to UART IRQ handler.
This is also to fix FPGA CI test mbed_hal_fpga_ci_test_shield-uart.
2019-08-20 13:12:42 +08:00
Chun-Chieh Li
d46c6fea47
[Nuvoton] Fix redundant SPI clock generation
...
Fix SPI clocks are generated redundantly at the end of transfer.
This is also to fix FPGA CI test mbed_hal_fpga_ci_test_shield-spi/
SPI - async mode.
2019-08-20 13:12:42 +08:00
Chun-Chieh Li
80c21aeff5
[Nuvoton] Fix I2C NACK error
...
Fix logic error on replying NACK at the end of transfer.
This is also to fix FPGA CI test mbed_hal_fpga_ci_test_shield-i2c/
i2c - test single byte read i2c API.
2019-08-20 13:12:42 +08:00
Chun-Chieh Li
fef138a3cd
[Nuvoton] Fix IP initialization sequence
...
Better IP initialization sequence:
1. Configure IP pins
2. Select IP clock source and then enable it
3. Reset the IP (SYS_ResetModule)
NOTE1: IP reset takes effect regardless of IP clock. So it doesn't matter if
IP clock enable is before IP reset.
NOTE2: Non-configured pins may disturb IP's state, so IP pinout first and then
IP reset.
NOTE3: IP reset at the end of IP initialization sequence can cover unexpected
situation.
2019-08-20 13:12:41 +08:00
Chun-Chieh Li
560fe33ed8
[Nuvoton] Exclude USB UART from testing
...
USB UART is dedicated to USB COM and so must exclude from FPGA CI testing.
2019-08-20 13:12:41 +08:00
Chun-Chieh Li
f88bd72c19
[Nuvoton] Force enum PinName to 32-bit
...
NU_PINNAME_BIND(...) requires enum PinName to be 32-bit to encode module
binding information in it.
2019-08-20 13:12:41 +08:00
Mahesh Mahadevan
99b1114e63
MCUXpresso: Add TICKLESS support for LPC platforms
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-08-19 13:15:39 -05:00
Chris Snow
82f4be0b4d
SPDX identifier and license amended
2019-08-19 11:58:02 +01:00
Martin Kojtal
101ae73b87
Merge pull request #11063 from linlingao/f_cc3220sf_launchxl
...
Add CC3220SF_Launchxl to Mbed OS
2019-08-19 12:08:11 +02:00
Vairamuthu Ramasamy
e7f190f2d7
Updated nvram image for target CY8CMOD-062S2-43012
2019-08-19 14:07:33 +05:30
Hugues Kamba
3d6fb15b48
Use consistant naming for Cypress USB target files.
2019-08-16 15:42:43 +01:00
Hugues Kamba
de231b8664
Move USB Templates to `mbed-os/hal/usb`
2019-08-16 15:42:43 +01:00
Hugues Kamba
f3df1c1d1e
Relocate TARGET_MCU_NRF52840 to TARGET_NRF5x/TARGET_NRF52
2019-08-16 15:42:43 +01:00
Hugues Kamba
41346bad13
Rename template dir so future templates can be added to the same dir.
2019-08-16 15:42:43 +01:00
Hugues Kamba
5cbc3e0497
Relocate USB target specific code to root `targets` directory
...
All target specific source and header files should be in the `targets`
directory located at the root of the Mbed OS repository.
2019-08-16 15:42:43 +01:00
int_szyk
3c2ed16fce
Fix TT_M3HQ build problem with SPI
2019-08-16 14:55:49 +02:00
int_szyk
ce58505fa4
fix TT_M3HQ build problem with i2c
2019-08-16 14:55:49 +02:00
int_szyk
aa56f86cec
Remove SERIAL_FC from target.json on TT_M3HQ
...
Development board TT_M3HQ doesn't have CTS/RTS on its pinout.
If that is not the case PinMap_UART_RTS should be created.
2019-08-16 14:44:31 +02:00
Ganesh Ramachandran
edf36fb2ae
Added new features to TMPM46B
2019-08-16 10:43:52 +05:30
Mahesh Mahadevan
43b4c0ab82
MIMXRT1050_EVK: Add TRNG support
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-08-15 16:51:18 -05:00
Anna Bridge
08ecbfcd46
Merge pull request #11021 from OpenNuvoton/nuvoton_lpticker_delay_ticks
...
Nuvoton: Enlarge LPTICKER_DELAY_TICKS for safe
2019-08-15 12:47:55 +01:00
Chris Snow
edc992b297
Enable WATCHDOG and RESET_REASON for other LPC1768 targets
2019-08-14 17:15:18 +01:00
Lin Gao
cae7427717
Cosmetic changes to incorporate review feedback
2019-08-14 11:09:11 -05:00
Chris Snow
7e2c2a98dd
LPC1768 Reset Reason implementation
2019-08-14 15:50:11 +01:00
Chris Snow
2fcafb9c93
LPC1768 WDT implementation
2019-08-14 13:42:04 +01:00
Martin Kojtal
a6c316afee
Merge pull request #11020 from OpenNuvoton/nuvoton_wakeup_latency
...
Nuvoton: Enlarge required deep sleep latency
2019-08-14 13:38:00 +02:00
int_szyk
df43350f28
Tweak STM watchdog implementation
...
Change the calculation method of rl so it is rounded up.
2019-08-14 13:02:47 +02:00
Chris Snow
9825b0d915
remove CAN section form .ANY
2019-08-13 20:18:52 +01:00
Chris Snow
f801a61138
Make use of the other 32K of RAM if not used by libraries, least priority is IRAM1 to help maximise heap availability.
...
Most beneficial when LWIP is not in use.
2019-08-13 13:41:18 +01:00
Martin Kojtal
de84004be1
Merge pull request #11189 from LMESTM/pwmout_cpp_guard
...
__cplusplus guard fixed pwmout_device.h for STM32 families
2019-08-13 11:19:24 +02:00
Martin Kojtal
be23d3c871
Merge pull request #11137 from facchinm/nano33ble_public
...
Add Arduino Nano 33 BLE target
2019-08-13 10:51:12 +02:00
Martin Kojtal
9113c8d5d7
Merge pull request #11116 from nubix-io/issue-11115
...
Define I²C related pin names for the L-Tek FF_LPC546XX target
2019-08-13 10:42:49 +02:00
Mahesh Mahadevan
d68d8009d9
K64F: Update UART aynchronous API for tickless implementation
...
Do not allow entry to deep sleep mode when UART transfer is active
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-08-12 10:57:17 -05:00
Mahesh Mahadevan
72e1f415a9
K64F: Update SPI aynchronous API for tickless implementation
...
Do not allow entry to deep sleep mode when SPI transfer is active
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-08-12 10:57:14 -05:00
Mahesh Mahadevan
eaace297dc
MCUXpresso: Provide an API to wait till TX complete
...
Wait till the data is flushed out of TX buffer
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-08-12 10:57:04 -05:00
Mahesh Mahadevan
75608f6db2
MCUXpresso: Updated SMC SDK driver
...
Update includes allocating RAM region for code to enter
stop modes and execute this code in RAM, thus the flash
is idle and no prefetch is performed while entering stop
mode.
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-08-12 10:56:56 -05:00
Mahesh Mahadevan
df64e32aa3
MCUXpresso: Update Kinetis Sleep implementation
...
1. Use the updated API's provided by the SMC driver
2. Wait till debug UART has finished transmitting data
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-08-12 10:56:52 -05:00
Mahesh Mahadevan
10bbbd1565
Fix ANALOGIN support for LPC55S69
...
1. Update to handle 12-bit resolution
2. Properly handle the pin configuration
3. Update the pin setup to handle the ADC B channel
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-08-09 09:18:04 -05:00
Mahesh Mahadevan
bed28681d5
NXP: Enable MBED_TICKLESS on various NXP platforms
...
Enable for K22F, K64F, K66F, K82F, KL82Z, KW24D, KW41Z, MIMXRT1050, HEXIWEAR
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-08-09 09:17:16 -05:00
Martin Kojtal
f8dc035ae4
Merge pull request #11139 from sethitow/stm32f413-crash-capture
...
STM32F413 Crash Capture
2019-08-09 12:49:21 +01:00
Martin Kojtal
174cac7e11
Merge pull request #11103 from desowin/stm32f7-usbhost
...
STM32F7: Do not generate redundant IN tokens
2019-08-09 11:36:37 +01:00
Martin Kojtal
9b4373639b
Merge pull request #11072 from jeromecoutant/PULL_REQUEST_CUBE_UPDATE_L4_V1.14.0
...
STM32L4: update drivers version to CUBE V1.14.0
2019-08-09 11:35:00 +01:00
Laurent Meunier
319223ac16
__cplusplus guard fixed pwmout_device.h for STM32 families
...
This bug prevented using this header in cpp code directly.
2019-08-09 09:51:39 +02:00
Martin Kojtal
d27867ecd4
Merge pull request #11150 from byq77/patch-1
...
__cplusplus guard fixed pwmout_device.h for STM32F4
2019-08-09 08:41:12 +01:00
Martin Kojtal
fd931a169d
Merge pull request #11168 from maciejbocianski/fix_qspi_write_k82f
...
Xpresso: qspi_write fix
2019-08-09 08:23:21 +01:00
Martino Facchin
bd0988416e
[TARGET] Add Arduino NANO33BLE
2019-08-08 17:24:56 +02:00
Seppo Takalo
5f6379a55d
Merge pull request #11119 from Reda-RM/master
...
Riot Micro cellular device
2019-08-07 14:07:27 +03:00
Maciej Bocianski
f2599f43eb
Xpresso: qspi_write fix
...
Due to the data buffer is loaded in two steps the whole block needs protection from being interrupted
2019-08-06 14:55:29 +02:00
Seppo Takalo
644f79592c
Merge pull request #11151 from kyle-cypress/pr/gpio-inout-fix
...
Fix PSoC 6 inout pins
2019-08-06 12:37:08 +03:00
Seppo Takalo
6436f11335
Merge pull request #11123 from desmond-blue/fix-nrf52-us-ticker-free
...
NRF52 need to call TIMER_TASK_SHUTDOWN for current consumption
2019-08-06 11:33:55 +03:00
Seppo Takalo
1c2b050cb0
Merge pull request #11138 from maclobdell/fix-cypress-mbed-rom-start
...
fix rom start & size for CY8CKIT_062_WIFI_BT & CY8CPROTO_062_4343W
2019-08-06 11:33:09 +03:00
Seppo Takalo
1e4a837add
Merge pull request #11141 from maciejbocianski/i2c_Xpresso_byte_read_fix
...
freescale: fix i2c_byte_read function
2019-08-06 11:32:24 +03:00
Seppo Takalo
fae1504e30
Merge pull request #11160 from OpenNuvoton/nuvoton_remove_delay_cycle_x4
...
Nuvoton: Remove dead code nu_delay_cycle_x4
2019-08-06 11:29:14 +03:00
Reda Maher
ef1d9778a9
[Riot Micro] Add Riot Micro cellular module targets
2019-08-05 18:57:43 +02:00
Seppo Takalo
f2236d26f8
Merge pull request #11131 from lrusinowicz/serial_free_fix
...
FUTURE_SEQUANA: Add missing serial_free() implementation
2019-08-05 15:41:45 +03:00
Seppo Takalo
e69a7c913d
Merge pull request #11099 from trowbridgec/update-ep-agora-pinout
...
Update EP_AGORA target pinout
2019-08-05 12:00:08 +03:00
Chun-Chieh Li
413d127586
Nuvoton: Remove dead code nu_delay_cycle_x4(...)
...
Originally, nu_delay_cycle_x4(...) is borrowed from mbed test code for delay
cycle. Currently, it is not used on Nuvoton targets. If delay cycle is needed,
use wait_ns(...) instead which has strict implementation and has passed tests.
2019-08-05 09:32:35 +08:00
Seth Itow
9a65310a85
stm32f413xh: add crash capture support for ARM_STD
2019-08-01 11:28:36 -07:00
Szymon Szantula
dd2876c8ac
__cplusplus guard fixed
...
This error prevented using this header in cpp code directly.
2019-08-01 14:41:11 +02:00
Seth Itow
1c4ad895dd
stm32f413xh: add crash capture support for IAR
2019-07-31 15:54:47 -07:00
Seth Itow
6278dacc1f
stm32f413xh: add crash capture support for ARM_MICRO
2019-07-31 15:54:20 -07:00
Seth Itow
489bd3dec8
stm32f413xh: add crash capture support for GCC_ARM
2019-07-31 15:53:34 -07:00
Kyle Kearney
33b06d4109
Fix inout pins not functioning correctly
...
Update the drive mode when setting the GPIO direction.
2019-07-31 11:51:04 -07:00
maclobdell
e201a5c6be
fix rom start & size for psoc6 targets for 5.13
2019-07-31 12:48:25 -05:00
Maciej Bocianski
b788541308
freescale: fix i2c_byte_read function
2019-07-31 19:44:23 +02:00
Lin Gao
c36980c370
Fix a build break with ARM compiler
2019-07-31 11:51:20 -05:00
Leszek Rusinowicz
16372f3222
FUTURE_SEQUANA: Add missing serial_free() implementation
2019-07-31 13:28:31 +02:00
Lin Gao
eebe00b9d1
Implement PWMOUT
2019-07-30 11:09:44 -05:00
desmond.chen
7b5366f7a3
NRF52 need to call TIMER_TASK_SHUTDOWN for current consumption
2019-07-30 17:20:08 +08:00
Seppo Takalo
417a9fe2fb
Merge pull request #11074 from fkjagodzinski/pinmap-gpio_irq
...
Add a gpio-irq pinmap
2019-07-29 17:44:55 +03:00
Seppo Takalo
9affeb868d
Merge pull request #11071 from cypress-neil/pr/psoc6-usb
...
PSOC6: USB device implementation
2019-07-29 17:41:42 +03:00
David Rauschenbach
d19c881a56
Define I²C related pin names for the L-Tek FF-LPC546XX target
2019-07-27 07:18:15 -07:00
Chris Trowbridge
04ca01d16f
Update PinNames.h with the pinout for EP_AGORA HW rev 1.1
2019-07-26 11:48:36 -04:00
Filip Jagodzinski
844864066a
PSOC6_FUTURE: Fix circular dependency for GPIO-IRQ
...
The use of `gpio_irq_event` & `gpio_irq_handler` in `gpio_irq_s` creates
a circular dependency.
hal/gpio_irq_api.h needs
targets/TARGET_Cypress/TARGET_PSOC6_FUTURE/TARGET_CY8C63XX/device.h, that needs
targets/TARGET_Cypress/TARGET_PSOC6_FUTURE/objects.h, that again needs
hal/gpio_irq_api.h, before the types are defined.
Remove `#include "gpio_irq_api.h"` directive from objects.h and change
the types of `gpio_irq_s` members.
2019-07-25 11:04:16 +02:00
Ireneusz Gaicki
b9c4076741
STM32F7: Do not generate redundant IN tokens
...
When STM32F746-DISCO board was being used in (unsupported) USBHost mode,
the communication was unreliable. Our investigation revealed that the
problem lied in redundant IN tokens that the host generated even though
it shouldn't. This could lead to endless high-frequency NAKs being
received from device, which caused watchdog reset as USBHost spent all
time in interrupt handlers.
In our application the clocks frequencies are:
* HCLK = 48 MHz
* APB1 = 6 MHz
* APB2 = 12 MHz
We have captured the raw USB High-Speed traffic using OpenVizsla.
Without this change, when USB MSD device connected to the system
responded to IN with NAK, there were excessive IN tokens generated about
667 ns after the NAK. With this commit the IN tokens are generated no
sooner than 10 us after the NAK.
The high frequency of the IN/NAK pairs is not the biggest problem.
The biggest problem is that the USB Host did continue to send the IN token
after DATA and ACK packets were received from device - *without* any request
from upper layer (USB MSD).
The USB MSD devices won't have extra data available on Bulk IN endpoint
after the expected data was received by Host. In such case IN/NAK cycle
time is only houndreds of nanoseconds, the MCU has no time for anything else.
The problem manifested not only on Bulk endpoints, but also during
Control transfers. Example correct scenario (when this fix is applied):
* SETUP stage
* SETUP [host -> address 0 endpoint 0]
* DATA0 [80 06 00 01 00 00 08 00] [CRC16: EB 94]
* ACK
* DATA stage
* IN
* NAK
... the IN/NAK repeated multiple time until device was ready
* IN
* DATA1 [12 01 10 02 00 00 00 40] [CRC16: 55 41]
* ACK
* STATUS stage
* OUT
* DATA1 ZLP
* ACK
Without this commit, in DATA stage, after the ACK was received, the host
did send extra IN to which device responded with STALL. On bus it was:
* DATA stage
...
* IN
* DATA1 [12 01 10 02 00 00 00 40] [CRC16: 55 41]
* IN
* STALL
* IN
* STALL
* STATUS stage
* OUT
* DATA1 ZLP
* STALL
In the fault case the next SETUP was sent only after 510 ms, which
indicates timeout in upper layer.
With this commit the next SETUP is sent 120 us after the STATUS stage ACK.
2019-07-24 11:40:49 +02:00
Kyle Kearney
b65be5fa29
Bug fixes to I2C and SPI drivers
...
- Fix assert when spi_master_block_write called with 0 size
- Fix assert when spi_format called before spi_frequency
- Simplify implementation of spi_master_write
- Simplify pointer arithmetic expressions in cyhal_spi_transfer and
cyhal_spi_transfer_async
- Fix I2C driver not honoring the frequency specified during init.
2019-07-23 15:40:45 -07:00
Neil Tuttle
2bf79c1588
PSOC6: Remove USBDEVICE from FUTURE_SEQUANA targets
2019-07-23 15:30:06 -07:00
Lin Gao
2a06ae20cc
Added missing pinmap definitions. Fixed target JSON config to avoid treating cc3220sf a target
2019-07-23 14:52:50 -05:00
Seppo Takalo
c505d25186
Merge pull request #11077 from bentcooke/52840_align
...
NRF52840: remove align instructions from gcc linker for ARM.extab exi…
2019-07-23 11:37:47 +03:00
Seppo Takalo
13873f388c
Merge pull request #11062 from AGlass0fMilk/fix-nrf52-saadc-res-again
...
Fix SAADC resolution for nRF52-based targets... again
2019-07-22 15:30:11 +03:00
Seppo Takalo
0e33dd7e62
Merge pull request #11080 from kyle-cypress/pr/cy8ckit-062s2-43012
...
Add target for CY8CKIT_062S2_43012
2019-07-22 14:09:33 +03:00
Seppo Takalo
0d6a3be91d
Merge pull request #11079 from bentcooke/52840_patch3
...
NRF52840: enable TRNG in Nordic SDK config
2019-07-22 14:07:41 +03:00
Seppo Takalo
5aff943a84
Merge pull request #11064 from NXPmicro/Update_LPC_GPIO_IRQ
...
MCUXpresso: Fix the LPC GPIO IRQ driver
2019-07-22 11:42:46 +03:00
Seppo Takalo
94f434227d
Merge pull request #11060 from NXPmicro/LPC_Update_SPI_Driver
...
MCUXpresso: Update LPC spi driver
2019-07-22 11:37:20 +03:00
Kyle Kearney
40557cefeb
Add target for CY8CKIT_062S2_43012
2019-07-19 15:44:27 -07:00
Ben Cooke
36bd06c00a
NRF52840: enable TRNG in Nordic SDK config
2019-07-19 13:24:12 -05:00
Ben Cooke
892adc6e91
nrf52840: remove align instructions from gcc linker for ARM.extab exidx sections
2019-07-19 10:22:05 -05:00
jeromecoutant
96a773a0e6
STM32L4: update drivers version to CUBE V1.14.0
2019-07-19 13:15:07 +02:00
Neil Tuttle
a372992aee
PSOC6: USB device implementation
2019-07-18 11:16:16 -07:00
Mahesh Mahadevan
34619e55a6
MCUXpresso: Fix the LPC GPIO IRQ driver
...
The IRQ disable was always disabling both rising
and falling edges of the interrupt thereby causing
failures in cases when one of the two should stay enabled.
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-07-17 15:18:59 -05:00
Seppo Takalo
12d60f86ea
Merge pull request #11050 from jeromecoutant/PR_DISCO_L4R9I
...
DISCO_L4R9I new target
2019-07-17 23:15:45 +03:00
Seppo Takalo
4cdde1d07f
Merge pull request #11052 from NXPmicro/Update_LPC546XX_ADC
...
Update MCUXpresso AnalogIn driver for LPC devices
2019-07-17 23:14:35 +03:00
Seppo Takalo
fa9a3ed05f
Merge pull request #11053 from maclobdell/psoc6-add-bootloader-support
...
Add Mbed bootloader support to CY8CKIT_062_WIFI_BT and CY8CPROTO_062_4343W
2019-07-17 23:12:11 +03:00
Lin Gao
e74fbcd79e
Add CC3220SF_Launchxl to Mbed OS
2019-07-17 13:19:32 -05:00
George Beckstein
7ff707c9b4
Fix SAADC resolution for nRF52-based targets... again
2019-07-17 11:43:20 -04:00
Seppo Takalo
3d5489a6f8
Merge pull request #10644 from fkjagodzinski/hal-gpio_pinmap
...
Add a gpio pinmap
2019-07-17 14:39:40 +03:00
Seppo Takalo
987533859a
Merge pull request #10104 from kjbracey-arm/sleep_api
...
Sleep rework, RTOS API for bare metal, wait deprecations
2019-07-17 14:37:53 +03:00
Seppo Takalo
8efd123776
Merge pull request #11042 from caoyuan96421/bugfix
...
Fixed serial_device IRQ infinite loop bug due to uint8_t overflowing in STM devices
2019-07-17 14:33:21 +03:00
Seppo Takalo
02f8fbda62
Merge pull request #11019 from OpenNuvoton/nuvoton_wait-ns
...
Nuvoton: Modify wait ns(...) to provide more accurate implementation
2019-07-17 14:30:47 +03:00
Evelyne Donnaes
0a4e5146b0
Merge pull request #11049 from SeppoTakalo/normalize
...
Normalize line endings for IM880B startup files.
2019-07-17 09:24:52 +01:00
Mahesh Mahadevan
e50583459f
LPC54114: Fix compile warnings
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-07-16 12:29:32 -05:00
Mahesh Mahadevan
55a2eddf8a
MCUXpresso: Update LPC SPI HAL driver
...
Add support for different slave selects
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-07-16 12:10:34 -05:00
maclobdell
ccbfea502c
add defines for bootloader support, for target without cmsis pack
2019-07-15 23:13:22 -05:00
Mahesh Mahadevan
9b8a859883
MCUXpresso: Update the Analogin driver for LPC devices
...
1. Update the clock divider setting
2. ADC resolution is 12-bits, update the API return value
to return 16-bit result
3. Update IOMUX setup
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-07-15 14:40:55 -05:00
Mahesh Mahadevan
f4648673cf
LPC54114: Update the ADC SDK driver
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-07-15 14:40:55 -05:00
Mahesh Mahadevan
7b011e9fe2
LPC546XX: Update the ADC SDK driver
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-07-15 14:40:55 -05:00
Arto Kinnunen
9cdfe37783
Merge pull request #10994 from fkjagodzinski/fix-serial_fc_guards
...
Add DEVICE_SERIAL_FC guards to serial HAL API
2019-07-15 15:47:37 +03:00
Arto Kinnunen
01484a2226
Merge pull request #11007 from SiliconLabs/fix/fpga_tests/pwm
...
Fix PWM output on Silicon Labs targets for large pulsewidths
2019-07-15 15:43:46 +03:00
Arto Kinnunen
b5d8c3860e
Merge pull request #11008 from SiliconLabs/fix/fpga_tests/spi
...
Enable FPGA-based SPI testing on Silicon Labs targets
2019-07-15 15:42:55 +03:00
Arto Kinnunen
6ef5e228b5
Merge pull request #11015 from SiliconLabs/fix/fpga_tests/adc
...
Fix wrongly declared ADC pinout for EFM32GG11 STK3701A
2019-07-15 15:38:47 +03:00
Arto Kinnunen
5c45fa72a9
Merge pull request #11003 from NXPmicro/Fix_LPC_I2C
...
LPC MCUXpresso: Remove extra I2C transaction on byte write
2019-07-15 15:32:02 +03:00
jeromecoutant
1a835dda4a
DISCO_L4R9I new target
2019-07-15 14:06:40 +02:00
Seppo Takalo
b22641ca18
Normalize line endings for IM880B startup files.
2019-07-15 14:56:22 +03:00
Martin Kojtal
c98b0d0b03
VK_RZ_A1H: add mbed_get_a9_tick_irqn
2019-07-15 10:13:50 +03:00
Kevin Bracey
a522dcfa0a
Replace deprecated wait calls
2019-07-15 10:13:50 +03:00
Yuan Cao
6ed21ee1c0
Fixed serial_device IRQ infinite loop bug due to uint8_t overflowing
2019-07-13 00:05:25 -04:00
Chun-Chieh Li
1e5a52a1fd
[Nuvoton] Fix mbedmicro-rtos-mbed-systimer/Wake up from deep sleep failing
...
This test requires total latency (tot = h/w + s/w) (wakeup from deepsleep) be
under 1ms. To check the issue, measure total latency on Nuvoton targets:
TARGET EXP(us) EXP+TOL(us) ACT(us)
NANO130 42000 43000 42939
NUC472 42000 43000 42236
M453 42000 43000 43274
M487 42000 43000 42877
M2351 42000 43000 43213
Checking h/w spec, h/w latency (wakeup time from normal power-down mode) on
M487/M2351 is just 1us (n/a on other targets). S/W latency plays the major
part here.
S/W latency relies on system performance. On Nuvoton targets, 'LPTICKER_DELAY_TICKS'
possibly complicates the test. Anyway, to pass the test, add extra 1ms latency
(deep-sleep-latency) in targets.json for Nuvoton targets.
2019-07-12 13:10:59 +08:00
Evelyne Donnaes
22c82dcb9c
Merge pull request #10692 from vmedcy/pr/psoc6-hal
...
PSOC6: initial integration of Cypress HAL
2019-07-11 17:28:23 +01:00
Volodymyr Medvid
b6524070eb
PSOC6: TARGET_PSOC6_FUTURE doesn't implement DEVICE_I2CSLAVE
2019-07-11 15:43:25 +03:00
Evelyne Donnaes
7db0e83836
Merge pull request #11013 from tymoteuszblochmobica/revert-10938-iar
...
Revert "K64F, STM32F429: IAR linker scripts dynamic heap fix"
2019-07-11 12:18:53 +01:00
Volodymyr Medvid
adfac3c1f9
PSOC6: do not remove QSPI from FUTURE_SEQUANA targets
...
Since QSPi is not yet supported by base TARGET_PSOC6,
there is no need to remove the device label from
FUTURE targets that inherit from TARGET_PSOC6.
This will need to be reverted back once the QSPI support
is implemented for Cypress PSOC6 targets.
2019-07-11 12:51:52 +03:00
Volodymyr Medvid
bab34cb467
PSOC6: cleanup DEVICE_QSPI mappings
...
Note: device_has: "QSPI" is still disabled for TARGET_PSOC6
(QSPI HAL implementation is incomplete).
2019-07-11 12:50:56 +03:00
Volodymyr Medvid
2524a67c38
Merge remote-tracking branch 'ARMmbed/master' into pr/psoc6-hal
2019-07-11 10:19:03 +01:00
Martin Kojtal
9fdfe3fa30
Merge pull request #11002 from NXPmicro/Add_Restricted_List
...
LPC546XX: Add pins to LPCXpresso restricted list
2019-07-11 08:14:20 +01:00
Tymoteusz Bloch
878c93673b
Reverted "K64F, STM32F429: IAR linker scripts dynamic heap fix"
...
due to side effect with K64F bootloader application jump after three consecutive HW resets.
2019-07-10 13:30:40 +02:00
Steven Cooreman
35851005ef
Fix wrongly declared ADC pinout for EFM32GG11 STK3701A
2019-07-10 11:27:29 +01:00
Volodymyr Medvid
140b72d3ed
Merge remote-tracking branch 'ARMmbed/master' into pr/psoc6-hal
2019-07-10 10:54:14 +01:00
Steven Cooreman
fb4d898f2e
Allow re-initializing an I2C peripheral
...
Allows the FPGA based test to pass, but requires #11004 before it will
2019-07-09 23:37:11 +01:00
Steven Cooreman
6094542bb1
Avoid the FPGA tester using hardware CS which is not supported
...
Also implement rudimentary spi_free...
2019-07-09 22:48:37 +01:00
Steven Cooreman
476dc6e46a
Fix for PWM output found by testing against FPGA shield
...
Two issues:
* Downcasting too early
* Potential for a uint32_t overflow in an intermediate calculation
Passing test requires #11005 to be merged.
2019-07-09 22:38:53 +01:00
Mahesh Mahadevan
aef60d7edf
LPC MCUXpresso: Remove extra I2C transaction on byte write
...
An extra start signal was observed on the bus which was
discovered by the FPGA test shield.
This is because the hardware sends out a transaction as soon
as a write to the START bit. Hence the write to the START
bit is delayed by using a flag.
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-07-09 16:05:28 -05:00
Mahesh Mahadevan
58ba83b6e4
LPC546XX: Add pins to LPCXpresso restricted list
...
FPGA GPIO tests cannot be run on certain pins
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-07-09 15:40:55 -05:00
Filip Jagodzinski
4842c87815
RDA5981X: Add SERIAL_FC
...
According to comment in the implementation this target supports the
hardware flow control on UART1 peripheral.
This patch fixes build errors after adding DEVICE_SERIAL_FC guards to
hal/serial_api.h.
2019-07-09 16:30:12 +02:00
Filip Jagodzinski
68d222b3d1
MPS2: Fix serial_init when FC is not used
...
After adding DEVICE_SERIAL_FC guards to serial_api.h
serial_set_flow_control is not available. In case of this
implementation, this function is a no-op and may be safely removed.
2019-07-09 16:12:32 +02:00
Filip Jagodzinski
86149e59d6
FVP_MPS2: Fix serial_init when FC is not used
...
After adding DEVICE_SERIAL_FC guards to serial_api.h
serial_set_flow_control is not available. In case of this
implementation, this function is a no-op and may be safely removed.
2019-07-09 16:05:04 +02:00
Martin Kojtal
647b5817ce
Merge pull request #10982 from jeromecoutant/PR_LPUART
...
STM32 LPUART minor update for easy maintenance
2019-07-09 08:33:06 +01:00
Chun-Chieh Li
21df0e00ce
[Nuvoton] Enlarge LPTICKER_DELAY_TICKS for safe
...
On Nuvoton targets, lp_ticker_set_interrupt(...) needs around 3 lp-ticker
ticks to take effect. It may miss when current tick and match tick are very
close (see hal/LowPowerTickerWrapper.cpp). Enlarge LPTICKER_DELAY_TICKS to
4 from 3 to address this boundary case.
2019-07-09 15:27:34 +08:00
Martin Kojtal
358046e472
Merge pull request #10989 from mprse/spi_fpga_basic_test_ext
...
SPI FPGA test extension + SPI driver fix (K64F)
2019-07-08 20:42:47 +01:00
Volodymyr Medvid
d77fb26e9f
PSOC6: fix license headers per review feedback
2019-07-08 18:25:03 +03:00
Arto Kinnunen
1264660314
Merge pull request #10972 from 0xc0170/test_target
...
add new target IM880B
2019-07-08 16:34:36 +03:00
Martin Kojtal
bd762ce03f
Merge pull request #10466 from jeromecoutant/PR_STM32H7_WATCHDOG
...
STM32H7: WATCHDOG and RESET_REASON support
2019-07-08 13:54:40 +01:00
Przemyslaw Stekiel
7d7c1416af
K64F SPI driver: Add the delay between CS assertion and first sclk edge
...
FPGA test shield requires at lease half slck period delay between CS assertion and first sclk edge.
2019-07-08 14:54:33 +02:00
Volodymyr Medvid
1501ffe704
PSOC6: remove CY8CKIT-062S2-4343W (not ready for release)
...
Also removed _M0 targets that are no longer used.
2019-07-08 14:49:26 +03:00
Volodymyr Medvid
5cc66282dd
PSOC6: remove PSA targets
2019-07-08 14:49:26 +03:00
Volodymyr Medvid
56f1d0613f
PSOC6: remove libwiced_drivers for targets ported to WHD
2019-07-08 14:49:26 +03:00
Volodymyr Medvid
d07ca87816
PSOC6: update Cypress boards to use TARGET_WHD
2019-07-08 14:49:26 +03:00
Volodymyr Medvid
8ede226c16
PSOC6: add WHD sources
2019-07-08 14:24:23 +03:00
Volodymyr Medvid
4f22853c1e
PSOC6: update BSP sources
2019-07-08 14:24:23 +03:00
Volodymyr Medvid
c647531767
PSOC6: update BSP GeneratedSource, add design.modus
2019-07-08 14:24:22 +03:00
Volodymyr Medvid
4bd47e9bca
PSOC6: update to latest psoc6pdl
2019-07-08 14:24:21 +03:00
Volodymyr Medvid
b562dd7895
PSOC6: update Cypress targets to use psoc6csp
2019-07-08 14:24:20 +03:00
Volodymyr Medvid
a9cd9482c0
PSOC6: add psoc6csp asset with Cypress HAL implementation
...
PSoC 6 Chip Support Package provides hardware abstraction layer
for Cypress PSoC 6 device peripherals.
2019-07-08 13:26:46 +03:00
Chun-Chieh Li
3d905b0607
[NUC472] Override wait_ns(...) to provide more accurate implementation
...
NUC472 series doesn't support cache but supports branch buffer. But it still
cannot provide zero-wait state flash performance.
2019-07-08 17:52:26 +08:00
Chun-Chieh Li
2b9ee2a93f
[NANO130] Override wait_ns(...) to provide more accurate implementation
...
NANO100 series doesn't support cache and so cannot provide zero-wait state
flash performance.
2019-07-08 17:52:26 +08:00
Chun-Chieh Li
a03985ea43
[M2351] Refine wait_ns(...) code
...
1. Add missing header file for mbed_mpu_manager_lock_ram_execution()/
mbed_mpu_manager_unlock_ram_execution() to avoid compile warning.
2. Locate delay_loop_code() on 16-byte boundary (sync to common version).
3. Optimize delay_loop macro (sync to common version).
2019-07-08 17:51:49 +08:00
Volodymyr Medvid
c9105eb068
PSOC6: use prebuilt CM0+ C arrays instead of HEX images
...
Replace the prebuilt CM0+ HEX images with C files that provide the
variable cy_m0p_image placed to the combined ELF image with linker
script. This simplifies build flow of PSoC 6 application and improves
compatibility with IDE export targets. It is still possible to use
the custom prebuilt HEX images for PSA targets that remove CM0P_SLEEP
label and specify the `hex_filename` in targets.json.
Linker scripts are compatible with both scenarios.
2019-07-08 10:41:02 +01:00
Volodymyr Medvid
9d983478d7
PSOC6: add psoc6cm0p asset with prebuilt CM0+ C arrays
2019-07-08 10:33:48 +01:00
Volodymyr Medvid
903085d066
PSOC6: format extra labels for Cypress kits
2019-07-08 10:31:14 +01:00
Arto Kinnunen
3d65ace77a
Merge pull request #10950 from artokin/Update_freescale_K6xF_linker_files
...
Enable split heap in K64F/K66F devices
2019-07-08 11:46:30 +03:00
jeromecoutant
8a3fd6a040
STM32 LPUART update
2019-07-05 17:52:41 +02:00
jeromecoutant
923be9e20e
NUCLEO_H743ZI: enable WATCHDOG back
2019-07-05 14:44:47 +02:00
jeromecoutant
8b6d0920a8
STM32H7: Reset Reason update
2019-07-05 14:44:45 +02:00
jeromecoutant
aa31b1268a
STM32H7 watchdog patch
2019-07-05 14:44:43 +02:00
jeromecoutant
da9b919268
STM32H7: Increase watchdog timeout value
2019-07-05 14:44:41 +02:00
jeromecoutant
3384cea281
STM32H7 : add LSI
2019-07-05 14:44:39 +02:00
Martin Kojtal
97d50ed936
Merge pull request #10873 from ganesh-ramachandran/m3hq_newfeatures
...
Add new features to Toshiba's TMPM3HQ
2019-07-05 13:06:46 +01:00
Martin Kojtal
e08b7137a6
Merge pull request #10874 from ganesh-ramachandran/m3h6_newfeatures
...
Add new features to Toshiba's TMPM3H6
2019-07-05 13:06:03 +01:00
Arto Kinnunen
d7190c8af4
Adjust K66F GCC_ARM linker file
...
Move heap_0 after .data as it is also placed to m_data.
2019-07-05 14:59:35 +03:00
Martin Kojtal
1eeed8c0e5
Merge pull request #10968 from teetak01/fix-mtb-stm-s2lp-for-client
...
Add FLASHIAP for MTB_STM_S2LP
2019-07-05 11:21:48 +01:00
Martin Kojtal
b47064ae65
Merge pull request #10933 from tymoteuszblochmobica/chache
...
Nordic NRF52832 cache ON
2019-07-05 10:09:59 +01:00
itziar
c327f4f070
add new target IM880B
2019-07-05 09:19:51 +01:00
Martin Kojtal
a56247317e
Merge pull request #10798 from ThunderSoft123/master
...
TARGET_TT:Add GPIO INT pin with PT1
2019-07-05 08:57:34 +01:00
Teemu Takaluoma
0726e2f13b
Add FLASHIAP for MTB_STM_S2LP
...
Fix device management client compilation on MTB_STM_S2LP
Fixes:
./mbed-cloud-client/mbed-client-pal/Source/Port/Reference-Impl/OS_Specific/mbedOS/ROT/pal_plat_rot.cpp:67:5: error: 'DeviceKey' was not declared in this scope
DeviceKey &devkey = DeviceKey::get_instance();
2019-07-05 10:26:26 +03:00
Ganesh Ramachandran
61ad427a35
Changes for RTC peripheral status
2019-07-03 17:58:47 +05:30
Ganesh Ramachandran
b4c0ce3a7e
Changes for RTC peripheral status
2019-07-03 17:57:49 +05:30
Ganesh Ramachandran
3d48b7c1cc
Changes for RTC peripheral status
2019-07-03 17:50:26 +05:30
Ganesh Ramachandran
6841f4a73a
Added new features to TMPM3HQ
2019-07-03 17:18:10 +05:30
Ganesh Ramachandran
bcaeddcb35
Removed dead code in TMPM4G9 - rtc_api.c
2019-07-03 17:10:30 +05:30
Ganesh Ramachandran
6eb07c1beb
ARMC5 updated to ARM for TMPM4G9
2019-07-03 17:10:29 +05:30
Ganesh Ramachandran
4bbc29f32c
Added SPDX identifier
2019-07-03 17:10:29 +05:30
Ganesh Ramachandran
2384b69b16
Added new features to TMPM4G9
2019-07-03 17:10:29 +05:30
Ganesh Ramachandran
2fee8d7390
Added new features to TMPM3H6
2019-07-03 17:01:41 +05:30
Martin Kojtal
608e4c245f
Merge pull request #10938 from tymoteuszblochmobica/iar
...
K64F, STM32F429: IAR linker scripts dynamic heap fix
2019-07-03 12:00:35 +01:00
Martin Kojtal
0e3a96305c
Merge pull request #10939 from AGlass0fMilk/fix-nrf52840-adc-resolution
...
Fix SAADC resolution for nRF52-based targets
2019-07-03 11:47:17 +01:00
Martin Kojtal
ccb63d771e
Merge pull request #10857 from ARMmbed/feature-watchdog
...
Add Watchdog and ResetReason
2019-07-03 11:43:52 +01:00
Kevin Bracey
810cb8de4a
Enable split heap in K64F/K66F devices
...
-Enable MBED_SPLIT_HEAP for K64F and K66F
-Allow GCC_ARM toolchain to utilize remaining 64K memory area
-Make ARM toolchain to start memory filling from 64K region to leave
more space to bigger 192K region.
2019-07-03 11:47:32 +03:00
Martin Kojtal
149d53cc89
Merge pull request #10619 from jamesbeyond/fm-iap
...
Fastmodel: enable flashIAP and kvstore
2019-07-02 14:23:00 +01:00
Martin Kojtal
a84c239830
Merge pull request #10701 from LMESTM/STM_lp_ticker_low_level_wrapper
...
STM: replace C++ low power ticker wrapper with a low level wrapper
2019-07-02 12:50:11 +01:00
Martin Kojtal
fd445a57cb
Watchdog: remove config value for timeout, set it dynamically
...
Use start method to set timeout
2019-07-02 12:46:23 +01:00
Martin Kojtal
7b0915c7d4
Watchdog: refactor driver
...
Watchdog is hardware driver. It interacts with HAL - provides wrapper to interact with the peripheral.
Provides basic functionality: start/stop, get timeout/max timeout.
It is automatically kicked by a timer, according to the timeout set in ctor.
2019-07-02 12:46:23 +01:00
Martin Kojtal
8b49ffc0c3
Merge pull request #10920 from NXPmicro/Update_Kinetis_SDK_Clock_Driver
...
Kinetis MCUXpresso: Update the clock drivers
2019-07-02 12:44:09 +01:00
George Beckstein
f2b88362fb
Apply same resolution fix to nRF52832 targets
2019-07-01 12:22:04 -04:00
George Beckstein
b08a26bfa0
Fix SAADC resolution set in sdk_config. analogin_read_u16 assumes 12-bit range but config was set to 10 bit range causing incorrect readings to be returned.
2019-07-01 12:09:27 -04:00
Tymoteusz Bloch
83057c95d0
IAR icf linker scripts modified to use dynamic heap allocation of all available memory.
2019-07-01 17:57:40 +02:00
Tymoteusz Bloch
1af0fe89b8
Nordic NRF52832 onboard instruction cache is turned ON to increase MCU performance
2019-07-01 15:08:53 +02:00
Kevin Bracey
1ced842391
STM: Correct macro test in us_ticker_defines.h
...
Avoids build warning caused by #10609
2019-07-01 13:34:55 +03:00
Martin Kojtal
279925b6fc
Merge pull request #10869 from mathias-arm/master
...
LPC55S69: fix cosFactor data size in header file
2019-07-01 09:27:57 +01:00
Martin Kojtal
be2c2bed30
Merge pull request #10884 from jeromecoutant/PR_H743ZI2
...
NUCLEO_H743ZI2 new target support
2019-07-01 09:27:31 +01:00
Martin Kojtal
9e0dc3e198
Merge pull request #10859 from malavikasajikumar/master
...
Removing I2C and SPI pin names in SDP-K1 PinNames.h file.
2019-07-01 09:23:06 +01:00
Martin Kojtal
d71db32154
Merge pull request #10881 from AGlass0fMilk/fix-nrf52-critical-region-api
...
Fix Nordic/Mbed Critical Section API Inconsistency (In Builds w/o Softdevice)
2019-07-01 09:18:10 +01:00
Laurent Meunier
6331034bd1
STM32 with low level ticker wrapper require Extra Idle stack
2019-07-01 09:33:23 +02:00
Laurent Meunier
58a4685811
STM32: lp_ticker optim: initialize handle once only
2019-07-01 09:33:23 +02:00
Laurent Meunier
ee95c7e64a
STM32: lp_ticker optim: remove irq_handler variable
2019-07-01 09:33:23 +02:00
Laurent Meunier
8616cd7655
Update comments and fix typo
2019-07-01 09:33:23 +02:00
Laurent Meunier
501881bf38
Update warning now that C++ wrapper is not needed anymore
...
Now we'd rather not use this wrapper and use instead the low level
wrapper implemented in this driver.
2019-07-01 09:33:22 +02:00
Laurent Meunier
6397a6189f
STM32 targets: remove tickless from us ticker and delay ticker
...
For L0/L4/H7/F7/WB targets that have tickless enabled, remove the tickless from
us ticker and the delay ticks as the C++ wrapper layer is being removed
and replaced by the low layer handling.
For now, the few F4 targets with LPTIM are left with previous configuration
as test results are showing a few instabilities not yet understood.
2019-07-01 09:33:22 +02:00
Laurent Meunier
d4ec62ff0c
Manage lp_ticker delay at low level
...
LP TICKER mbed-os wrapper needs to be disabled as it introduces too much latencies.
LP TICKER wrapper has been disabled and we need to managed the HW constraints at low level:
- main HW constraint is that once the comparator has been programmed once,
driver cannot program it again before CMPOK HW flag is set, which takes about 3 30us cycles.
To make it even more complex, the driver also needs to cope with "LP ticker workaround"
See commit:
LP ticker workaround
There is an errata in LPTIM specification that explains that CMP Flag
condition is not an exact match (COUNTER = MATCH) but rather a
comparison (COUNTER >= MATCH).
Also the disable interrupt is more complete now:
- always check sleep manager status and restore it
- remove irq_handler as comparator is always programed and might get called
eventually when LP TICK is restarted
- reset delayed_prog
Also in set_interrupt, make sure interrupt does not fire early.
If needed, we decide to slightly delay the tick to cope with the HW limitation to
make sure it will fire as soon as HW is capable.
Functions are called under critical section as they may be called from
the IRQ handler now, not only from driver layer.
2019-07-01 09:31:53 +02:00
Laurent Meunier
6452eb3172
LP ticker workaround
...
There is an errata in LPTIM specification that explains that CMP Flag
condition is not an exact match (COUNTER = MATCH) but rather a
comparison (COUNTER >= MATCH).
As a consequence the interrupt is firing early than expected when
programing a timestamp after the 0xFFFF wrap-around.
In order to
work-around this issue, we implement the below work-around.
In case timestamp is after the work-around, let's decide to program the
CMP value to 0xFFFF, which is the wrap-around value. There would anyway be
a wake-up at the time of wrap-around to let the OS update the system time.
When the wrap-around interrupt happen, OS will check the current time and
program again the timestamp to the proper value.
2019-07-01 09:31:53 +02:00
Mahesh Mahadevan
6c674ec0c7
Kinetis MCUXpresso: Update the clock drivers
...
Updated driver includes
1. Bug fixes
2. Formatting updates.
3. Fix for warnings
4. Better code commenting
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-06-28 10:09:52 -05:00
Martin Kojtal
85c477c1dc
Merge pull request #10609 from kjbracey-arm/us_ticker_optimise
...
wait_us optimization
2019-06-28 14:29:00 +01:00
Martin Kojtal
61c4d05ce9
Merge pull request #10824 from ABOSTM/PRSTM32_PWMWRTIE_GLITCH_10734
...
STM32: pwmout_write: configure channel only when not already enabled
2019-06-28 14:24:14 +01:00
Martin Kojtal
201a264051
Merge pull request #10791 from hugueskamba/fix-lpc55s69-bootloader-segmentation
...
bootloader: Fix LPC55S69 bootloader segmentation
2019-06-27 10:22:55 +01:00
Martin Kojtal
d4aab5669d
Merge pull request #10888 from devran01/issue/10883
...
Remove macro MBEDTLS_PSA_CRYPTO_C from PSA targets
2019-06-27 10:10:47 +01:00
ThunderSoft_mbed_os
edeeb33ba7
Update gpio_irq_api.c
2019-06-26 22:33:31 +08:00
Hugues Kamba
b0804c4a0d
bootloader: Fix LPC55S69 bootloader segmentation
...
As the build tool in mbed-os 5.13 cannot appropriately deal with a segmented
bootloader when combining it with an application, this commit adjusts the
size reserved for interrupts (via the linker file) to avoid a bootloader
segmentation due to an unpopulated ROM area.
The microcontroller has a total of 60 vector interrupts + 16 exception
handlers. The allocated ROM flash for interrupts should be (60 + 16) x word
size in bytes = 76 x 4 = 304 = 0x130.
This commit changes the interrupt reserved space from 0x140 to 0x130.
2019-06-26 13:55:07 +01:00
Martin Kojtal
924af9481e
Merge pull request #10841 from VVESTM/vve_10827_spi_count
...
TARGET_STM: Add DEVICE_SPI_COUNT to use SPIs without interference
2019-06-26 09:09:38 +01:00
Martin Kojtal
b0073bb70d
Merge pull request #10774 from fkjagodzinski/fix-uart_irq
...
Fix serial IRQ handling
2019-06-25 15:49:41 +01:00
Martin Kojtal
fa2e0217f2
Merge pull request #10856 from jeromecoutant/PR_CRC_LO
...
STM32: enable CRC for all L0/L4/F7
2019-06-25 11:08:08 +01:00
Devaraj Ranganna
bd9d615897
Remove MBEDTLS_PSA_CRYPTO_C from PSA NS targets
...
Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2019-06-25 09:55:59 +01:00
Devaraj Ranganna
cb8f2c07a1
1. Include MBEDTLS_CONFIG_FILE before evaluating MBEDTLS_PSA_CRYPTO_C
...
2. Remove macro MBEDTLS_PSA_CRYPTO_C from PSA targets
Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2019-06-24 14:33:04 +01:00
George Beckstein
15cd907d35
Fix alignment
2019-06-24 08:34:54 -04:00
jeromecoutant
d2ea0f9432
NUCLEO_H743ZI2 new target support
2019-06-24 11:00:58 +02:00
ThunderSoft_mbed_os
24384a0fa0
Update gpio_irq_api.c
2019-06-23 22:00:51 +08:00
George Beckstein
f548f558da
Fixed bug causing Nordic drivers to use a different critical section API from Mbed. This caused conflicts when Nordic's critical section API would globally reenable interrupts while Mbed still expected to be in a critical section.
2019-06-20 14:54:10 -04:00
Alexandre Bourdiol
a339084684
STM32: pwmout_write: configure channel only when not already enabled
...
Fix PWM glitch on write(), TARGET_STM/pwmout_api.c, #10734
2019-06-20 17:49:16 +02:00
Maciej Bocianski
fcde82ba4f
HAL I2C: adds missing DEVICE_I2C guards
2019-06-19 23:08:55 +02:00
Mathias Brossard
ccbb26e2f3
LPC55S69: fix cosFactor data size in header file
...
The file 'fsl_powerquad_data.h' declares several dctXXX_cosFactor
arrays with sizes twice larger compared to the actual definitions in
'fsl_powerquad_data.c'.
2019-06-19 15:17:18 -05:00
Anna Bridge
4bd1d15d01
Merge pull request #10795 from jamesbeyond/fm_m0p_no_mpu
...
FastModel: trun off MPU for FVP_MPS2_M0P
2019-06-19 12:39:17 +01:00
Anna Bridge
32c8bf5969
Merge pull request #10792 from hugueskamba/fix-lpc55s69-sector-size
...
Fix: Allow target size restriction for LPC55S69
2019-06-19 12:36:22 +01:00
Anna Bridge
2a7635f536
Merge pull request #10782 from d-kato/rza1_armc6
...
GR_LYCHEE,RZ_A1H,VK_RZ_A1H: Fix greentea test failure with ARMC6
2019-06-19 12:33:28 +01:00
Anna Bridge
372f9c89fc
Merge pull request #10769 from vmedcy/pr/psoc6-softfp
...
PSOC6: add SOFTFP to standard component list
2019-06-19 12:31:15 +01:00
Anna Bridge
ac274833f0
Merge pull request #10741 from OpenNuvoton/nuvoton_m2351_wait-ns
...
M2351: Override wait_ns to provide more accurate implementation
2019-06-19 12:22:56 +01:00
Anna Bridge
07f1e068a9
Merge pull request #10689 from AGlass0fMilk/nrf52840-usbphy-implementation
...
nRF52840 USB Device Implementation
2019-06-18 16:28:20 +01:00
Malavika Sajikumar
6632282b4a
Removing I2C and SPI pin names in SDP-K1 PinNames.h file.
...
This is to ensure the use of Arduino pin names Dxx for I2C and SPI pins in programs written for SDP-K1 board.
2019-06-18 08:15:01 -07:00
jeromecoutant
e10d2c8499
STM32: enable CRC for all L0/L4/F7
2019-06-18 13:53:04 +02:00
Vincent Veron
31eb49b918
TARGET_STM: Add DEVICE_SPI_COUNT to use SPIs without interference
...
Extend to all STM targets the work done on PR10752.
Signed-off-by: Vincent Veron <vincent.veron@st.com>
2019-06-14 14:15:56 +02:00
Qinghao Shi
2ddb55007c
fix IAR compile error on fastmodels
2019-06-14 10:59:16 +03:00
Kevin Bracey
8d15a2342f
STM: optimize us_ticker
...
Provide new optimizations for us_ticker and wait_us.
2019-06-14 10:22:08 +03:00
Kevin Bracey
e5e2e0ac22
Freescale MCUXpresso: optimize us_ticker
...
Provide new optimizations for us_ticker and wait_us.
2019-06-14 10:22:08 +03:00
Kevin Bracey
57310729d4
wait_us optimization
...
As the timer code became more generic, coping with initialization on
demand, and variable width and speed us_ticker_api implementations,
wait_us has gradually gotten slower and slower.
Some platforms have reportedly seen overhead of wait_us() increase from
10µs to 30µs. These changes should fully reverse that drop, and even
make it better than ever.
Add fast paths for platforms that provide compile-time information about
us_ticker. Speed and code size is improved further if:
* Timer has >= 2^32 microsecond range, or better still is 32-bit 1MHz.
* Platform implements us_ticker_read() as a macro
* Timer is initialised at boot, rather than first use
The latter initialisation option is the default for STM, as this has
always been the case.
2019-06-14 10:22:08 +03:00
Martin Kojtal
5a8f795976
Merge pull request #10804 from VVESTM/vve_fix_10589
...
TARGET_STM: SPI: update pull up config depending on clk polarity
2019-06-14 07:45:25 +01:00
Chun-Chieh Li
016ab2a417
[Nuvoton] Fix channel release in analogout_free()
2019-06-13 18:11:50 +08:00
Anna Bridge
4ad71c4d65
Merge pull request #10802 from Patater/update-to-mbedtls-2.18.0rc4
...
Update to mbedtls 2.18.0rc3
2019-06-12 16:09:02 +01:00
Anna Bridge
378e997e25
Merge pull request #10753 from desmond-blue/feature-fix-nrf52-uart-count
...
Fix nrf52 enabled uart count and enable uart0/1
2019-06-12 14:50:12 +01:00
Jaeden Amero
39ea40fed3
psa: Avoid re-definition of MBEDTLS_PSA_CRYPTO_C
...
Mbed TLS now enables PSA APIs by default on all targets. It's not
necessary to explicitly enable MBEDTLS_PSA_CRYPTO_C, as that can be
gotten from the Mbed TLS config.h.
However, many PSA targets depend on `-DMBEDTLS_PSA_CRYPTO_C` being
defined by the Mbed OS json configuration system and are not yet
properly including the Mbed TLS configuration; for these PSA targets,
warnings may remain until this issue is fixed.
Avoiding re-definition will eliminate warnings like the following, when
building mbed-os-example-blinky:
Compile [ 14.5%]: pal_client_api_empty_intf.c
[Warning] pal_client_api_intf.h@35,0: "PSA_SUCCESS" redefined
Compile [ 14.6%]: pal_client_api_intf.c
Compile [ 14.7%]: DeviceKey.cpp
Compile [ 14.9%]: pal_internal_trusted_storage_intf.c
[Warning] pal_internal_trusted_storage_intf.c@45,9: 'psa_its_set' is deprecated: PS specific types should not be used [-Wdeprecated-declarations]
Compile [ 15.3%]: val_attestation.c
[Warning] client.h@40,0: "PSA_VERSION_NONE" redefined
<..>
Compile [ 33.3%]: asn1parse.c
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 33.5%]: aes.c
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 33.6%]: asn1write.c
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 33.7%]: psa_crypto.c
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 33.8%]: blowfish.c
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 33.9%]: camellia.c
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 34.0%]: base64.c
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 34.2%]: ccm.c
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 34.3%]: chacha20.c
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 34.4%]: chachapoly.c
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 34.5%]: cipher_wrap.c
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 34.6%]: cmac.c
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 34.7%]: cipher.c
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 34.9%]: bignum.c
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 35.0%]: des.c
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 35.1%]: dhm.c
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 35.2%]: ctr_drbg.c
<..>
Compile [ 70.9%]: EthernetInterface.cpp
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 71.0%]: InternetSocket.cpp
Compile [ 71.1%]: L3IPInterface.cpp
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 71.2%]: NetworkInterface.cpp
2019-06-12 12:47:20 +01:00
desmond.chen
d5624b6ec6
Fix nrf52 enabled uart count and enable uart0/1
2019-06-12 15:36:09 +08:00
Martin Kojtal
09ea361c7e
Merge pull request #10790 from jeromecoutant/PR_H7_LPUART
...
STM32H7 enable LPUART
2019-06-11 09:06:22 +01:00
Martin Kojtal
94d2a42fd5
Merge pull request #10793 from jeromecoutant/PR_STM32WARNING
...
STM32: remove compilation warnings
2019-06-11 07:36:47 +01:00
Martin Kojtal
fbcae489a0
Merge pull request #10762 from mprse/reenable_tests
...
Disable only time drifting test cases and fix GREENTEA_SETUP() call in tests
2019-06-11 07:35:41 +01:00
panyz0725@thundersoft.com
4f107cc061
Add GPIO INT pin with PT1
2019-06-10 09:46:04 +08:00
Martin Kojtal
9dfc8d0ea7
Merge pull request #10775 from jeromecoutant/PR_H7_REFACTOR
...
STM32H7: refactor TARGET directory
2019-06-09 18:22:04 +01:00
Martin Kojtal
356c4fb7cb
Merge pull request #10758 from toyowata/stm32f407xe
...
Move Seeed ARCH_MAX to TARGET_STM32F407xE MCU
2019-06-09 18:20:03 +01:00
Martin Kojtal
dbe274ccf0
Merge pull request #10757 from petroborys/master
...
Add support I2C 3 for target EFM32G11
2019-06-09 18:19:42 +01:00
Martin Kojtal
9ab0e09699
Merge pull request #10752 from teijokinnunen/stm32l0_target_spi_count
...
STM32L0: Add DEVICE_SPI_COUNT to DISCO_L072CZ_LRWAN1 + MTB_MURATA_ABZ
2019-06-09 18:19:34 +01:00
Martin Kojtal
5581da56c9
Merge pull request #10751 from ThunderSoft123/master
...
TARGET_TT:Setting wisely pin mode for TT_M3HQ.
2019-06-09 18:19:05 +01:00
Martin Kojtal
b683f4252e
Merge pull request #10739 from OpenNuvoton/nuvoton_m487_wait-ns
...
M487: Fix wait_ns test failed
2019-06-09 18:16:34 +01:00
Martin Kojtal
ced4c3f4e4
Merge pull request #10708 from VVESTM/vve_fix_10671
...
TARGET_STM: SPI: add pulse on master transmissions
2019-06-09 18:10:42 +01:00
Martin Kojtal
dda79d4d23
Merge pull request #10695 from Ronny-Liu/master
...
GD32_F450ZI : Add bootloader support
2019-06-09 18:06:25 +01:00
Martin Kojtal
dc77c40fe9
Merge pull request #10709 from LDong-Arm/nrf52_cordio
...
Default to Cordio BLE stack for NRF52* targets
2019-06-09 18:03:34 +01:00
Qinghao Shi
288a685be4
modify targets.json to trun off MPU
2019-06-07 18:36:13 +01:00
Qinghao Shi
153ea175e8
correct CMSDK for M0Plus due to MPU is not presented
2019-06-07 18:35:25 +01:00
jeromecoutant
5ac7c8c77e
STM32WB warning compilation
...
[-Wparentheses-equality]
2019-06-07 18:11:16 +02:00
jeromecoutant
ddcc63276a
STM32H7 warning compilation
...
[-Wparentheses-equality]
2019-06-07 18:11:04 +02:00
jeromecoutant
39ee51a017
STM32L4 warning compilation
...
[-Wparentheses-equality]
2019-06-07 18:10:17 +02:00
jeromecoutant
43a304351a
STM32L1 warning compilation
...
[-Wparentheses-equality]
2019-06-07 18:10:17 +02:00
jeromecoutant
daf8d114c4
STM32L0 warning compilation
...
[-Wparentheses-equality]
2019-06-07 18:10:17 +02:00
jeromecoutant
7d05f22b31
STM32F7 warning compilation
...
[-Wparentheses-equality]
[-Wsign-compare]
2019-06-07 18:10:03 +02:00
jeromecoutant
09a58b5203
STM32F4 warning compilation
...
[-Wparentheses-equality]
2019-06-07 18:08:51 +02:00
jeromecoutant
89f554fb53
STM32F3 warning compilation
...
[-Wparentheses-equality]
2019-06-07 18:08:51 +02:00
jeromecoutant
f3c7cc9d47
STM32F2 warning compilation
...
[-Wparentheses-equality]
2019-06-07 18:08:51 +02:00
jeromecoutant
8c2ee68be1
STM32F1 warning compilation
...
[-Wparentheses-equality]
2019-06-07 18:08:50 +02:00
jeromecoutant
7154ac65f2
STM32F0 warning compilation
...
[-Wparentheses-equality]
2019-06-07 18:08:50 +02:00
jeromecoutant
5d80f9e98f
STM32: remove compilation warning
2019-06-07 18:08:39 +02:00
jeromecoutant
a90e68e788
STM32H7 UART: enable LPUART
2019-06-07 18:05:06 +02:00
Hugues Kamba
06c3a5bf25
Fix: Allow target size restriction for LPC55S69
...
The build tool uses the sector size found in the CMSIS Pack to determine if
the size that can be specified by `target.restrict_size` is enough to fit
all the parts of a given binary. See `target.restrict_size` documentation
in the Mbed OS manual for more information.
The sector size found in the CMSIS Pack is overriden to allow the build
tool to accurately make the decision.
The target's sectors in the CMSIS Pack are defined in 32KB pages.
However, you can erase pages at the 512 byte level.
This commit changes defined sector erase size to 512 bytes instead of
32 Kilobytes.
2019-06-07 16:57:25 +01:00
Filip Jagodzinski
8e3ca20817
K82F: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 16:47:59 +02:00
Filip Jagodzinski
3119d69f0e
KL27Z: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 16:46:53 +02:00
Filip Jagodzinski
9efaabe404
K66F: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 16:41:36 +02:00
Filip Jagodzinski
68269672c4
KL43Z: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 16:41:09 +02:00
Filip Jagodzinski
5f95c5fc85
KL82Z: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 16:37:49 +02:00
Filip Jagodzinski
0b33e8f976
KW24D: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 16:35:36 +02:00
Filip Jagodzinski
96b6cd3ee6
KW41Z: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 16:33:42 +02:00
Filip Jagodzinski
01e130ba83
K24F: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 16:19:25 +02:00
Filip Jagodzinski
f60850ad50
K22F: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 16:17:07 +02:00
Filip Jagodzinski
14b83e7fdf
STM32WB: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 15:36:21 +02:00
Filip Jagodzinski
53222fa448
STM32L4: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 15:33:49 +02:00
Filip Jagodzinski
fa0cc68657
STM32H7: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 15:30:03 +02:00
Filip Jagodzinski
d6a48218ee
STM32F3: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 15:26:20 +02:00
Filip Jagodzinski
b88b94eb75
STM32L0: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 15:17:22 +02:00
Filip Jagodzinski
c387bd889f
STM32F0: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 15:17:17 +02:00
Filip Jagodzinski
84384162bb
STM32F7: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 15:17:07 +02:00
Filip Jagodzinski
94c27aa750
K64F: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 15:17:07 +02:00
d-kato
4dc3b0e269
Fix bugs by optimization
2019-06-07 11:14:03 +09:00
Przemyslaw Stekiel
86dab2f9fa
Disable time drifting test cases.
...
Time drifting test cases use serial communication with the host and are unstable on CI.
Skip time-drifting test cases if SKIP_TIME_DRIFT_TESTS macro is defined.
The idea for the future is to use FPGA test shield for timing tests instead of host scripts.
Also remove `__ARM_FM` macro which in most cases was used to disable time drifting tests. In other cases replace `__ARM_FM` with `TARGET_ARM_FM` which is more suitable.
2019-06-06 21:48:04 +02:00
Qinghao Shi
07c3d90a5c
FastModel: change Fastmodel memory layout regions from 3 to 2
...
- change memoryzones.h
- change linker scripts for each toolchains
2019-06-06 18:54:59 +01:00
Qinghao Shi
2e4329192e
FastModel: enable FLASHIAP componment
2019-06-06 18:52:30 +01:00
Vincent Veron
82979f6415
TARGET_STM: SPI: update pull up config depending on clk polarity
...
Fix #10589
Signed-off-by: Vincent Veron <vincent.veron@st.com>
2019-06-06 17:06:04 +02:00
Martin Kojtal
489bd10626
Merge pull request #10629 from trowbridgec/add-target-ep-agora
...
Add support for the Embedded Planet Agora target
2019-06-06 14:50:14 +01:00
jeromecoutant
25e4316963
STM32H7 directory cleanup and refactoring
2019-06-06 10:48:11 +02:00
jeromecoutant
119ff51fee
STM32H7: use default files from ST drivers delivery
2019-06-06 10:48:09 +02:00
jeromecoutant
5b53b3aae0
STM32: define USE_FULL_LL_DRIVER at top level
2019-06-06 10:48:08 +02:00
panyz0725@thundersoft.com
ed81f8e428
Setting wisely pin mode for TT_M3HQ
2019-06-06 10:16:31 +08:00
Volodymyr Medvid
f4bfbf3056
PSOC6: add SOFTFP to standard component list
...
This allows Cypress to deliver middleware libraries with
precompiled libraries for SoftFP ahd HardFP, separated by
component-specific sub-directories:
COMPONENT_SOFTFP/TOOLCHAIN_GCC_ARM/libcy_capsense.a
COMPONENT_HARDFP/TOOLCHAIN_GCC_ARM/libcy_capsense.a
2019-06-05 16:32:16 +03:00
toyowata
f1628f0b8d
Correct SPDX identifiers
2019-06-05 19:04:55 +09:00
Lingkai Dong
ffcceb0cb7
Default to Cordio BLE stack for NRF52* targets
...
The BLE stack from SoftDevice is not actively maintained and
has issues when used with Nordic SDK v15.
2019-06-05 09:53:53 +01:00
toyowata
9acf2c325c
Fix device_name and add SPDX identifiers
2019-06-05 16:48:08 +09:00
toyowata
f0a06b24ba
Remove ARCH_MAX files from STM32F407xG
2019-06-05 14:51:06 +09:00
toyowata
db2cac45f1
Move Seeed ARCH_MAX to TARGET_STM32F407xE MCU
2019-06-05 14:35:25 +09:00
petroborys
54fe348078
Add support I2C 3 (#ifdef I2C2) for target EFM32G11
2019-06-04 14:31:33 +00:00
Teijo Kinnunen
728c01f9e3
STM32L0: Add DEVICE_SPI_COUNT to DISCO_L072CZ_LRWAN1 + MTB_MURATA_ABZ
...
Enables simultaneous use of both SPIs without interference.
2019-06-04 09:38:20 +03:00
Hennadiy Kytsun
7447cac66c
Cypress: Fix issue #10613
2019-06-03 16:26:52 +03:00
Rajkumar Kanagaraj
400b2ee8a7
Add HwWatchdog
...
- mbed_watchdog_mgr has interface name mbed_wdog_manager_start(),mbed_wdog_manager_stop(),mbed_wdog_manager_kick()
- HwWatchdog is going to attach with LowPowerTIcker for periodic callback functionality
- mbed_wdog_manager_start() will either get start either by BL/RTOS Aps,it reads the timeout value specified via macro and macro gets defined in target.json file.
- mbed_wdog_manager_start() internally configure below HAL hw watchdog with timeout specified via target.json
- mbed_wdog_manager_start() internally divide the timeout(specified in target.json) by the 2 and attach LowPowerTicker with periodic callback of hw_kick()
- mbed_wdog_manager_start() internally create one instance of sw watchdog class,to access the static list data structure of sw watchdog class
- mbed_wdog_manager_kick() function periodically get called and refresh the hw watchdog to avoid watchdog reset
- converted C++ code into C based APIs
- added boolean to control watchdog start and stop
- Added detach from ticker on stop API
2019-06-03 15:23:56 +02:00
Chun-Chieh Li
197b328944
[M2351] Override wait_ns to provide more accurate implementation
...
At high HCLK rate, M2351 cannot provide zero-wait-state flash performance. Besides,
cache is forcibly turned off for non-secure land for internal reason. We locate
'delay_loop_code' from flash to SRAM to achieve zero-wait-state performance.
2019-06-03 16:47:14 +08:00
Vincent Veron
16475829f1
TARGET_STM: SPI: add pulse on master transmissions
...
Add a pulse when using hardware chip select for SPI transmissions.
CS is at low level when a transmission is on-going.
Be careful, this is not compatible with all modes. It will work only
if PHA is 0, ie spi mode is 0 or 2. See stm32xx reference manual,
chapter "NSS pulse mode" for more details.
Fix #10671
Signed-off-by: Vincent Veron <vincent.veron@st.com>
2019-06-03 10:00:06 +02:00
Martin Kojtal
93e4a8251c
Merge pull request #10697 from jeromecoutant/PR_H7FLASH
...
STM32H7: flash issue while erasing sector in Bank 1
2019-06-03 08:35:29 +01:00
Chun-Chieh Li
010f4225a0
[M487] Fix wait_ns test failed
2019-06-03 11:28:26 +08:00
Chris Trowbridge
cea7bbd815
Remove component 'QSPIF' for target 'EP_AGORA'
2019-05-31 09:58:23 -04:00
Martin Kojtal
8a5f25c2ea
Merge pull request #10663 from vmedcy/psoc6-cmsis
...
PSOC6: move cmsis.h and device.h out from psoc6pdl directory
2019-05-31 12:35:26 +01:00
Martin Kojtal
8aeba87f25
Merge pull request #10674 from ThunderSoft123/master
...
TARGET_TT: adding switches to PinNames
2019-05-31 12:35:10 +01:00
Martin Kojtal
7ebadbfac3
Merge pull request #10676 from jeromecoutant/PR_COMMON_CMSIS
...
STM32: common cmsis.h and device.h files
2019-05-31 12:34:53 +01:00
Martin Kojtal
99b19098b8
Merge pull request #10686 from ale87jan/master
...
MAX32630.sct fix
2019-05-31 12:34:01 +01:00
Chris Trowbridge
7531c2bb56
Remove unneeded custom_board.h file
2019-05-30 14:16:29 -04:00
Filip Jagodzinski
f4e6966e14
Remove RESET_REASON from MCU_NRF52840
2019-05-29 10:25:51 +02:00
jeromecoutant
58994d88cd
STM32H7: flash issue while erasing sector in Bank 1
2019-05-29 09:31:30 +02:00
Ronny Liu
8dabdd7bed
bootloader support for GD32_F450ZI
2019-05-29 14:40:03 +08:00
Martin Kojtal
9cc1caa031
Merge pull request #10596 from kjbracey-arm/sem_acquire
...
Introduce Semaphore::acquire methods
2019-05-29 06:22:30 +01:00
aglass0fmilk
67cc3b0faf
Added spdx identifiers and fixed indentation in targets.json
2019-05-28 10:48:09 -04:00
George Beckstein
5386b87693
Removing systick edit from sdk_config.h
2019-05-28 10:48:09 -04:00
George Beckstein
d8fbdfcac3
Disabling systick
2019-05-28 10:48:09 -04:00
George Beckstein
058060711d
Revert adding USB to STM32F407VG target
2019-05-28 10:48:09 -04:00
George Beckstein
002df471e0
Changed formatting, check if endpoint is stalled in unstall. Added errata header
2019-05-28 10:48:09 -04:00
George Beckstein
1ab27aff1f
Finished compatibility changes for nrfx renaming
2019-05-28 10:48:09 -04:00
George Beckstein
2bd024d174
Fixing compatibilities with new nrfx drivers
2019-05-28 10:48:09 -04:00
George Beckstein
09c5982a4b
Added EP0 stalls to setup event handler
2019-05-28 10:48:09 -04:00
George Beckstein
bd2605cce9
Configured sdk for enabling USB. Preliminary implementation of USB for nRF52840
2019-05-28 10:48:09 -04:00
Kevin Bracey
2fbbd9d2ca
Introduce Semaphore::acquire methods
...
Deprecate wait() in favour of acquire(), try_acquire(),
try_acquire_for() and try_acquire_until().
Brings Semaphore more into line with CMSIS-RTOS 2 (which uses "acquire"),
itself (as it has "release"), and other classes having "try", "try for"
and "try until".
Also steps away from vague "wait" term - the primary operation here is
to acquire the semaphore, and this will of course sleep.
2019-05-28 17:02:06 +03:00
ale87jan
2d492e1166
Update MAX3263x.sct
2019-05-28 12:02:51 +02:00
Martin Kojtal
19e762298f
Merge pull request #10666 from ARMmbed/feature-nrf52-sdk15
...
Nordic SDK v15 Update
2019-05-28 09:48:44 +01:00
jeromecoutant
d919498745
STM32: common cmsis.h and device.h
2019-05-27 16:27:41 +02:00
Filip Jagodzinski
61f9a1c362
KW41Z: Add a GPIO pinmap for testing
2019-05-27 14:57:01 +02:00
Filip Jagodzinski
1a9b635e7d
KW24D: Add a GPIO pinmap for testing
2019-05-27 13:21:43 +02:00
panyz0725@thundersoft.com
e0eefaed99
Modifiying file PinNames.h
2019-05-27 11:02:43 +08:00
Filip Jagodzinski
a326db8b77
K64F: Use a common peripheral name in GPIO pinmap
...
This was unnecessary since all the pins may be used independently.
2019-05-24 16:33:01 +02:00
Volodymyr Medvid
c870d6f1ba
PSOC6: move cmsis.h and device.h out from psoc6pdl directory
...
This simplifies updating of psoc6pdl directory to the latest Cypress
PSoC 6 PDL releases. cmsis.h and device.h are not part of psoc6pdl.
2019-05-24 15:16:37 +03:00
Martin Kojtal
ab82f1fca6
Merge pull request #10627 from devran01/remove_future_sequana_target
...
Remove targets FUTURE_SEQUANA_M0_PSA and FUTURE_SEQUANA_PSA
2019-05-24 12:16:10 +01:00
Rajkumar Kanagaraj
727070e04a
Removed RESET_REASON for NRF51_DK board
2019-05-24 12:32:53 +02:00
Rajkumar Kanagaraj
50c6e9f481
Added the SPDX identifier
2019-05-24 12:32:53 +02:00
Rajkumar Kanagaraj
15bcb38fad
Trailing space issue fix
2019-05-24 12:32:52 +02:00
Rajkumar Kanagaraj
af0b056b05
fix for Jenkin build issue
2019-05-24 12:32:51 +02:00
Rajkumar Kanagaraj
7d5a17d955
Removed RESET_REASON for NRF52832,NRF52840 family and Removed WATCHDOG for H743ZI board
2019-05-24 12:32:50 +02:00
Rajkumar Kanagaraj
8393068770
Revert "fix for build failure issues"
...
This reverts commit 3ce1d4940cb7fd9d74ca2be75ed08b76854ff534.
2019-05-24 12:32:45 +02:00
Rajkumar Kanagaraj
e13fdc444f
fix for build failure issues
2019-05-24 12:31:28 +02:00
Rajkumar Kanagaraj
f4184b19a0
update:Remove DEVICE_WATCHDOG and added RESET_RESON in stm32 family
2019-05-24 12:28:20 +02:00
Steve Cartmell
ad295e64ba
fix(hal-watchdog): Guard TMPM 'ResetReason' code behind feature flag
2019-05-24 12:23:43 +02:00
Steve Cartmell
a63e236d84
fix(hal-watchdog): Add 'RESET_REASON' flags to supported devices
2019-05-24 12:23:42 +02:00
Steve Cartmell
8baae2475a
fix(hal-watchdog): Remove 'RESET_REASON' flags from unsupported devices
2019-05-24 12:23:41 +02:00
Steve Cartmell
544eb82a47
fix: Remove excess comma from device_has key in targets.json
2019-05-24 12:23:41 +02:00
Ganesh Ramachandran
a0c2b59475
Added reset_reason feature for TMPM3HQ
2019-05-24 12:23:39 +02:00
Steve Cartmell
7f47b0a65c
fix(hal-watchdog): Add feature guards to K64F watchdog implementation
2019-05-24 12:23:35 +02:00
Ganesh Ramachandran
5fc77d3c4a
Added reset_reason feature for TMPM3H6 & TMPM4G9
2019-05-24 12:23:33 +02:00
Ganesh Ramachandran
f6fcabb9b8
Added reset_reason feature for TMPM066 & TMPM46B
2019-05-24 12:23:29 +02:00
ccli8
84440531f1
[Nuvoton] Support watchdog timer
2019-05-24 12:20:01 +02:00
ccli8
6e514b6e08
[Nuvoton] Support reset reason
2019-05-24 11:35:44 +02:00
ccli8
717979075f
[NUC472] Fix WDT driver in BSP
2019-05-24 11:35:43 +02:00
Qinghao Shi
a6a34722ca
fix bugs introduced on rebase
2019-05-24 11:35:43 +02:00
jeromecoutant
570e9b0bf4
STM32 WATCHDOG : increase timeout value
2019-05-24 11:35:42 +02:00
jeromecoutant
4300e5d6c4
STM32 WATCHDOG : use ST HAL in order to make code commun for all STM32
2019-05-24 11:35:41 +02:00
jeromecoutant
feec85cc37
STM32 WATCHDOG : update STM32L0 HAL_IWDG_Init to a newest version
2019-05-24 11:35:41 +02:00
jeromecoutant
e29d64fc19
STM32 WATCHDOG : compilation issue with typed define
2019-05-24 11:35:40 +02:00
jeromecoutant
1b8513a5a8
STM32 Watchdog : move API file to STM family level
2019-05-24 11:35:39 +02:00
Lukas Mandak
ce574b5eef
NCS36510: Added watchdog implementation.
2019-05-24 11:35:38 +02:00
Steven Cooreman
c7bc7e5122
Add implementation of reset reason on Silicon Labs parts
2019-05-24 11:35:38 +02:00
Steven Cooreman
295c79ab0a
Add support for watchdog on Silicon Labs devices
2019-05-24 11:35:37 +02:00
Filip Jagodzinski
3d31801f4f
STM: HAL: Reset_reason: Correct return values
2019-05-24 11:35:35 +02:00
Bartek Szatkowski
585edc1f43
Disable Watchdog on Odin as it fails intermittently
2019-05-24 11:35:32 +02:00
Filip Jagodzinski
4ed0b948f4
K64F: watchdog HAL: Fix init() and stop()
...
Added a missing wait for the WCT window end. Without it, consecutive
init() or stop() calls were ignored.
2019-05-24 11:35:30 +02:00
Filip Jagodzinski
d26dba40b2
STM32F4: watchdog HAL: Fix issues found with tests
...
Fix WATCHDOG_STATUS_INVALID_ARGUMENT for timeout values from 1 ms to
407 ms (fix inability to set prescaler bits to zero).
Fix timeout <-> IWDG registers conversions.
Fix read & write access to IWDG_PR and IWDG_RLR registers.
Fix LSI RC frequency setting.
Limit MAX_TIMEOUT_MS to UINT32_MAX.
2019-05-24 11:35:29 +02:00
Steven Cartmell
2fb9fc2a8e
Rename watchdog.c -> watchdog_api.c to prevent name collision with Platform API
2019-05-24 11:35:25 +02:00
Steven Cartmell
9d571cd617
Add RESET_REASON and WATCHDOG definitions to hexiwear build target
2019-05-24 11:35:24 +02:00
Filip Jagodzinski
90bb2929e0
K64F: watchdog HAL: Fix max_timeout.
...
Limit MAX_TIMEOUT_MS to UINT32_MAX.
Improve MAX_TIMEOUT_MS handling.
Fix hal_watchdog_get_platform_features() returning
.max_timeout = 0xfffffff8 instead of 0xffffffff.
2019-05-24 11:35:23 +02:00
Steven Cartmell
2ab738fc66
Fix Watchdog::stop on K64F target
...
WDOG_Disable will suspend the watchdog until a reset is triggered instead of stopping it altogether. Deinit will disable it until it is reinitialized.
2019-05-24 11:35:22 +02:00
Steven Cartmell
e7761a1d39
Move watchdog parameter validation into the driver layer
2019-05-24 11:35:22 +02:00
Steven Cartmell
31924b2481
Add missing license headers
2019-05-24 11:35:21 +02:00
Steven Cartmell
7c392a16d4
Remove window and sleep mode options for watchdog API
2019-05-24 11:35:13 +02:00
Steven Cartmell
8fa38bb25b
Add Watchdog driver API
2019-05-24 11:20:26 +02:00
Steven Cartmell
366893ae71
Add independent watchdog reference implementation for STM32
2019-05-24 11:20:25 +02:00
Steven Cartmell
6b3d790fc1
Add function to fetch platform specific reset reason register values
2019-05-24 11:20:24 +02:00
Steven Cartmell
1ec22fee05
Add reset reason reference implementation STM32
2019-05-24 11:20:23 +02:00
Steven Cartmell
8a97101988
Fix watchdog API issues
...
- Fix typo in module comment
- Redefine the default system behaviour in sleep mode
- Guard K64F enableWait flag
- Remove bit shifts from reset reason enum
2019-05-24 11:20:22 +02:00
Steven Cartmell
c258acc222
Add simple watchdog reference implementation for K64F
...
- Add preprocessor guard to watchdog api that errors if the reset reason api is not also implemented
- Add RESET_REASON and WATCHDOG to K64F targets.json
- Add watchdog reference implementation
2019-05-24 11:20:21 +02:00
Steven Cartmell
efcdca8b0f
Add K64F reset reason reference implementation
2019-05-24 11:20:20 +02:00
Martin Kojtal
cfb107912b
Merge pull request #10616 from ThunderSoft123/master
...
Fix bug Operator new[] out of memory
2019-05-23 21:40:10 +01:00
Martin Kojtal
4567626ade
Merge pull request #10636 from u-blox/activation_status
...
+UPSND sent to poll activation status
2019-05-23 21:39:48 +01:00
Martin Kojtal
80d7cb2e17
Merge pull request #10631 from VVESTM/update_cube_h7
...
Update cube h7 to 1.4.0
2019-05-23 21:36:38 +01:00
Martin Kojtal
3f756f0769
Merge pull request #10591 from OpenNuvoton/nuvoton_m2351_fix_spdmc_sync
...
M2351: Fix serial sync error in SPDMC test
2019-05-23 21:36:15 +01:00
Martin Kojtal
02b91bdfca
Merge pull request #10582 from malavikasajikumar/master
...
Adding LED4 definition in PinNames.h of SDP-K1 board.
2019-05-23 21:35:42 +01:00
Chris Trowbridge
f81130dd23
Update licenses for EP_AGORA target
2019-05-23 11:30:25 -04:00
Filip Jagodzinski
5bc873239e
K64F: Add a GPIO pinmap for testing
2019-05-23 14:29:26 +02:00
Vincent Veron
d8e1e43e35
H7 ST CUBE : remove unecessary #if 1 instead of USE_FULL_LL_DRIVER
...
Keep #define USE_FULL_LL_DRIVER and define this switch in target.json
Signed-off-by: Vincent Veron <vincent.veron@st.com>
2019-05-23 14:01:01 +02:00
Vincent Veron
80b41f0276
H7 ST CUBE V1.4.0
2019-05-23 14:01:00 +02:00
RFulchiero
b34057f933
Fix targets.json for MTB_LAIRD_BL654
...
When removing CryptoCell310 we now need to define:
NRFX_RNG_ENABLED=1
RNG_ENABLED=1
NRF_QUEUE_ENABLED=1
These are brought in via "macros_add".
2019-05-23 11:31:40 +08:00
RFulchiero
3343022f70
Remove redundant legacy files and definition of PACKED
...
* The following v14.2 files are removed from nrfx/legacy:
nrf_drv_clock.h
nrf_drv_common.h
nrf_drv_gpiote.h
nrf_drv_spi.h
nrf_drv_twi.h
nrf_drv_uarth.h
* Remove unneeded references to "nrfx_glue.h" and "nrf_drv_common.h"
* Remove the definition of PACKED from app_util_platform.h (already defined
in mbed_toolchain.h)
2019-05-23 11:31:40 +08:00
RFulchiero
8550fd0ed2
Fix preprocessor conditionals for AC6 build
2019-05-23 11:31:39 +08:00
RFulchiero
5c276f2c0e
Fix SOFTDEVICE_NONE builds and clean up
...
* Update all scatterfiles to define MBED_RAM_START and MBED_RAM_SIZE. These
get defined in mbed_lib.json when building with a SoftDevice but were missing
when no SoftDevice is brought in.
* Remove SDK 14.2 SoftDevice files.
* Add missing header file to qspi_api.c.
2019-05-23 11:31:38 +08:00
RFulchiero
2690f0f8bc
Update QSPI in the SDK to support long frame mode
...
* Carry forward changes made to v14.2SDK to support long frame mode
(from commit 2a72bb67a3
).
* Fixed a few driver calls from rebase
2019-05-23 11:31:35 +08:00
RFulchiero
8237229530
Rebase to master in preparation for v5.12.0
2019-05-23 11:31:35 +08:00
Desmond Chen
4e8eed07e5
Fix nrf section iter macro check
2019-05-23 11:31:33 +08:00
Naveen Kaje
e8e1ef2a70
NRF52: reloc_vector_table: check the RTS pin settings in code
...
Move the check from preprocessor to the if condition
2019-05-23 11:31:33 +08:00
Desmond Chen
c048a34e00
Add BLE feature to mbed_lib.json of SoftDevice
2019-05-23 11:31:32 +08:00
RFulchiero
f8e2b7e679
Update file header at TARGET_NRF52 level
...
- Update (c) year and company name
- Add SPDX-License-Identifier
- Impacted files:
- Files touched for SDK15 port
- Files added in 2018
2019-05-23 11:31:32 +08:00
RFulchiero
bd6edc4917
Remove RTC from nRF52840_DK and DELTA_DFCM_NNN50 (was testing)
2019-05-23 11:31:32 +08:00
RFulchiero
cf162cdbab
Remove duplicate file
2019-05-23 11:31:31 +08:00
Desmond Chen
d20ca05a68
Fix SoftDevice configuration on NRF52_DK
2019-05-23 11:31:31 +08:00
Desmond Chen
b69dc2bdae
Update BLE SoftDevice from SDK14 to SDK15
...
- Adjust memory for SoftDevice
- Enable PRIO=5 for interrupt priority check
- Change NRF_SD_BLE_API_VERSION to 6
- Add handle and buffer for advertising and scanning
- Remove guard for phy update
- Change scatter files and mbed_lib.json for PR #8607
2019-05-23 11:31:31 +08:00
Desmond Chen
2fbc20f9b1
Fix timer1 irq configuration
2019-05-23 11:31:30 +08:00
Naveen Kaje
b17601ef43
NRF52: Cleanup unused code
2019-05-23 11:31:29 +08:00
Naveen Kaje
8eaf87cd50
NRF52: serial: fix build warnings
2019-05-23 11:31:29 +08:00
RFulchiero
e9a3ca6259
Set the PWM clock prescaler back to default (1MHz clock)
2019-05-23 11:31:29 +08:00
RFulchiero
501000e6a2
Changes required for rebase:
...
- Brought in new nrfx APIs
- Brought in PPI additions
- Removed dead code for RTC
2019-05-23 11:31:28 +08:00
RFulchiero
36c70a1c78
Enabling NRFX_PPI_ENABLED for serial_api updates
2019-05-23 11:31:26 +08:00
RFulchiero
74cb69873c
Cleanup for feature release
...
* Update TARGET_NRF5x/README.md to improve "Changing SoftDevice" section
and added section on NRF52840 CryptoCell310 Support
* Update the file list in TARGET_SDK_15_0/TARGET_SOFTDEVICE_COMMON/README.md
* Add missing CR-LF to Nordic-provided SDK file
* Rename a header file in the TARGET_SOFTDEVICE_S112 tree
2019-05-23 11:31:26 +08:00
RFulchiero
2a968d4d35
Revert "NRF52: Fix vector table"
...
This reverts commit 3d2fa535a71b7bad08c6a91a31d74f4492c8948c.
This was a breaking change for the "MBR" and "NONE" builds.
After testing it was also determined that copying the vector
table a second time wasn't required for the "FULL" build.
2019-05-23 11:31:26 +08:00
Ralph F
742d10fcc2
Add missing SoftDevice build support (MBR, NONE, OTA)
...
- Add MBR, NONE and OTA SoftDevice build options for S132 and S140
- Add S112 SoftDevice (single build option)
- Some folder restructuring in TARGET_SOFTDEVICE_COMMON was required
2019-05-23 11:31:25 +08:00
RFulchiero
3e3ac27698
Remove dead #define PORT_SHIFT
...
nRF5x PinNames.h never utilized PORT_SHIFT so removed for clarity after
user commented on it.
2019-05-23 11:31:24 +08:00
RFulchiero
fa84352752
Fix build for nRF51 (fewer common files with nRF52)
...
The 15.0 SDK doesn't support the nRF51 so it must continue to use the legacy
NRF drivers. Thus the original common_rtc.c, gpio_api.c and us_ticker.c are
restored and placed under TARGET_NRF5x/TARGET_NRF51.
Likewise the modified common_rtc.c, gpio_api.c and us_ticker.c are moved to
TARGET_NRF5x/TARGET_NRF52 so they are excluded from nRF51 builds.
2019-05-23 11:31:23 +08:00
RFulchiero
e85106129a
Updates after rebase with Mbed master (circa OS v5.10.1)
...
* Remove NRF_SDH_CLOCK parameters from mbed_lib.json
* Bring in QSPI for nRF52840
* Migrate legacy QSPI driver to SDK v15 (nrfx_qspi.h)
* Remove outdated comment in i2c_api.c
2019-05-23 11:31:23 +08:00
Naveen Kaje
6064ef30e9
NRF52: Fix vector table
...
Ensure that vector table gets initialized properly. The table that we
initialize in startup_nrf52840.S gets wiped out as the section is
declared as noinit. Fix this by implementing the weak function mbed_sdk_init
that inits the vector table.
2019-05-23 11:31:22 +08:00
RFulchiero
f79531414f
nRF52_DK: Use mbed_lib.json to set app_offset (MBED_APP_START)
...
When the SoftDevice (SD) is enabled we need to set the app_offset
to 0x26000 to make room for the SoftDevice. If we let the build
tools self-manage this, MBED_APP_START is coming out at 0x25000
which is not correct for the Nordic 15.0 SDK.
The app_offset value is translated to MBED_APP_START by the build
infrastructure. We were hard coding MBED_APP_START in the scatter
and ld files as a temporary measure while testing. This now sets
it properly if the SD is being brought in.
2019-05-23 11:31:22 +08:00
RFulchiero
317598604a
nRF52832 needs NRFX_RNG_ENABLED to use the legacy driver
2019-05-23 11:31:22 +08:00
Naveen Kaje
35c14ebbe3
NRF52832: enable UART
2019-05-23 11:31:21 +08:00
Naveen Kaje
d875c2ba2e
NRF: enable PRS (Peripheral Resource Sharing) for NRF52832 and NRF52840
2019-05-23 11:31:21 +08:00
Naveen Kaje
976ba7d4da
NRF52: i2c_api: port from Softdevice 14.2 to 15.0
2019-05-23 11:31:20 +08:00
Naveen Kaje
4f9782dfeb
NRF52: spi_api: port from Softdevice 14.2 to 15.0
2019-05-23 11:31:20 +08:00
RFulchiero
a1d5a4d973
Updates for IOTDEV-1576 (only TRNG API)
...
- Added legacy nrf_drv_rng.c as there is no merit in fully adopting nrfx_rng.c
- Added nrf_queue library component
- Removed apply_old_config.h (unused for some time now)
- Updated sdk_config.h for queue and RNG support for nRF52832
- Brought back RNG into targets.json for nRF52832
Note: nRF52840 still uses CryptoCell 310 for TRNG
2019-05-23 11:31:20 +08:00
RFulchiero
38c68e0a45
Updates for IOTDEV-1575 and nRF52_DK builds
...
- Use new NRFX header file
- Fix nRF52832 linker script/ld files (hardcoded addresses for now)
- Temporarily remove DEVICE_TRNG for nRF52832 (which broke the build)
- Improve serial_putc() fix so we don't rely on "extra" functions
2019-05-23 11:31:19 +08:00
Naveen Kaje
8123b5128d
serial_api: Fix the interrupt registration for Nordic Serial Device
...
Using the nrfx_get_irq_number only works with the handle. Since we
know the IRQ numbers for UART0, RTC2 and EGU0, use them directly.
2019-05-23 11:31:19 +08:00
Naveen Kaje
52c6048dc8
Nordic sdk_config: Configure UART instances
...
Enable UART interfaces to enable serial debug prints.
2019-05-23 11:31:19 +08:00
Naveen Kaje
3ee440c9db
serial_api: add changes to port from Softdevice 14.2 to 15.0
2019-05-23 11:31:18 +08:00
Naveen Kaje
af8d171a73
serial_api: Fixes to compile with SDK15.0
2019-05-23 11:31:18 +08:00
RFulchiero
9593a53e25
Updates to PWM for IOTDEV-1573
...
- Missed some NRFX defines that needed to changed
- Set PWM base clock to 125kHz (needs to be reverted back to 1 MHz)
- Updated sdk_config.h for nRF52_DK builds
- Brought in updates from PR7779 (fix for nRF52 PWM issues)
2019-05-23 11:31:18 +08:00
RFulchiero
cc54611f02
Ported analogin and pwm_out for IOTDEV-1573.
...
Also addressed:
- removed dependency on legacy config (excluded apply_old_config.h)
- removed legacy pwm and saadc headers
- Arm Compiler 5 linking issue (a band-aid for now... needs to
be properly addressed for peripheral sharing)
- added missing header in SoftDevice file
2019-05-23 11:31:17 +08:00
RFulchiero
9ac7fe7ac9
First porting effort covered by JIRA IOTDEV-1572:
...
- top level files ported from TARGET_NORDIC/TARGET_NRF5x/
Also addressed:
- fixed linking issue for gcc
- added support for nRF52-DK builds, but reverted to using nRF52840 sdk_config.h (must be updated)
- introduced "RTC" to targets.json (might need to be removed eventually)
2019-05-23 11:31:17 +08:00
RFulchiero
cd5b451320
Bringing in Softdevice but excluding BLE feature and improvements in feature defines
2019-05-23 11:31:13 +08:00
RFulchiero
511f8ebbd7
Mods for baseline 15.0 support
2019-05-23 11:31:13 +08:00
RFulchiero
6bd89e7939
Baseline legacy build using 14.2 drivers.
2019-05-23 11:31:12 +08:00
Oren Cohen
63487533aa
Update secure binaries
2019-05-22 17:31:49 +03:00
Martin Kojtal
fee07dcdf2
ARM_SSG: mbed_rtx remove empty line
2019-05-22 17:17:27 +03:00
Martin Kojtal
a115c9333f
gpio: indent fix
2019-05-22 17:17:27 +03:00
Gabor Kertesz
40627a5220
Fix last issues
...
Imports working McuBoot for reset.
Updates microsec ticker driver.
Default baudrate is set to 115200 to see TF-M boot messages.
Stack top is set to scatter file dependent and not hard-coded.
2019-05-22 17:17:26 +03:00
Michael Schwarcz
bde2557629
Update secure binaries for ARM_MUSCA_A1_S
2019-05-22 17:17:26 +03:00
Michael Schwarcz
0fc629ce45
MUSCA_A1_NS: Add IAR support
2019-05-22 17:17:25 +03:00
Michael Schwarcz
ef9c2721a0
Fix PinMap_UART_XX
2019-05-22 17:17:25 +03:00
Michael Schwarcz
1a182df19f
Add serial_tx_pinmap() and serial_rx_pinmap() to serial_api.c
2019-05-22 17:17:25 +03:00
Michael Schwarcz
c83ef8a444
Add license files
2019-05-22 17:17:24 +03:00
Michael Schwarcz
84bde31ea0
Increase Secure RAM by 4K
...
- 68KB Secure
- 60KB Non-secure
2019-05-22 17:17:24 +03:00
Michael Schwarcz
71683cbaa7
Fix secure linker script
2019-05-22 17:17:24 +03:00
Michael Schwarcz
cebf30a701
Increase secure heap size to 0x4000
2019-05-22 17:17:24 +03:00
Michael Schwarcz
0701fb1c58
Move us_ticker.c to NS side
2019-05-22 17:17:23 +03:00
Michael Schwarcz
96268d91ef
Updates after rebase
...
- postbuild: Use find_secure_image and update prebuilt binaries
- Add CMSIS driver headers
- Align with 2-region memory model
2019-05-22 17:17:23 +03:00
Michael Schwarcz
a5fd9176bb
Update target license headers
...
- Add SPDX identifiers and update dates
2019-05-22 17:17:22 +03:00
Michael Schwarcz
ff1c769c7e
Add ARM_MUSCA_A1 as a new target platform
...
Musca-A1 is a Cortex-M33 based target with security extension enabled.
- ARM_MUSCA_A1 is the non-secure target running mbed-os.
- ARM_MUSCA_A1_S is the secure target running TF-M.
- TF-M sources were imported and patched in previous commits.
- TF-M secure bootloader (McuBoot) for MUSCA_A1 is submitted by a pre-built binary.
- A post-build hook concatenates The secure and non-secure binaries,
signs it and then concatenates the bootloader with the signed binary.
2019-05-22 17:17:20 +03:00
Bilal Qamar
defc244db2
+UPSND sent to poll activation status
2019-05-22 16:52:03 +05:00
Martin Kojtal
4cf96b8d80
Merge pull request #10482 from SiliconLabs/fix/allow_nc_pins
...
Allow NC pins to be instantiated on Silicon Labs platforms
2019-05-22 08:36:06 +01:00
panyz0725@thundersoft.com
6aeb048e62
Fixing bug error 0x8001011F
2019-05-22 14:18:28 +08:00
Chris Trowbridge
225f1de5ac
Add support files for target EP_AGORA
2019-05-21 11:18:43 -04:00
Chris Trowbridge
7095c31bca
Add 'EP_AGORA' as a target
2019-05-21 11:05:03 -04:00
Martin Kojtal
d5b84a5d57
SDP_K1: Fix year change in the system clock
2019-05-21 07:44:49 -07:00
Martin Kojtal
3e1a24b3fe
Merge pull request #10587 from d-kato/ca9_armc6
...
GR_LYCHEE,RZ_A1H,VK_RZ_A1H: Fix greentea test failure with ARMC6
2019-05-21 15:07:59 +01:00
Martin Kojtal
c4b32cde87
Merge pull request #10617 from Wiznet/wiznet_develop
...
Change W7500 GPIO Driver
2019-05-21 15:07:10 +01:00
Devaraj Ranganna
7765d39283
The targets FUTURE_SEQUANA_M0_PSA and FUTURE_SEQUANA_PSA are removed
...
due to partial implementation. Having FUTURE_SEQUANA_M0 and
FUTURE_SEQUANA PSA targets is misleading.
Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2019-05-21 15:00:31 +01:00
Martin Kojtal
f859289634
Merge pull request #10489 from kjbracey-arm/gpio_api_nc
...
gpio_api.h: Clarify desired behaviour for NC
2019-05-21 14:36:49 +01:00
Martin Kojtal
e4c64226f6
Merge pull request #10605 from sabharad/master
...
K66F: Update SAI and SAI EDMA driver to SDK 2.5
2019-05-21 10:51:28 +01:00
Steven Cooreman
365f3643bb
Allow NC pins to be instantiated
...
Keep asserting on trying to use an NC-instantiated object for anything else, though.
2019-05-20 15:23:34 +02:00
Martin Kojtal
d4122b0b3a
Merge pull request #10454 from u-blox/ublox_odin_driver_os_5_v3.7.0_rc1
...
Enterprise_mode_+_wifi_configuraiton_api: update ODIN drivers to v3.7.0 RC1
2019-05-20 10:54:45 +01:00
TeddyWiz
2a69c6d2cc
change W7500x_gpio.c GPIO_WriteBit
2019-05-20 16:56:48 +09:00
TeddyWiz
45f43b61fc
change text W7500x_gpio.c GPIO_Mode_OUT, HAL_GPIO_SetBits, HAL_GPIO_ResetBits
2019-05-20 16:52:54 +09:00
Anna Bridge
9fb4429379
Merge pull request #10520 from kjbracey-arm/build_tz_heuristic
...
Permit non-TrustZone ARMv8 build
2019-05-17 11:06:55 +01:00
Anna Bridge
d99756324a
Merge pull request #10483 from vmedcy/pr/cy-system-psoc6
...
PSOC6: move mbed_sdk_init to mbed_overrides.c
2019-05-16 11:00:29 +01:00