Laurent MEUNIER
849749f86f
STM32: RNG: Ensure that no more than 1 instance is used
...
There is only 1 RNG HW IP and we do not support more than one driver
user at a time, so let's ensure this is the case and raise an error if
needed.
2017-10-13 16:59:33 +02:00
Laurent MEUNIER
14343c49c4
STM32: TRNG: remove call to deprecated HAL_RNG_GetRandomNumber
...
HAL_RNG_GetRandomNumber is a deprecated API and replaced here with
a call to HAL_RNG_GenerateRandomNumber.
Doing so, we also rework the driver to use the 4 bytes returned by a call
to HAL_RNG_GenerateRandomNumber instead of 1 byte out of 4.
HAL_RNG_GenerateRandomNumber was not returning any error code, so now
we can also check the return code.
2017-10-13 16:59:29 +02:00
Jimmy Brisson
410ef0cc6c
Merge pull request #5289 from LMESTM/test_api_ticker
...
STM32: RTC: Call irq_handler whenever interrupt fires
2017-10-13 09:28:18 -05:00
Jimmy Brisson
de3784f6da
Merge pull request #5288 from bcostm/NUCLEO32_add_ALT_pins
...
STM32: Add alternate pins on NUCLEO 32pins boards
2017-10-13 09:27:53 -05:00
Jimmy Brisson
f596c714bd
Merge pull request #5287 from andreaslarssonublox/ublox_odin_driver_os_5_v2.2_rc1
...
Updated u-blox ODIN-W2 binaries to 2.2 rc1
2017-10-13 09:27:29 -05:00
Jimmy Brisson
8bf2775e00
Merge pull request #5269 from bcostm/fix_rtc_struct_init
...
STM32: Initialize RTC structures at init phase.
2017-10-13 09:27:06 -05:00
Jimmy Brisson
6a74cdb39c
Merge pull request #5263 from bcostm/fix_init_struct
...
STM32: Fix analogout structure/variable wrong initialization
2017-10-13 09:25:59 -05:00
Jimmy Brisson
d3d7e0ccbf
Merge pull request #5228 from pavels/master
...
Add bootloaderd support to NUCLEO_F446RE target
2017-10-13 09:23:33 -05:00
Jimmy Brisson
2f25744b07
Merge pull request #5223 from seppestas/master
...
Fix analogin scaling for EFM32 target
2017-10-13 09:22:22 -05:00
Jimmy Brisson
0b796cdbb9
Merge pull request #5187 from nvlsianpu/fix_i2c_timeout
...
nRFx: Use us ticker for I2C timeout
2017-10-13 09:20:14 -05:00
Jimmy Brisson
a67737f993
Merge pull request #5086 from pan-/systick_sleep_fix
...
Sleep: Disallow sleep for targets turning off the systick clock at sleep entry
2017-10-13 09:19:10 -05:00
Jimmy Brisson
2f652be4c0
Merge pull request #4898 from u-blox/stm32f437xg_hw_security
...
Enable crypto HW acceleration for STM32F437xG platforms
2017-10-13 09:16:19 -05:00
Pavel Sorejs
97cb8519c8
Add bootloaderd support to NUCLEO_F446RE target
2017-10-12 19:44:02 +02:00
Dave Wu
de2b5264e2
Added default delay and sample times for the ADC during initialization.
2017-10-12 12:46:54 +11:00
Tony Wu
a35c76d805
rtl8195am - remove redundant file
...
This file is unused and redundant.
Signed-off-by: Tony Wu <tonywu@realtek.com>
2017-10-11 21:54:23 +08:00
Tony Wu
f5b668a9fc
rtl8195am - fix IAR zero padding issue
...
Remove redundant memory regions, and merge multiple RAM regions into one
to solve ielftool zero padding issue.
The side effect is less control over object files placement. It's all up
to linker's best effort.
Signed-off-by: Tony Wu <tonywu@realtek.com>
2017-10-11 21:54:23 +08:00
Tony Wu
e57d184fb0
rtl8195am - cleanup IAR icf file
...
Cleanup ICF file. No logic change.
Signed-off-by: Tony Wu <tonywu@realtek.com>
2017-10-11 21:54:23 +08:00
Dave Wu
6d116273c7
- Cleaned up some formatting issues; - Fixed a build error in spi_master_block_write; - Some clean up in serai_api.
2017-10-11 15:06:49 +11:00
Laurent MEUNIER
e15ebd3c53
STM32: RTC: Call irq_handler whenever interrupt fires
...
lp_ticker driver is the known registered user of RTC handler API.
In case, a lp_ticker is set in the past, the lp_ticker_fire_interrupt
will be called which itself sets the RTC interrupt as pending by calling
NVIC_SetPendingIRQ(RTC_WKUP_IRQn). This all happens without actual
programing of the RTC wake-up.
As a result the RTC HW and corresponding HAL layer doesn't expect an
interrupt to happen and will not call HAL_RTCEx_WakeUpTimerEventCallback.
To sove this situation, we will not use HAL_RTCEx_WakeUpTimerEventCallback
weak definition but rather call handler whenever an RTC interrupt fires.
2017-10-10 17:05:45 +02:00
bcostm
992722df2a
Initialize State variable
2017-10-10 16:47:05 +02:00
Roberto Spelta
35736f57a3
removed memory allocation
2017-10-10 16:46:12 +02:00
bcostm
c571d8d6f8
STM32 RTC: initializes structures
2017-10-10 16:23:35 +02:00
Roberto Spelta
7af6e88999
fixed pin LEDs
2017-10-10 16:04:52 +02:00
bcostm
02598d57fa
Typo correction
2017-10-10 15:04:56 +02:00
bcostm
868143e3dd
Coding style and add State field init
2017-10-10 15:02:11 +02:00
bcostm
c5cc9ec8cf
NUCLEO_F207ZG: Fix issue with tests-api-analogout and GCC_ARM
...
Without this fix the tests-api-analogout test is fail with GCC_ARM.
2017-10-10 15:02:11 +02:00
bcostm
e46beb659f
NUCLEO_L011K4: add ALT pins + cleanup
2017-10-10 14:44:01 +02:00
bcostm
0155a416e6
NUCLEO_F042K6: add ALT pins + cleanup
2017-10-10 14:13:10 +02:00
Roberto Spelta
182d689b8c
setted pin USBTX and USBRX
2017-10-10 13:58:41 +02:00
Roberto Spelta
3fd009ed05
added clock_source for tests
2017-10-10 13:58:41 +02:00
Roberto Spelta
c5e6689e82
added TARGET_STM32L476JG define in mbed_rtx.h
2017-10-10 13:58:41 +02:00
Roberto Spelta
f63dfce4bb
modification to .ld to improve memory
2017-10-10 13:58:41 +02:00
Roberto Spelta
e466685666
copy of L476RG ld file
2017-10-10 13:58:41 +02:00
Roberto Spelta
4d75cbec01
peripherals pins adaptation
2017-10-10 13:58:41 +02:00
Roberto Spelta
a95acdabb3
copy of L476RG target
2017-10-10 13:58:41 +02:00
Roberto Spelta
b328654085
added SILICA_SENSOR_NODE in target.json
2017-10-10 13:58:41 +02:00
bcostm
6ac1b0e046
NUCLEO_L432KC: add ALT pins + cleanup
2017-10-10 10:51:04 +02:00
bcostm
34760c5567
NUCLEO_L031K6: add ALT pins + cleanup
2017-10-10 10:51:03 +02:00
bcostm
f6e30e7422
NUCLEO_F303K8: add ALT pins + cleanup
2017-10-10 10:50:48 +02:00
Jimmy Brisson
ad1345771f
Merge pull request #5232 from tung7970/fix-target
...
RTL8195AM - Fix and cleanup mbed_rtx.h
2017-10-09 11:16:08 -05:00
Jimmy Brisson
80ff7071b4
Merge pull request #5210 from bcostm/L4_add_adc_calib
...
STM32: add ADC calibration for L4, F1, F3 devices
2017-10-09 11:15:31 -05:00
Jimmy Brisson
5c3ce0a84c
Merge pull request #5200 from nvlsianpu/nrf51_adcIn_range_extend
...
Extend nRF51 AnalogIn voltage range to 3.6 V
2017-10-09 11:14:41 -05:00
Jimmy Brisson
df484e7885
Merge pull request #5192 from andreaslarssonublox/ublox_move_stdio_uart_defines
...
Moved STDIO_UART defines for UBLOX_EVK_ODIN_W2
2017-10-09 11:14:06 -05:00
Jimmy Brisson
d6136b9790
Merge pull request #5157 from OpenNuvoton/nuvoton
...
NUC472/M453/M487/NANO130: Add updates for Nuvoton targets
2017-10-09 11:12:43 -05:00
Jimmy Brisson
d60f1452d5
Merge pull request #5113 from LMESTM/i2c_OpenDrainNoPull
...
STM: I2C: Configure pins in OpenDrainNoPull by default (no pullup)
2017-10-09 11:12:04 -05:00
Andrzej Puzdrowski
2a0d38eaf6
fix bug: I2C timeout due the clos strething by slave on nRFx SoC
...
Change implementation of timeout to one that is using us_ticker hal.
Timeout is now configurable by I2C_TIMEOUT_VALUE_US macro and this
value will be imported if will be defined externaly.
2017-10-09 14:14:54 +02:00
Dave Wu
6f9a54777d
Added curly brackets for the single line if else statement.
2017-10-09 17:28:46 +11:00
Dave Wu
5ea792cc9a
- Added error checking for trng_get_bytes function;
...
- Added curly brackets to single line conditions in gpio_qpi.c and gpio_irq_api.c;
- Changed rx and tx buffers in serial module as local variables;
- Minor i2c & spi updates for github pull request;
- Added function definition for spi_master_block_write.
2017-10-09 17:13:58 +11:00
Pierre-Marie Ancele
c476a600a2
remove sys.cpp file of the ARM_STD toolchain as done in the MR #4949
2017-10-06 11:37:03 +02:00
Pierre-Marie Ancele
ed32f57070
fix can_s struct definition
2017-10-06 11:37:03 +02:00
adustm
4e83d7fb15
Fix for IAR tests
2017-10-06 11:35:16 +02:00
adustm
554125ef07
Align IAR files with mbed-os implementation (tests are still failing)
2017-10-06 11:35:16 +02:00
adustm
3ca0b64318
Replace tab by spaces
2017-10-06 11:35:16 +02:00
adustm
fa54e1ecba
Make ARM test pass on mbed-os5 tests
2017-10-06 11:35:16 +02:00
adustm
02df64b7d6
replace tab by spaces
2017-10-06 11:35:16 +02:00
Nabil Elqatib
507d05915d
Remove analogin_s definition from objects.h
...
The structure being already defined in
targets/TARGET_STM/TARGET_STM32L4/common_objects.h#L119, there is a
redefinition conflict.
2017-10-06 11:35:16 +02:00
Pierre-Marie Ancele
fb27107416
NUCLEO_L496ZG change LPUART1 clock source to fix crash on serial init
2017-10-06 11:35:16 +02:00
Pierre-Marie Ancele
abb5e2d0d3
NUCLEO_L496ZG JSON Clock Configuration
2017-10-06 11:35:16 +02:00
Pierre-Marie Ancele
65fec215ab
NUCLEO_L496ZG Fix IAR startup script
2017-10-06 11:35:16 +02:00
Pierre-Marie Ancele
4219ffc626
NUCLEO_L496ZG Fix ARM startup script
2017-10-06 11:35:16 +02:00
Pierre-Marie Ancele
3b2bc2d10c
STM32L496xG fix objects.h to fit common_objects definition
2017-10-06 11:35:16 +02:00
Pierre-Marie Ancele
313a933c09
NUCLEO_L496ZG Update comments
2017-10-06 11:35:16 +02:00
Pierre-Marie Ancele
cca32d8196
NUCLEO_L496ZG Use new alternative pins definition
2017-10-06 11:35:16 +02:00
Pierre-Marie Ancele
aebc227c15
NUCLEO_L496ZG update date in file copyrights headers
2017-10-06 11:35:16 +02:00
Pierre-Marie Ancele
7c6c710ee1
NUCLEO_L496ZG Use correct linker script for IAR
2017-10-06 11:35:16 +02:00
Pierre-Marie Ancele
9630a38fb8
NUCLEO_L496ZG target inherits from FAMILY_STM32
2017-10-06 11:35:16 +02:00
Pierre-Marie Ancele
eea667567e
STM32L496ZG add IAR toolchain
2017-10-06 11:35:16 +02:00
Pierre-Marie Ancele
dc2f29c86e
STM32L496ZG add ARM_STD toolchain
2017-10-06 11:35:16 +02:00
Pierre-Marie Ancele
53d66bb013
STM32L496ZG add ARM_MICRO toolchain
2017-10-06 11:35:16 +02:00
Pierre-Marie Ancele
0cedd1862e
NUCLEO_L496ZG add mbedOS 2 compatibility
2017-10-06 11:35:16 +02:00
Nabil Elqatib
fd7008c779
Add BSP files for NUCLEO_L496ZG
2017-10-06 11:35:16 +02:00
Pierre-Marie Ancele
6d3e17cb3c
add compatibility with STM32L496xG MCUs
2017-10-06 11:35:16 +02:00
Jimmy Brisson
a0b624b62e
Merge pull request #5038 from chrissnow/LPC1768-Bootloader
...
Lpc1768 bootloader support
2017-10-05 11:11:08 -05:00
bcostm
88b82e312d
fix init struct analogout
2017-10-05 16:35:05 +02:00
andreas.larsson
bc3fd12a0d
Updated u-blox ODIN-W2 binaries to 2.2 rc1
2017-10-04 16:41:59 +02:00
Jimmy Brisson
2291644a01
Merge pull request #5162 from NXPmicro/Support_LPC54618
...
Change LPC54608 to LPC546XX to include support for LPC54608/18/28
2017-10-03 13:23:07 -05:00
Dave Wu
d1b81b2161
Removed the custom app thread stack size.
2017-10-03 17:32:10 +11:00
Dave Wu
c196ad241d
Removed undefined spi slave related functions.
2017-10-03 15:00:42 +11:00
Dave Wu
c942171a99
- Fixed an issue where the TRNG device is read even when it is not ready;
...
- Added a configuration call in trng_init to make sure the TRNG buffering mode is disabled, so only 8-bit bytes are returned;
- Moved the TRNG device handle into the trng_t structure;
- Fixed some formatting errors in the adc driver.
2017-10-03 14:21:37 +11:00
Chris Snow
82ae53a282
Simplify CRP placement.
2017-10-02 19:23:35 +01:00
Mahadevan Mahesh
880f106740
Change LPC54608 to LPC546XX to include support for LPC54608/18/28
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-10-02 11:20:27 -05:00
Tony Wu
d0de5f792e
rtl8195am - fix ARMC6 guards
...
Fix ARMC6 guard typo introduced in commit 4f3f0cc9cc
(Make Realtek link)
While at it, remove redundant ISR_STACK_SIZE assignment for ARMCC.
Signed-off-by: Tony Wu <tonywu@realtek.com>
2017-10-02 23:45:47 +08:00
andreas.larsson
120c9ad56c
Moved STDIO_UART defines to targets.json for UBLOX_EVK_ODIN_W2 instead of hardcoded.
2017-10-02 17:45:41 +02:00
Jimmy Brisson
c60194fdfd
Merge pull request #5208 from jeromecoutant/PR_F7_RTC
...
STM32F7 : RTC Wake Up Timer issue
2017-10-02 10:41:31 -05:00
Jimmy Brisson
8a3abbc857
Merge pull request #5207 from nvlsianpu/fix_DigitalIn_use_gpiote_nrf5x
...
Fix: DigitalIn of nRF5x was allocating GPIOTE channel
2017-10-02 10:39:46 -05:00
Jimmy Brisson
cc0b3d05aa
Merge pull request #5130 from bcostm/freeze_timer_in_debug
...
STM32: Freeze master timer on stop/breakpoint
2017-10-02 10:38:57 -05:00
Jimmy Brisson
42dc4cf612
Merge pull request #5089 from jeromecoutant/HSE_XTAL
...
STM32 : Disable HSE XTAL choice from the default clock source
2017-10-02 10:36:08 -05:00
Piotr Grygorczuk
728a3a4a76
mbed LPC1768 & Xpresso LPC1769 unified
...
Target of LPC1769 links to mbed LPC1768.
The PinNames.h has conditional compile for the pin names.
LWIP lpc17xx emac driver modified to allow LPC1769 target
2017-10-02 11:05:39 +01:00
Tony Wu
5e36d32d86
rtl8195am - remove obsolete configs
...
The following configs were no longer necessary for RTX5.
OS_TASKCNT
OS_MAINSTKSIZE
OS_CLOCK
Signed-off-by: Tony Wu <tonywu@realtek.com>
2017-10-02 14:37:05 +08:00
Dave Wu
7cf9bf5c3d
- Added definiton for i2c_reset;
...
- Removed unneeded code from i2c and serial modules.
2017-10-02 15:34:19 +11:00
Dave Wu
86639587dd
Fixed a merge error for LPC11U34_421.
2017-10-02 14:36:03 +11:00
Dave Wu
ce580dde74
Fixed issues raised in the feedback from ARM for the ADuCM4050 platform.
2017-10-02 14:28:25 +11:00
Chris Snow
d6404726dd
Ensure CRP is set correctly for IAR, GCC and ARM
...
CRP value can be set through a macro in mbed_app such as
"macros": [
"CRP=CRP_NONE"
]
2017-09-30 19:26:05 +01:00
Chris Snow
f8f54837cd
Linker update for bootloader support
2017-09-30 19:00:25 +01:00
Chris Snow
a08fc2bb7a
Move CRP out of startup and into CRP.c so it can be conditionally compiled
2017-09-30 19:00:25 +01:00
Chris Snow
fc503b8daf
Enable LPC1768 bootloader support
2017-09-30 19:00:25 +01:00
Jimmy Brisson
b6b9daa6f5
Merge pull request #5176 from 0xc0170/fix_fire_efm32
...
EFM32: fix fire interrupt (set flags)
2017-09-29 10:14:07 -05:00
Jimmy Brisson
f5bb15f773
Merge pull request #5152 from NXPmicro/Update_RTC_HAL_driver
...
Kinetis RTC HAL: Allow writing 0 to the seconds register
2017-09-29 10:12:22 -05:00
Jimmy Brisson
3b224252ef
Merge pull request #5141 from NXPmicro/Fix_LPC54608_LEDMap
...
LPC54608: Swap LED pin connections to match naming on the board
2017-09-29 10:12:04 -05:00
Jimmy Brisson
60ca4e9615
Merge pull request #5029 from kegilbert/odin-pinNames-whitespace-adjust
...
Adjust whitespace in Odin PinNames file to fit verbose LED pin mappings
2017-09-29 10:07:46 -05:00
Seppe Stas
81cc5a4960
Fix analogin scaling for EFM32 target
...
Fixes #5115 .
`analogin_read_u16` returns a value in the range `0x0000 - 0xFFF0`
since the resolution of the ADC is 12 bits. However, in
`analogin_read` this value gets divided by `0xFFFF` assuming the range
is `0x0000-0xFFFF`. This causes a small error in the value returned by
`AnalogIn::read` for the EFM32 target.
2017-09-29 16:07:33 +02:00
Jimmy Brisson
323dc93d89
Merge pull request #5050 from mbedNoobNinja/master
...
[RZ_A1H] Correct CAN Message ID and recetption rate in extended mode
2017-09-28 14:03:45 -05:00
bcostm
fca97146cd
Add ADC calibration for STM32F1 and F3 devices
2017-09-28 12:49:11 +02:00
Vincent Coubard
6cb1a23771
NRF52840: add the device configuration STCLK_OFF_DURING_SLEEP
2017-09-28 09:43:58 +01:00
Jimmy Brisson
c06368a21e
Merge pull request #5171 from jeromecoutant/PR_L432_RAM
...
STM32L432KC: increase RAM size from 48k to 64k
2017-09-27 15:35:44 -05:00
Jimmy Brisson
6cb0258344
Merge pull request #5026 from LMESTM/flash_init_issue_4967
...
STM32: Lock / Unlock flash for each operation
2017-09-27 15:17:26 -05:00
Jimmy Brisson
c24fed135b
Merge pull request #5032 from 0xc0170/fix_mts_debug
...
mts targets: fix debug() usage
2017-09-27 09:07:53 -05:00
Jimmy Brisson
760fc335c0
Merge pull request #4982 from NXPmicro/Update_K66_SDK22
...
Update K66F to SDK 2.2
2017-09-27 09:05:44 -05:00
Jimmy Brisson
b562e4e131
Merge pull request #4979 from bcostm/usbdevice_clean-up
...
STM32: USBDevice files clean-up
2017-09-27 09:04:37 -05:00
Jimmy Brisson
4f1cafd0b7
Merge pull request #5197 from c1728p9/fix_lpc54114
...
Fix LPC54114 vector table size
2017-09-27 09:01:44 -05:00
bcostm
4824e18a95
STM32L4: add ADC calibration
2017-09-27 14:38:34 +02:00
Andrzej Puzdrowski
93fb667b6d
Fix: DigitalIn of nRF5x was allocating GPIOTE channel
...
The allocation of GPIOTE channels for DigitalIn is unwanted behavior.
This caused early run-out of channels for InterruptPin.
This patch replacing input configuration that is using gpiote driver by configuration that is
using gpio hal.
2017-09-27 09:49:48 +02:00
jeromecoutant
1e36eb6fc9
STM32F7 : RTC Wake Up Timer issue
2017-09-26 17:04:29 +02:00
Andrzej Puzdrowski
f861b37196
Extend nRF51 AnalogIn voltage range to 3.6 V
...
Previous the voltage range was set to 1.2 from SoC internal reference source.
This caused problem with testing. It is unexpected that range is much
shorter than vdd as well.
The voltage range was extended using SoC build in analog prescaler (set to 1/3).
2017-09-26 11:31:50 +02:00
Russ Butler
c32890294e
Fix LPC54114 vector table size
...
Correct the vector table size on the LPC54114. This fixes crashes
seen on boot when building with GCC.
2017-09-25 18:49:38 -05:00
Martin Kojtal
9a191de5f9
LPC1768: flash_hal removal duplication
...
IAP typedef duplication removal
2017-09-25 19:18:18 +02:00
Martin Kojtal
6a6561028e
LPC1768: flash erase/write require a critical section
...
From RM:
32.3.2.6 Interrupts during IAP
The on-chip flash memory is not accessible during erase/write operations. When the user
application code starts executing the interrupt vectors from the user flash area are active.
The user should either disable interrupts, or ensure that user interrupt vectors are active in
RAM and that the interrupt handlers reside in RAM, before making a flash erase/write IAP
call. The IAP code does not use or disable interrupts.
2017-09-25 19:18:06 +02:00
Vincent Coubard
d76a5a7eb9
Fix typo in DELTA_DFBM_NQ620 target
...
Replace `device_has_had` by `device_has_add`
2017-09-25 17:47:16 +01:00
Martin Kojtal
c623e889c0
LPC1768: RAM end adjust fix
...
The topmost 32 bytes used by IAP functions, this was not included in the RAM
end previously.
2017-09-25 13:50:54 +01:00
Mahadevan Mahesh
d9a8c63b53
K66F: Use DSPI SDK driver API's in spi block read
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-09-24 08:14:59 -05:00
Mahadevan Mahesh
593fb3a6fb
K66F: Update to SDK 2.2
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-09-24 08:14:52 -05:00
Martin Kojtal
29988933aa
EFM32: fix fire interrupt (set flags)
...
There's overflow counter that needs to be 0, and
CC0 flag set.
Fixes #5051
2017-09-22 14:45:30 +01:00
Martin Kojtal
81fde11dae
Merge pull request #4968 from dlfryar/master
...
Add bootloader support for NXP FRDM-KW24D
2017-09-22 11:33:40 +01:00
Martin Kojtal
a74e95fb26
Merge pull request #4973 from gorazdko/new-target-L-TEK-FF1705
...
Add new target: L-TEK FF1705
2017-09-22 11:32:50 +01:00
Chris Snow
e2c42bb0a0
LPC1768 IAP Fix ( #4993 )
...
use IAP routines for the flash HAL implementation
2017-09-22 11:30:43 +01:00
ccli8
bf426b0771
[NUC472/M453/M487/NANO130] Remove dead power-down code with mbed OS 3
...
These power-down code are stale and would be superseded by sleep manager.
2017-09-22 09:42:51 +08:00
ccli8
4040211f9e
[NANO130] Refine sleep code
...
1. Remove stale code with mbed OS 3.
2. Remove check for busy peripherals unorganizedly. This would be supported by e.g. official sleep manager.
2017-09-22 09:33:53 +08:00
Mahadevan Mahesh
1dadb055f7
RTC HAL: Allow writing 0 to the seconds register
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-09-21 13:33:07 -05:00
ccli8
785413aa1e
[NANO130] Fix RTC hour error with AM/PM
2017-09-21 16:42:00 +08:00
Jimmy Brisson
a2cdb10bf7
Merge pull request #4932 from LMESTM/can_reset
...
Fix STM32 CAN reset to not lose context
2017-09-20 16:24:40 -05:00
ccli8
33070988de
[NANO130] Fix lp_ticker wake-up is incorrectly disabled
2017-09-20 16:56:37 +08:00
ccli8
f553277198
[NANO130] Fix lp_ticker typo
2017-09-20 16:56:36 +08:00
ccli8
c4c902289f
[NANO130] Change SW2/SW3 to SW1/SW2 to match target board
2017-09-20 16:56:35 +08:00
ccli8
443d18a18c
[NANO130] Move target configuration from mbed_lib.json to targets.json
2017-09-20 16:56:34 +08:00
ccli8
d4af4ba3a7
[NUC472/M453/M487] Fix RTC hour error with AM/PM
2017-09-20 16:56:34 +08:00
ccli8
83fc132b97
[NUC472] Fix RTC macro function with no arguments in BSP
2017-09-20 16:56:33 +08:00
ccli8
6eb4e11b37
[NUC472/M453/M487] Refine sleep code
...
1. Remove stale code with mbed OS 3.
2. Remove check for busy peripherals unorganizedly. This would be supported by e.g. official sleep manager.
2017-09-20 16:56:32 +08:00
ccli8
52733fe7f6
[M487] Replace mktime/localtime with interrupt-safe version in rtc
...
The use of mktime was causing a fault when called in interrupt handler because on GCC it lock the mutex protecting the environment, To overcome this issue, this patch add dedicated routine to convert a time_t into a tm and vice versa.
In the process mktime has been optimized and is now an order of magnitude faster than the routines present in the C library.
2017-09-20 16:56:31 +08:00
Dave Wu
00b1e72e49
Added support for ADI EV-COG-AD4050LZ platform.
2017-09-20 14:37:22 +10:00
Tony Wu
6c1167844a
rtl8195am - fix us_ticker porting
...
commit f7bc126
(Re-work Rtl8195AM ticker) tried to address ticker drifting
issue, but in fact broke ticker functionality. This patch adjusts us_ticker
porting to unbreak it, and to fix the following tests:
mbed-os-tests-mbed_drivers-ticker
mbed-os-tests-mbed_drivers-timeout
mbed-os-tests-mbedmicro-rtos-mbed-isr
mbed-os-features-frameworks-utest-tests-unit_tests-minimal_async_scheduler
mbed-os-features-frameworks-utest-tests-unit_tests-case_control_async
mbed-os-features-frameworks-utest-tests-unit_tests-case_async_validate
Changes are:
1. Dont disable timer after every us_ticker interrupt. That basically
breaks ticker functionality.
2. Fine-tune us to tick conversion macro. Previous conversion method
yields 1 tick drift every 2 ms.
3. Remove special placement of ticker objects. No longer necessary.
Signed-off-by: Tony Wu <tonywu@realtek.com>
2017-09-20 11:03:22 +08:00
Mahadevan Mahesh
82a37b0eb1
LPC54608: Swap LED pin connections to match naming on the board
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-09-19 15:37:22 -05:00
jeromecoutant
8b0ee27819
STM32L432KC: increase RAM size from 48k to 64k
...
WARNING: you have to update ST-Link FW to V2J29M18
http://www.st.com/en/development-tools/stsw-link007.html
2017-09-19 15:11:23 +02:00
mbedNoobNinja
610c8c85fc
CAN Extended mode fix
2017-09-19 15:26:10 +03:00
Anna Bridge
003dd7c47f
Merge pull request #5044 from Archcady/Profile_debug
...
Realtek_RTL8195AM fix for debug profile
2017-09-19 10:43:25 +01:00
Anna Bridge
f18d2d862a
Merge pull request #5091 from theotherjimmy/fix-nordic-concat
...
Correct booting on Nordic devices with ARMC6
2017-09-19 10:24:54 +01:00
bcostm
5bf18682e2
Add FREEZE_TIMER_ON_DEBUG condition
...
In order to give the choice to enable or not the timer freeze on stop/breakpoint.
This has to be defined in the mbed_app.json file for example.
2017-09-18 13:39:05 +02:00
bcostm
9f86a32baf
Add freeze timer on debug for all STM32 devices
...
This is a continuation of the work done on the STM32F401xE devices only.
2017-09-18 13:31:46 +02:00
Jimmy Brisson
aeda7f7d28
Merge pull request #5069 from deepikabhavnani/assert_added
...
Changed error print to assert
2017-09-15 17:50:49 -05:00
Yuguo Zou
f7bc12626d
Re-work Rtl8195AM ticker
...
Remove intermediate variances and use uint64 instead;
Remove HalTimerIrqEn called in us_ticker.c
2017-09-15 18:53:24 +08:00
Laurent MEUNIER
076b096efe
STM: I2C: Confifure pins in OpenDrainNoPull by default (no pullup)
...
As reported by MBED user Fran6Jack:
I2C bus are usually 5V tolerant on all STM32 processor.
If an external device on the I2C bus requires 5V operation,
we usually acheive it by using 5V external pull-ups on the bus.
Since signaling uses open-drain output on I2C for both signal SCL and SDA
any 5V tolerant MCU will work on a 5V I2C bus. Having pull-up activated on a 5V externally pull bus, cause the pin to clamp on the STM32 die diode and could damage the IC (There is a note in STM32 datasheet specifying this issue).
It is understood by all the community that I2C bus should always be
externally pulled by physical resistor. I2C initialization should then
be ALWAYS OpenDrainNoPull by default.
Up to now, this I2C driver was setting pull up by default as it helps
basic testing, like 1 master and 1 slave, conencted with 2 wires without
any external pull ups. This will not work anymore after this commit and
applications tests or examples needs to be modified to explicitely
configure pull ups ... But it is safer to follow reference manual
guidelines.
2017-09-14 17:15:11 +02:00
Jimmy Brisson
ca41a0f59d
Correct uninit region for nordic targets
2017-09-13 14:51:27 -05:00
Jimmy Brisson
45b59b442b
Correct long call macros for ARMC6
2017-09-13 09:48:55 -05:00
jeromecoutant
908ef68fc5
STM32 : Disable HSE XTAL choice from the default clock source
2017-09-13 14:49:25 +02:00
Anna Bridge
7b428916f5
Merge pull request #4949 from theotherjimmy/feature-armc5+armc6
...
NEW TOOLCHAIN: Add the ARMC6 Compiler
2017-09-13 10:39:15 +01:00
Vincent Coubard
682816d86e
Sleep: Disallow sleep for targets turning of the systick clock at sleep entry.
...
When the RTOS is present and the tickless mode is not implemented, it is
expected that the next tick issued by the Systick timer will wake up the MCU.
However nothing prevents an implementation of the ARM architecture to gate the
systick clock signal upon sleep entry.
Therefore on those targets sleep shall be prohibited if the RTOS is present and the
tickless mode is not implemented.
To ease life of porters , a new option has been added in the device add list:
STCLK_OF_DURING_SLEEP. This option expose that the target turn of the systick
clock during sleep.
Targets which exhibit such behavior shall add this define in their device_has list.
2017-09-13 10:28:02 +01:00
adbridge
32bd25e8df
Fix include file for ARMCC 6, should use cmsis_armclang.h
2017-09-12 16:41:11 +01:00
Anna Bridge
2955a0adc6
Merge pull request #5063 from 0xc0170/fix_lpticker_test
...
Fixing lp ticker and sleep manager tests
2017-09-11 22:28:52 +01:00
Jimmy Brisson
d3b33d75a4
Correct NRF SDK11 assembly
2017-09-11 13:20:33 -05:00
Jimmy Brisson
4f3f0cc9cc
Make Realtek link
...
There was some interesting stuff here.
* ARMC6 treats assembly the same as GNU, but has a different startup
function, so we branch the asm there
* Incorrect discriminant, probably copied from other ports
2017-09-11 13:20:33 -05:00
Jimmy Brisson
91afbce18a
Correct Nuvoton compiler detection logic
2017-09-11 13:20:33 -05:00
Jimmy Brisson
fb53eb65d4
Correct Silabs NVIC selection
...
Again, the culprit was that the discriminant did not include armc6
2017-09-11 13:20:32 -05:00
Jimmy Brisson
0b7a9033b5
Enable many STM devices with ARMC6
...
Yet another incorrect arm vs gcc discriminant
2017-09-11 13:20:32 -05:00
Jimmy Brisson
4da4c1f5ce
Correct compiler switching in Nordic code
2017-09-11 13:20:32 -05:00
Jimmy Brisson
cd4fd86f1f
Correct Freescale + NXP compiler detection macros
...
Also removes duplication of common files
2017-09-11 13:20:32 -05:00
Jimmy Brisson
15a9a0382b
Enable Compiling with ARMC6 across all targets
...
remove duplicate sys.cpp
2017-09-11 13:20:32 -05:00
Deepika
65150b62b9
Added assert for malloc
2017-09-11 11:41:34 -05:00
Anna Bridge
cab660d980
Merge pull request #4938 from deepikabhavnani/IAR_fixes
...
Update IAR to version 8
2017-09-11 17:28:38 +01:00
Russ Butler
cf8d6c49a7
Fix errors on NCS36510 after deep sleep
...
Add NOPs after deep sleep to prevent unexpected behavior. It appears
that the first one or two instructions after deep sleep do not get
executed properly.
Note - This is a temporary workaround. For a more robust solution
the NCS36510 needs to investigate the root cause of this issue.
2017-09-10 22:25:12 -05:00
Russ Butler
acf428200f
Turn off tickless for the NCS36510
...
The NCS36510 is not suitable for tickless, since its LP ticker cannot
be scheduled fast enough. This is because it takes four 32KHz clock
cycles before these writes take effect - ~120us.
2017-09-09 20:43:37 -05:00
Jimmy Brisson
3f2e986256
Merge pull request #5012 from LMESTM/issue5004_ticker_16b
...
STM32_us_ticker_16b: keep code to cope with past event
2017-09-09 12:09:25 -05:00
Russ Butler
48a0489955
Enable tickless for a subset of devices
...
Enable tickless on nrf5x devices and the NCS36510.
2017-09-07 21:35:07 -05:00
Russ Butler
72f07ec4d9
Make room on stm32f07 for tickless
...
Decrease the interrupt stack from 2k down to 1k so there is enough
ram to build all the tests with tickless enabled. In general, targets
should not need an interrupt stack greater than 1k with mbed-os.
2017-09-07 21:35:06 -05:00
Russ Butler
c3eae587eb
Add tickless support for devices without SysTick
...
Some Cortex-M0 devices, such as the nrf51, don't have the SysTick.
Instead, these targets use a software interrupt to simulate SysTick.
Add the hooks in the tickless code to support these devices. Targets
which do not have SysTick should now define NO_SYSTICK in targets.json
and implement mbed_get_m0_tick_irqn to add os suport.
This patch also removes os tick handling from the existing devices
(nrf51) since this is now handled in common code.
2017-09-07 21:35:04 -05:00
Martin Kojtal
8dfb491bb1
Merge pull request #4958 from soramame21/master
...
Add bootloader support for DISCO_L476VG
2017-09-07 12:46:08 +01:00
Yuguo Zou
ba3bb7ea35
Remove unused code
...
Clean rtl8195a_init.c a little bit
2017-09-07 15:10:08 +08:00
Yuguo Zou
2642ab321e
Update wlan lib to fix debug profile
...
The issue of mutex returning osErrorISR with debug profile is fixed
2017-09-07 11:05:06 +08:00
Yuguo Zou
1d6a69b3e6
Update MSP setup
...
Use asm code to set MSP
2017-09-07 10:58:45 +08:00
Jimmy Brisson
22b183a42b
Merge pull request #5037 from 0xc0170/fix_arch_pro_heap
...
Revert "Adjusting Stack size Allocation (IAR, LPC176x)"
2017-09-06 20:31:46 -05:00
Jimmy Brisson
7457bbbc5c
Merge pull request #4665 from Archcady/enable_sdram
...
Enable sdram usage of REALTEK_RTL8195AM
2017-09-06 14:26:34 -05:00
Jimmy Brisson
9b85155aa7
Merge pull request #4881 from betzw/betzw_freeze_github_wb
...
[STM32F401xE] Freeze master timer on stop/breakpoint
2017-09-06 14:25:47 -05:00
Martin Kojtal
52f84810a7
mts targets: fix debug() usage
...
Instead of using #if NDEBUG, we can directly invoke debug() function. Fixes #5013
2017-09-06 15:56:01 +01:00
Deepika
d12822f95a
Resolved compiler error: constructor deleted
...
IAR 8.x compiler throws error for emac_interface_t constructor
rtw_emac.cpp@220,0: [Pe1790]: the default constructor of "emac_interface"
cannot be referenced -- it is a deleted function
Error is because new object is created of structure with constant member.
Resolved it by using malloc instead new.
2017-09-06 09:51:17 -05:00
Martin Kojtal
bb26bd6d2d
Revert "Adjusting Stack size Allocation (IAR, LPC176x)"
...
This reverts commit fce2ca2122
.
2017-09-06 13:56:27 +01:00
Kevin Gilbert
6fa766da50
Adjust whitespace in Odin PinNames file to fit verbose LED pin mappings
2017-09-05 13:43:06 -05:00
Dexter Fryar
ffe84bd3f3
Add bootloader support for NXP FRDM-KW24D
2017-09-05 13:28:44 -05:00
Jimmy Brisson
2f2da779cb
Merge pull request #4924 from hasnainvirk/iar_fix_c027
...
Adjust Stack size Allocation (IAR, LPC176x)
2017-09-05 11:20:44 -05:00
Jimmy Brisson
5f9d984a22
Merge pull request #5013 from janjongboom/mts_printf
...
MTS targets: Don't use any printf() calls when NDEBUG is defined
2017-09-05 11:19:42 -05:00
Jimmy Brisson
34d41c5068
Merge pull request #4995 from kegilbert/odin-led-remap
...
Add LED color remapping definitions to Odin target
2017-09-05 11:17:42 -05:00
Jimmy Brisson
e009d9f7be
Merge pull request #4975 from LMESTM/STM32_SPI3W
...
Stm32 spi 3 wires mode support
2017-09-05 11:16:53 -05:00
Jimmy Brisson
94fb4a3aad
Merge pull request #4929 from bcostm/adc_sampletime_vrefint
...
STM32F4: Increase ADC sample time for VREF
2017-09-05 11:15:53 -05:00
Laurent MEUNIER
f5aa7c7c82
STM32: Lock / Unlock flash for each operation
...
Rather than Unlocking flash during flash object creation, and leaving
the flash possibly continuously unlocked a(s object might bever be freed),
we decide to Unlock then Lock again at each erase or program call.
2017-09-05 17:49:07 +02:00
Piotr Grygorczuk
9c77957798
LPCXpresso LPC1769 board ported
...
The blinky example compiles and runs.
The board has a different eth phy component than mbed LPC1768. It requires a driver.
2017-09-05 15:30:14 +01:00
bcostm
e588011394
STM32 USBDevice: Add USB_STM_HAL macro for disco-f469ni
2017-09-05 14:08:51 +02:00
Yuguo Zou
67f1ee5343
Resolve including directory issue in GCC linker script for Ameba
...
Should not make assumption of specific directory when include .h from
linker script
2017-09-05 19:11:38 +08:00
Laurent MEUNIER
f2eb77a81a
STM32_us_ticker_16b: reset counter when fire interrupt
...
Fixing regression introduced in commit
"Ticker: add fire interrupt now function".
In above mentioned commit, the management of timestamp being in the past
has been moved to higher layer (hal/mbed_ticker_api.c), but the reset of
oc_int was missing when implementing the new us_ticker_fire_interrupt
function - which is fixed now.
2017-09-05 13:03:21 +02:00
Laurent MEUNIER
5997811d46
STM32: F2: put can_s struct under DEVICE_CAN option
...
In case of F2 devices without CAN support.
2017-09-05 10:27:21 +02:00
Laurent MEUNIER
04ac65a4e6
STM32: CAN: restore registers after can_reset
...
After reset the MCR register content needs to be restored so we're
introducing the can_registers_init function to be called at the first
init stage, but also after reset. We also store the can frequency to
go through the initialisation phase again.
2017-09-05 10:27:21 +02:00
Laurent MEUNIER
8357f6fe77
STM32: CAN: store the mode in object context
...
In order to apply the same mode in case of reset, we store the current
requested mode in the HAL structure.
To make storage in a single place, we also change can_monitor to call
can_mode function as they actually acting on same registers.
2017-09-05 10:27:21 +02:00
Laurent MEUNIER
57222b604f
STM32: CAN: do not overwite BTR register when setting frequency
...
BTR register has other bits than the ones calculated and set through
the can_speed function, so let's take care to only write to the
right registers.
2017-09-05 10:27:21 +02:00
Laurent MEUNIER
759642af8e
STM32: Define CAN handle as part of can object
...
Instead of a static object, this will make driver
instantiation more robust and allow to re-use init
configuration on a need basis.
The CANName struct member is actually the CAN registers base address,
which is now available in the CanHandle.Instance field, so we don't need
CANName anymore.
2017-09-05 10:27:21 +02:00
Laurent MEUNIER
66162c6b1d
STM32: move can_s definition to common_objects.h
...
This will ease up further changes to the structure.
2017-09-05 10:27:21 +02:00
Martin Kojtal
b0dd984493
Merge pull request #4939 from c1728p9/crash_on_boot
...
Fix crashes on boot on some Kinetis devices
2017-09-04 16:51:22 +01:00
Martin Kojtal
5b4e0b30df
Merge pull request #4963 from NXPmicro/Fix_NVIC_NUM_VECTORS
...
K66F,KW24D,K22F,K64F: Fix NVIC_NUM_VECTORS value
2017-09-04 16:50:32 +01:00
Martin Kojtal
675a17cff2
Merge pull request #4980 from LMESTM/stm32_flash_update
...
Stm32 flash update
2017-09-04 16:49:18 +01:00
Hasnain Virk
fce2ca2122
Adjusting Stack size Allocation (IAR, LPC176x)
...
Since mbed-os 5.4.3, something increased foot print of mbed-os and the applications that were barely fitting in started to spill.
IAR toolchain for LPC176x target family is set to use 2 RAM regions (32K each). RAM region
2 is being used for ETH/USB and 1 is being used for vector table, stack/heap/static data.
In this commit we have decreased heap size allocation from 8K to 7K so that the is more room for stack and static data.
2017-09-04 14:54:42 +03:00
Jan Jongboom
72262ca0b3
MTS targets: Don't use any printf() calls when NDEBUG is defined, prevents linking out printf() and friends in release build
2017-09-04 12:05:41 +01:00
Laurent MEUNIER
b01cc966b0
Introduce TIMEOUT_1_BYTE
...
This makes the code more explicit about what is last parameter of
HAL_SPI_Transmit/HAL_SPI_Receive functions.
2017-09-04 11:16:49 +02:00
Russ Butler
b402b7a8c6
Fix crash on boot due to vector size mismatch
...
If NVIC_NUM_VECTORS is larger than the space allocated by the vector
table in ram (__ram_vector_table_size__) then the call to mbed_cpy_nvic
during boot will corrupt valid data, which can lead to a crash. This
patch fixes the declared number of vectors on the KL27Z, KL43Z and
KL82Z to fix this crash.
2017-09-01 18:43:38 -05:00
Kevin Gilbert
41000e091c
Add LED color remapping definitions to Odin target
2017-09-01 17:00:24 -05:00
gorazd
7773acd78c
arduino connector namings added
2017-08-31 15:18:14 +02:00
Boting Ren
04461acf5e
Remove HAL_GetUID_12Bytes function from stm32l4xx_hal layer.
2017-08-31 15:21:22 +09:00
Boting Ren
87ce631490
Fix a parse error at targets/targets.json.
2017-08-31 11:18:31 +09:00
gorazd
40b0d961b6
extra label deleted
2017-08-30 08:16:08 +02:00
Jimmy Brisson
82f5ce22f8
Merge pull request #4951 from JanneKiiskila/ublox_odin_buttons
...
UBLOX_EVK_ODIN_W2- add BUTTON1/2 definitions
2017-08-29 13:46:10 -05:00
Jimmy Brisson
318e92c028
Merge pull request #4950 from OpenNuvoton/nuvoton_usb
...
M487: Support USB device/host
2017-08-29 13:45:55 -05:00
Jimmy Brisson
d68cd09c63
Merge pull request #4944 from LMESTM/F1_AFIO_CLK
...
STM32: F1 GPIO: Enable AFIO clock
2017-08-29 13:45:27 -05:00
Boting Ren
defb8ebf41
Add bootloader support configuration for DISCO_L476VG.
2017-08-29 19:01:25 +09:00
Laurent MEUNIER
dacf04e69b
STM32: Flash: cover TARGET_F410RB case
...
There was a comilation error for NUCLeO_F410RB as it does not have
a ADDR_FLASH_SECTOR_5.
2017-08-29 11:42:51 +02:00
Laurent MEUNIER
9bed429aa0
STM32: L1: Activate FLASH API for NUCLEO_L152RE
2017-08-28 16:21:33 +02:00
Wolfgang Betz
f8114f2295
[STM32F401xE] Freeze master timer on stop/breakpoint
2017-08-28 14:29:47 +02:00
Yuguo Zou
c834b7faac
Fix bugs for RTL8195AM with debug profile of compilers
...
1. Add alignment / padding for postbuild segments
2. Clear tcm.bss section
3. Remove TRAP_OverrideTable(), move lines to PLAT_Start()
2017-08-28 19:04:26 +08:00
Laurent MEUNIER
a9468c09e3
STM32: F7 Flash API support
...
Adding flash API support to STM32F7 family. The code is derived from
F4 family one. The memory topology is described in flash_data.h files
and the flash_api.c implementation manages the 2 possible memory types (1
or 2 banks).
2017-08-28 10:23:55 +02:00
Laurent MEUNIER
e6631c02a4
STM32: adjust flash.get_page_size() to minimum programable size
...
Users of FlashIAP usually get the minimum programable size
by calling flash.get_page_size(), so let's return the minimum
to allows a most efficient usage of flash.
For F4 devices, this is 1 byte.
For L0 and L1 devices, this is a word (4 bytes).
For L4 devices, this is a double word (8 bytes).
2017-08-25 17:21:30 +02:00
Laurent MEUNIER
3de2ce9c10
STM32: Add Flash API support to STM32F413xH
...
First add the flash_data.h that describe the flash memory topology,
and also activate FLASH support for the corresponding targets.
This is a 1,5MB flash memory device which contains 15 sectors, where
sectors 12 to 15 are 128KB sectors. So flash_api.c needed has been
updated to differentiate between this flash memory and the 2MB ones
by checking existence of sector 16 instead of sector 12.
2017-08-25 17:21:30 +02:00
Laurent MEUNIER
4b62cf015c
STM32: Add Flash API support to STM32F469xI
...
First add the flash_data.h that describe the flash memory topology,
and also activate FLASH support for the corresponding targets.
2017-08-25 17:21:08 +02:00
Laurent MEUNIER
86ad16f5f8
STM32: Add Flash API support to STM32F410RB
...
First add the flash_data.h that describe the flash memory topology,
and also activate FLASH support for the corresponding targets.
2017-08-25 17:20:40 +02:00
Laurent MEUNIER
645fd0f06d
STM32: Add Flash API support to STM32F4 devices with 512KB Flash
...
First add the flash_data.h that describe the flash memory topology,
and also activate FLASH support for the corresponding targets.
2017-08-25 17:20:13 +02:00
gorazd
436d97c9f9
new target added L-TEK FF1705
...
based on XDOT
2017-08-24 22:11:10 +02:00
Jimmy Brisson
3926b56cd8
Merge pull request #4935 from LMESTM/F410RB_ARM_TC
...
STM32: fix F410RB vectors size
2017-08-24 10:16:31 -05:00
Jimmy Brisson
d2793ede5e
Merge pull request #4922 from gorazdko/bug-fix-clock-config-xdot
...
bug fix: xdot clock config
2017-08-24 10:15:25 -05:00
Jimmy Brisson
7252447385
Merge pull request #4920 from scartmell-arm/led-error-sequence
...
Modify LED error sequence to be more recognisable
2017-08-24 10:14:13 -05:00
Jimmy Brisson
0a063a00fd
Merge pull request #4840 from ganesh-ramachandran/master
...
Add Support for TOSHIBA TMPM066 board
2017-08-24 10:13:09 -05:00
Mahadevan Mahesh
c5b66b85ba
K66F,KW24D,K22F,K64F: Fix NVIC_NUM_VECTORS value
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-08-23 10:50:12 -05:00
Yuguo Zou
c530be0eeb
Fix stack underflow issue
...
Switch on TCM
2017-08-23 16:12:07 +08:00
Boting Ren
4b9b174c7f
Add function to read 12byte HW RoT over STM32L4xx.
2017-08-23 11:06:44 +09:00
Yuguo Zou
1e398cfc60
Add RTL8195AM support for mbed client with IAR
...
Move ticker related code to SRAM due to time drift sensitive
2017-08-22 17:34:00 +08:00
Yuguo Zou
e16c2d2833
Add RTW8195AM support for mbed client with ARMCC
...
Move ticker related code to SRAM due to time drift sensitive
2017-08-22 17:33:41 +08:00
Janne Kiiskilä
2e6cd907d4
UBLOX_ODIN_EVK_W2 - add BUTTON1/2 definitions
...
UBLOX_ODIN_EVK_W2 is missing the abstract button definitions originally
introduced with PR https://github.com/ARMmbed/mbed-os/pull/4249 .
Fix two tab to spaces issues on the go as well.
2017-08-22 09:54:53 +03:00
ccli8
cacc444b73
[M487] Support USB device/host
2017-08-22 09:27:31 +08:00
Jimmy Brisson
316c875136
Merge pull request #4926 from bcostm/merge_l053x8
...
STM32L053x8: Refactor NUCLEO_L053R8 and DISCO_L053C8 targets
2017-08-21 10:38:42 -05:00
Jimmy Brisson
bb7ab1942a
Merge pull request #4896 from pilotak/patch-1
...
target BLUEPILL_F103C8 compile fix
2017-08-21 10:37:01 -05:00
Laurent MEUNIER
d4fa585ac4
STM32: F1 GPIO: Enable AFIO clock
...
It is required to enable AFIO clock before using __HAL_AFIO_REMAP_xy
macros, which was missing here. Without clocks enable, the remap
actually doesn't occur. This would possibly cause some PIOs (part of
PB_3, PB_4, PA_13, PA_14, PA_15) to not behave as expected.
In most cases AFIO clock was enabled in stm_pin_SetAFPin function, so
that this bug was not visible. But there were few cases left were
stm_pin_DisconnectDebug would be called first. A typical case was
with GCC_ARM in case a DigitalInOut variable is declared as global.
2017-08-21 13:32:33 +02:00
Laurent MEUNIER
95fc6d0bad
STM32: fix F410RB vectors size
...
On F410RB, the size reserved to vectors with ARM toolchains was not properly
defined,which was not the case for other toolchains.
This would cause few tests to fail like EXAMPLE_1 with below error:
HOST: Unknown property: mbed assertation failed: _ptr == (T *)&_data, file: C:/github/mbed/BUILD/mbed/platform/SingletonPtr.h, line 91
2017-08-18 11:57:51 +02:00
bcostm
d0fce353cc
STM32F4: Set ADC sample time to max value for VRefInt
2017-08-17 16:12:16 +02:00
Laurent MEUNIER
8c99bf3b62
SPI: HAL: disable IP at the end of transmit
...
in case of 1LINE direction
2017-08-17 11:02:43 +02:00
mapellil
6dfafc7293
STM32: SPI: Use LL in spi_slave_read
...
this is more a cosmetic change, but since LL was introduced, we can now
use it here as well.
2017-08-17 11:02:43 +02:00
Laurent MEUNIER
57371ea591
STM32: SPI: Do not enable SPI during Init if 3W
...
Enabling SPI causes the clock to be output by default.
Most devices will not care about extra clock cycles, especially as long
as chip select is not active, nevertheless this may cause side issues
with other devices especially during init phase.
This was actually the case with a 3 wire device (LPS22HB sensor).
2017-08-17 11:02:43 +02:00
mapellil
4f20cfc0be
STM32: SPI: SPI3W / SPI_DIRECTION_1LINE management
...
In case MISO is not passed at SPI init, then we consider a 3 wires SPI
configuration is requested, which corresponds to SPI_DIRECTION_1LINE
configuration parameter in STM32 HAL layer.
We're then handling this specific case of SPI_DIRECTION_1LINE,
in spi_master_write or spi_master_block_write, we call to HAL API
2017-08-17 11:02:43 +02:00
bcostm
8273e371df
STM32L053x8: Align system_clock.c files
2017-08-17 10:55:18 +02:00
gorazd
34bd3e5c14
xdot: fix target clock config in targets.json
...
Resolves #4876
2017-08-17 10:37:17 +02:00
Ganesh Ramachandran
f79216c8d8
Issue with mbed compile for GCC_ARM tool resolved
...
Functions 'serial_break_set' & 'serial_break_clear' wrongly removed during 'SERIAL_FC disabled, critical section API Updation' commit.
Due to this 'mbed compile' command for GCC_ARM tool fails to compile.
2017-08-17 11:14:09 +05:30
Ganesh Ramachandran
552feccca3
Main stack dependant on GCC toolchain removed
2017-08-17 10:54:26 +05:30
Ganesh Ramachandran
48ee6a0fb6
Clear interrupt and delta check removed
2017-08-17 10:54:26 +05:30
Ganesh Ramachandran
9dca3fe5df
Interrupt and Overflow check for us_ticker
2017-08-17 10:54:26 +05:30
Ganesh Ramachandran
0a781c4f04
ADC Reset Conflict Fixed
...
ADC Reset conflict with already configured ADC pins is fixed
2017-08-17 10:54:25 +05:30
Ganesh Ramachandran
624620b0d2
SERIAL_FC disabled, critical section API Updation
...
SERIAL_FC disabled, critical section API and Format changes updated
2017-08-17 10:54:25 +05:30
Ganesh Ramachandran
bd8fa4eb70
Added Support for Toshiba TMPM066
2017-08-17 10:54:25 +05:30
bcostm
794d4f657f
STM32L053x8: Add STM32L053x8 label in targets.json
2017-08-16 17:10:43 +02:00
bcostm
580c7cb0b6
STM32L053x8: cleanup ARM compiler files
2017-08-16 17:10:42 +02:00
bcostm
9b8bb9eec4
STM32L053x8: Move other folders and files
2017-08-16 17:10:42 +02:00
bcostm
04cefd300d
STM32L053x8: Create folder and move objects.h
2017-08-16 17:10:42 +02:00
Steve Cartmell
9c87f5936c
Unified the LED error pattern for all boards
...
- Removed the patterned LED sequence, all boards now use the 4 fast pulse, 4 slow pulses LED sequence.
- Changed the LED used from LED_RED to LED1. Only 58/174 targets seem to define LED_RED but they all define LED1.
- Removed all ERROR_RED and ERROR_PATTERN definitions from targets/targets.json
2017-08-16 11:55:24 +01:00
Jimmy Brisson
7653f65434
Merge pull request #4878 from jeromecoutant/PR_ADC_INTERNAL
...
STM32 : internal ADC channels
2017-08-14 11:42:30 -05:00
Jimmy Brisson
1c41a9b920
Merge pull request #4869 from toyowata/lpc_spi_fix
...
HAL LPCs SPI: Fix mask bits for SPI clock rate
2017-08-14 11:40:25 -05:00
Jimmy Brisson
96074417b2
Merge pull request #4863 from Archcady/RTWInf
...
Optimize memory usage of wifi scan for REALTEK_RTW8195AM
2017-08-14 11:39:59 -05:00
Jimmy Brisson
d10d5af28a
Merge pull request #4842 from NXPmicro/Fix_Analogout
...
Add call to DAC_Enable as this is no longer done as part …
2017-08-14 11:38:38 -05:00
Jimmy Brisson
0f0a461209
Merge pull request #4832 from OpenNuvoton/nuvoton
...
NUC472/M453: Fix several startup and hal bugs
2017-08-14 11:38:18 -05:00
Jimmy Brisson
069b2536bf
Merge pull request #4812 from deepikabhavnani/nxp_spi
...
Use DSPI SDK driver API's in SPI HAL driver
2017-08-14 11:37:52 -05:00
Jimmy Brisson
98720b0ae2
Merge pull request #4809 from betzw/betzw_ticker_github_wb
...
STM32: Align HAL & US tickers
2017-08-14 11:36:52 -05:00
Jimmy Brisson
25bcc2795e
Merge pull request #4808 from betzw/betzw_idle_github_wb
...
Make HAL & US tickers idle safe
2017-08-14 11:36:35 -05:00
Jimmy Brisson
2766e56e3d
Merge pull request #4801 from bcostm/fix_can_issue_4763
...
STM32 CAN: Fix issue with speed function calculation
2017-08-14 11:36:17 -05:00
Jimmy Brisson
097720670e
Merge pull request #4631 from OpenNuvoton/nuvoton_nano130
...
Add new target NUMAKER_PFM_NANO130
2017-08-14 11:35:58 -05:00
Jimmy Brisson
0150f58e12
Merge pull request #4608 from OpenNuvoton/nuvoton_m487
...
Support Nuvoton's new target NUMAKER_PFM_M487
2017-08-14 11:35:33 -05:00
Rob Meades
410a345b70
Enable crypto HW acceleration for STM32F437xG platforms (i.e. ublox C030 family).
2017-08-14 11:44:13 +01:00
Pavel Slama
2bc224bc2f
target BLUEPILL_F106C8 compile fix
...
INITIAL_SP missing when compile, here is a quick fix
2017-08-13 15:32:11 +02:00
Deepika
2a9c88c1b0
Use DSPI SDK driver API's in spi block read
2017-08-11 10:22:23 -05:00
Anna Bridge
8a1c7fab79
Merge pull request #4813 from jacobjohnson-ON/master
...
Dual Flash and Hex file support on NCS36510
2017-08-11 11:50:15 +01:00
Jimmy Brisson
00ab1fd6b2
Merge pull request #4852 from janjongboom/cortexm0p_bugs
...
SAM_CortexM0P uses uninitialized memory in i2c and uses out of bounds array in pwmout
2017-08-10 09:38:53 -05:00
Jimmy Brisson
95ca29930f
Merge pull request #4851 from janjongboom/stm32f4_wrong_erase
...
STM32F4_HAL_MMC erase command check is wrong. == has higher precedence than &
2017-08-10 09:38:25 -05:00
Mahadevan Mahesh
8a8553e8a0
Add call to DAC_Enable as this is no longer done as part of DAC_Init
...
Fixes Issue #3999
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-08-10 09:36:48 -05:00
Yuguo Zou
215a7906d3
Change to use copy assignment operator for RTWInterface::scan
2017-08-10 17:36:05 +08:00
MS30 CCChang12
346209ed2f
[NANO130] Adjust the stack size in IAR toolchains
2017-08-10 15:35:02 +08:00
Wolfgang Betz
e2dc67750c
Make HAL & US tickers idle safe
2017-08-09 14:29:57 +02:00
Martin Kojtal
1c948283be
Merge pull request #4805 from NXPmicro/Update_K64F_DSPI_SDK_Driver
...
K64F: Update the DSPI SDK driver to support the new API to change DUM…
2017-08-09 10:24:07 +01:00
jeromecoutant
54a32e0410
STM32L1 : internal ADC channels
2017-08-09 11:01:40 +02:00
jeromecoutant
726f207ee8
STM32L0 : internal ADC channels
2017-08-09 11:01:36 +02:00
jeromecoutant
27bf7d21d1
STM32F7 : internal ADC channels
2017-08-09 11:01:32 +02:00
jeromecoutant
803ab189fc
STM32F4 : internal ADC channels
2017-08-09 11:01:27 +02:00
jeromecoutant
3826ad23f6
STM32F3 : internal ADC channels
2017-08-09 11:01:23 +02:00
jeromecoutant
63ccfa0958
STM32F1 : internal ADC channels
2017-08-09 11:01:19 +02:00
jeromecoutant
aff3478519
STM32F0 : internal ADC channels
2017-08-09 11:01:14 +02:00
toyowata
da7fa0dd2a
[HAL LPC43xx] Fix mask bits for SPI clock rate
2017-08-09 16:51:31 +09:00
toyowata
72e8241ee0
[HAL LPC408x] Fix mask bits for SPI clock rate
2017-08-09 16:51:31 +09:00
toyowata
cb9b2b0456
[HAL LPC13xx] Fix mask bits for SPI clock rate
2017-08-09 16:51:31 +09:00
toyowata
db2da2e932
[HAL LPC11xx_11Cxx] Fix mask bits for SPI clock rate
2017-08-09 16:51:31 +09:00
toyowata
aa334b0d3e
[HAL LPC11Uxx] Fix mask bits for SPI clock rate
2017-08-09 16:51:31 +09:00
toyowata
fdc071d5e8
[HAL LPC11U6x] Fix mask bits for SPI clock rate
2017-08-09 16:51:31 +09:00
toyowata
9ad17b21a2
[HAL LPC176x] Fix mask bits for SPI clock rate
2017-08-09 16:51:31 +09:00
Martin Kojtal
f200db3e84
STM32F4: fix for 2nd back sector
...
Use ADDR_FLASH_SECTOR_12 as this is defined by target (the flash size varies, for
instance for some F437xx is up to 2MB (2nd bank might not be there)).
2017-08-08 09:50:19 +01:00
Martin Kojtal
c7dd95d9b8
STM32F437: remove flash api implementation
...
STM32F4 already contains generic flash api implementation, use it.
2017-08-08 00:13:47 +02:00
Jimmy Brisson
0e1c20d8e7
Merge pull request #4854 from adustm/STM32F412_flash_boot
...
NUCLEO_F412ZG add flash driver and bootloader support
2017-08-07 10:28:14 -05:00
Jimmy Brisson
9c81ba8766
Merge pull request #4835 from u-blox/c030_bootloader
...
Add bootloader support for the UBLOX_C030 platforms.
2017-08-07 10:27:56 -05:00
Jan Jongboom
f9d0304a81
SAM_CortexM0P HAL accesses uninitialized memory
...
Uses uninitialized memory in I2C, and accesses an out of band array in pwmout
2017-08-07 11:15:48 +02:00
Yuguo Zou
f24a40906a
Use placement new to optimize wifi scan
2017-08-07 11:23:30 +08:00
adustm
9d0e9dd8de
Move DEVICE_FLASH define to avoid compilation issues for non FLASH devices
2017-08-04 10:09:27 +02:00
adustm
44c8d16243
Add bootloader support
2017-08-03 15:07:14 +02:00
adustm
8bd7b595d8
Move flash_api.c to STM32F4 level + add flash_data.h for STM32F412 device
...
add FLASH to targets.json
2017-08-03 14:14:05 +02:00
Jan Jongboom
54929f6aee
STM32F4_HAL_MMC erase command check is wrong. == has higher precedence than &
2017-08-03 13:03:36 +02:00
ccli8
f8af225dda
[M487] Remove support for uVisor core debug message via STDIO
...
This is necessary. Otherwise, program will hang in uninitialized STDIO UART because uVisor core doesn't enable it.
2017-08-03 18:48:31 +08:00
ccli8
04578b6a11
[M487] Add back device_name in target description
2017-08-03 13:53:48 +08:00
ccli8
9ac0d90937
[M487] Move target configuration from mbed_lib.json to targets.json
2017-08-03 13:40:32 +08:00
ccli8
afb5aba8d9
[M487] Fix compile warnings with IAR toolchain
2017-08-03 13:33:17 +08:00
ccli8
99d12b1eb8
[M487] Fix compile warnings with GCC_ARM toolchain
2017-08-03 11:10:15 +08:00
Yuguo Zou
56a98e11d1
Move ticker related text to SRAM to fix GCC mbed-os-tests-mbed_drivers-timeout failing issue
2017-08-03 11:06:24 +08:00
ccli8
b31d6f6eaa
[M487] Fix compile warnings with ARM toolchain
2017-08-03 09:24:05 +08:00
Yuguo Zou
1d06bf4279
Disambiguate function __memset() in rtl8195a_init.c
...
When use ARMCC, __memset is replaced by ARM's version which will make
boot process hang.
2017-08-01 17:45:04 +08:00
Yuguo Zou
49a7e4b59e
Fix GCC compile errors
2017-08-01 17:03:01 +08:00
Tony Wu
35d7ca27be
rtl8195am - fix ARMCC SRAM + SDRAM porting
...
Signed-off-by: Tony Wu <tonywu@realtek.com>
2017-08-01 15:29:21 +08:00
Steven Cooreman
1e51dfa302
[Silicon Labs] cryptographic acceleration support
...
Initial commit of mbed TLS hardware acceleration drivers for Silicon Labs parts
2017-08-01 09:25:19 +02:00
cyliangtw
6b8724b27d
[NUC472] Sync SPI mode with NUC472 BSP V3.02.001
2017-08-01 14:40:54 +08:00
ccli8
d885de6ec5
[NUC472/M453] Move target configuration from mbed_lib.json to targets.json
2017-08-01 14:40:48 +08:00
ccli8
8092c3611b
[NUC472/M453] Add comment for Receive Time-out IF in SPI HAL
2017-08-01 14:40:42 +08:00
ccli8
c7fcd071e9
[NUC472/M453] Add sanity check for serial format
2017-08-01 14:40:37 +08:00
ccli8
5e335de67e
[NUC472/M453] Set LED4 to LED1
...
No real LED4. Just for passing ATS.
2017-08-01 14:40:31 +08:00
ccli8
ea1de8c9a8
[NUC472/M453] Remove mbed_sdk_init_forced()
...
1. With mbed OS 5, mbed_sdk_init() is ensured to call before C++ global object constructor.
2. Refine startup file with GCC_ARM toolchain related to this modification.
2017-08-01 14:40:25 +08:00
ccli8
6c9fda4e3e
[NUC472/M453] Fix lp_ticker typo
2017-08-01 14:40:20 +08:00
ccli8
ea7a0fdf74
[NUC472/M453] Add comment in gpio_irq_init()
2017-08-01 14:40:14 +08:00
ccli8
46cb684a32
[NUC472] Conform to mbed TLS H/W acceleration support
2017-08-01 14:40:08 +08:00
ccli8
8067f9ac91
[NUC472/M453] Move SystemInit() to register unlock range for perhaps future protected register access
2017-08-01 14:40:02 +08:00
ccli8
2844be6434
[NUC472/M453] Fix RTC time doesn't continue across reset cycle
2017-08-01 14:39:57 +08:00
ccli8
c4df35d1b5
[NUC472/M453] Fix region end address error with IAR toolchain
2017-08-01 14:39:50 +08:00
ccli8
306d8449b3
[M487] Remove NVIC_SetVector/NVIC_GetVector to match updated boot flow
2017-08-01 10:53:40 +08:00
ccli8
670822a581
[M487] Update spi_master_block_write() API
2017-08-01 10:47:39 +08:00
ccli8
bc7193508e
[M487] Fix GCC linker script with uVisor
2017-08-01 10:37:28 +08:00
ccli8
52d5a61e29
[M487] Fix include file error in case-sensitive environment
2017-08-01 10:37:27 +08:00
ccli8
0803267eab
[M487] Add ticker API us_ticker_fire_interrupt and lp_ticker_fire_interrupt
2017-08-01 10:37:26 +08:00
ccli8
b54e7e9639
[M487] Remove debug code in I2C HAL
2017-08-01 10:37:25 +08:00
ccli8
ed5ef0cc54
[M487] Refine coding style
2017-08-01 10:37:16 +08:00
ccli8
7b564c7f52
[M487] Add comment for Receive Time-out IF in SPI HAL
2017-08-01 10:32:50 +08:00
ccli8
7cfb7ae8f8
[M487] Add sanity check for serial format
2017-08-01 10:32:48 +08:00
ccli8
7a60b35d52
[M487] Set LED4 to LED1
...
No real LED4. Just for passing ATS.
2017-08-01 10:32:46 +08:00
ccli8
355b4336d6
[M487] Remove dead code
2017-08-01 10:32:43 +08:00
ccli8
8c76476929
[M487] Remove mbed_sdk_init_forced()
...
1. With mbed OS 5, mbed_sdk_init() is ensured to call before C++ global object constructor.
2. Refine startup file with GCC_ARM toolchain related to this modification.
2017-08-01 10:32:41 +08:00
ccli8
e99dc63d1b
[M487] Fix lp_ticker typo
2017-08-01 10:32:38 +08:00
ccli8
58e79d5186
[M487] Remove device_name temporarily due to CMSIS pack for it not ready yet
2017-08-01 10:32:36 +08:00
ccli8
642a2acb92
[Nuvoton] Give universal rtx configuration for all Nuvoton targets
2017-08-01 10:32:34 +08:00
ccli8
77ea786c04
[M487] Fix abnormal pulse on re-configuring pwmout
...
The issue is met in ARM mbed CI test tests-api-pwm.
2017-08-01 10:31:52 +08:00
ccli8
39a9f05491
[M487] Fix ARM mbed CI pwm test failed
2017-08-01 10:31:50 +08:00
ccli8
f182d7fcae
[M487] Add internal configuration control_01
2017-08-01 10:31:48 +08:00
ccli8
9c90cfd304
[M487] Add Arduino UNO pins D14 and D15
2017-08-01 10:31:45 +08:00
ccli8
d709deffc6
[M487] Fix emitting uvisor core debug message through USB VCOM
2017-08-01 10:31:43 +08:00
ccli8
e49ceb173e
[M487] Support initial stack allocated on SPIM CCM memory
2017-08-01 10:31:41 +08:00
ccli8
694838b706
[M487] Guard from initial stack allocated on SPIM CCM memory not initialized yet
...
Not add this guard in IAR toolchain due to its unsupported ILINK syntax
2017-08-01 10:31:38 +08:00
cyliangtw
aa47503435
[M487] Revise CAN & AES to fulfill real-chip
2017-08-01 10:31:36 +08:00
cyliangtw
8f67774fd9
[M487] Revise EMAC to fulfill real-chip
2017-08-01 10:31:26 +08:00
ccli8
b516019b12
[M487] Add comment in gpio_irq_init()
2017-08-01 10:24:07 +08:00
ccli8
b7dedbe917
[M487] Align with BSP
2017-08-01 10:24:04 +08:00
ccli8
23672b09a2
[M487] Support bootloader
2017-08-01 10:23:58 +08:00
ccli8
cc2ab31d2c
[M487] Divert SRAM bank2 (32 KB) to CCM from SPIM cache
...
Extend SRAM from 128 KB to 160 KB
2017-08-01 10:23:56 +08:00
ccli8
30ab1007e4
[M487] Support one-to-many mapping in the same pin map
2017-08-01 10:23:55 +08:00
ccli8
bcb96a12e1
[M487] Add SPI MOSI0/MISO0 into pin map
...
SPI MOSI0/MISO0 can use as SPI standard MOSI/MISO pins
2017-08-01 10:23:54 +08:00
ccli8
ef50c180fc
[M487] Add LED4 to pass ATS
2017-08-01 10:23:52 +08:00
ccli8
280d767700
[M487] Update startup files
...
1. Add SYS_DISABLE_POR() in startup_M480.c
2. Fix FMC_T::CYCCTL access is not unlocked
3. Sync system_M480.c with BSP
2017-08-01 10:23:51 +08:00
ccli8
82a5b5dd34
[M487] Fix board header for real chip
2017-08-01 10:23:50 +08:00
ccli8
12536436f8
[M487] Conform to mbed TLS H/W acceleration support released with mbed OS 5.3
2017-08-01 10:23:48 +08:00
ccli8
7578541021
[M487] Fix some compile warnings
2017-08-01 10:23:47 +08:00
ccli8
4d4d1a89f9
[M487] Change OS_CLOCK to 192 MHz
2017-08-01 10:23:45 +08:00
ccli8
aaf26a12e1
[M487] Fix compile error with GCC_ARM toolchain
2017-08-01 10:23:44 +08:00
ccli8
90e35febc1
[M487] Alpha support for real chip
...
Real chip is incompatible with test chip due to change of pinout. From this on, test chip is unsupported.
2017-08-01 10:23:43 +08:00
ccli8
59acfb3a47
[M487] Correct comment for RTC time error in 1 sec after boot
2017-08-01 10:23:40 +08:00
ccli8
2fc3d1721b
[M487] Fix RTC time doesn't continue across reset cycle
2017-08-01 10:23:39 +08:00
ccli8
00b69c7ddd
[M487] Change comment for serial_getc/serial_putc
2017-08-01 10:23:38 +08:00
ccli8
e3fb76f0d9
[M487] Fix region end address error with IAR toolchain
2017-08-01 10:23:37 +08:00
ccli8
3f97ad3cdd
[M487] Rename sleep/deepsleep to hal_sleep/hal_deepsleep
2017-08-01 10:23:36 +08:00
ccli8
4cc90e54d5
[M487] Fix serial error with sync/async calls interlaced
2017-08-01 10:23:34 +08:00
ccli8
3f650566d9
[M487] Fix pwmout power-down condition
2017-08-01 10:23:33 +08:00
ccli8
bea7548717
[M487] Fix DMA channel over-allocate
2017-08-01 10:23:32 +08:00
ccli8
5e9999424a
[M487] Fix flash algorithm
...
1. Remove setting of not released register ICPCON
2. Enable FMC_APUEN to update APROM
2017-08-01 10:23:31 +08:00
ccli8
3a8be6c711
[M487] Remove 'FIXME' comment in flash_api.c
2017-08-01 10:23:29 +08:00
ccli8
bced49325a
[M487] Support flash
2017-08-01 10:19:54 +08:00
ccli8
898a4bb4bd
[M487] Refine serial PDMA code
2017-08-01 10:19:50 +08:00
ccli8
422871ab4d
[M487] Refine SPI PDMA code
2017-08-01 10:19:48 +08:00
ccli8
a76d55a555
[M487] Add dma_modbase() to get PDMA base address
2017-08-01 10:19:45 +08:00
ccli8
aeee0e8b57
[M487] Fix pwmout power-down condition
2017-08-01 10:19:42 +08:00
ccli8
ae33f9eed7
[M487] Fix PDMA error on timeout
2017-08-01 10:19:39 +08:00
ccli8
0c574f6a98
[M487] Add missing support for ANALOGIN
2017-08-01 10:19:36 +08:00
ccli8
65de13454e
[M487] Prepare support for one-to-many mappings in the same pin map
...
Also fix bumped bug which doesn't call NU_MODBASE() to retrieve module base address
2017-08-01 10:19:33 +08:00
ccli8
04bd652a56
[M487] Add configuration option MBED_CONF_M480_USB_DEVICE_HSUSBD
2017-08-01 10:19:30 +08:00
cyliangtw
d32607294f
[M487] Support CAN feature
2017-08-01 10:19:25 +08:00
ccli8
95e0bc094a
[M487] Change sbrk() allocation to be 32-byte aligned
2017-08-01 10:19:22 +08:00
ccli8
acee0379c7
[M487] Remove power-down support from us_ticker
2017-08-01 10:19:19 +08:00
ccli8
3dc5f2da34
[M487] Support uvisor debug message through stdio uart
2017-08-01 10:19:16 +08:00
ccli8
ebe56466cc
[M487] Fix us_ticker drift error > 5%
2017-08-01 10:19:14 +08:00
ccli8
44572cf1a8
[M487] Fix link error in uvisor-enabled application
2017-08-01 10:19:11 +08:00
ccli8
ee622a0c51
[M487] Fix compile error with Travis CI
...
Use MBED_CONF_RTOS_PRESENT to filter out des/sha alternative for mbed OS 2.
2017-08-01 10:19:09 +08:00
cyliangtw
b91f064be7
[M487] Add CAN, AES and Eth
2017-08-01 10:18:54 +08:00
ccli8
98a79c872b
[M487] Support NuMaker-PFM-M487 board
2017-08-01 10:14:24 +08:00
Jimmy Brisson
50c616ec74
Merge pull request #4750 from andreaslarssonublox/ublox_enable_hw_acc_odin_w2
...
Enable crypto HW acceleration for UBLOX_EVK_ODIN_W2
2017-07-31 15:24:47 +00:00
Jimmy Brisson
66c3385727
Merge pull request #4398 from maximmbed/max326xx_ble_update
...
MAX326xx: BLE updates, fixed sleep, open-drain LEDs
2017-07-31 15:23:47 +00:00
Jimmy Brisson
f08d5a496c
Merge pull request #4623 from LMESTM/analogin_handle
...
Improve management handling of multiple instances of analogin ojects
2017-07-31 15:23:31 +00:00
Yuguo Zou
d1c87347af
Fix ARMCC & IAR compile errors
2017-07-28 18:33:52 +08:00
Jimmy Brisson
74387f8c78
Merge pull request #4765 from iotvietmember/add_vbluno52
...
Add support for the VBLUno52 board
2017-07-27 09:45:53 -05:00
Jimmy Brisson
66805f5c67
Merge pull request #4755 from LordGuilly/bluepill_hse_config
...
Bluepill: hse config fix
2017-07-27 09:44:42 -05:00
Yuguo Zou
2654d2c433
Switch off DBG messages
...
And clean up some unused debug messages
2017-07-27 18:51:57 +08:00
Tony Wu
c9ecb2749d
rtl8195am - adjust memory layout and enable fota support
...
1. Rearrange SDRAM and SRAM layout. Move timing critical code to SRAM,
and the rest to SDRAM.
2. Add bootloader that's capable of FOTA over mbed cloud.
Signed-off-by: Tony Wu <tonywu@realtek.com>
2017-07-27 13:55:45 +08:00
Tony Wu
37739937ca
rtl8195am - rename GCC_ARM linker script
...
Signed-off-by: Tony Wu <tonywu@realtek.com>
2017-07-27 13:55:44 +08:00
Yuguo Zou
2864e4b05d
enable sdram usage of REALTEK_RTL8195AM
...
Signed-off-by: Tony Wu <tonywu@realtek.com>
2017-07-27 13:55:42 +08:00
jacobjohnson-ON
bd60addf40
Changed 36510 -> NCS36510 in targets.json
2017-07-26 08:15:06 -06:00
jacobjohnson-ON
41a0941d53
mbed OS 5.5.3, including the changes needed to enable 640k. Includes the proposed changes by Mac. 7/25/17
2017-07-25 17:37:14 -06:00
Wolfgang Betz
4fe8e8ca44
Align HAL & US tickers
2017-07-25 13:25:09 +02:00
MS30 CCChang12
38e78fa8b3
[NANO130] Ticker: add fire interrupt now function
2017-07-25 18:07:47 +08:00
MS30 CCChang12
c7cd9b607c
[NANO130] Change dummy to spi_fill in spi_api.c
2017-07-25 18:03:27 +08:00
Martin Kojtal
c8d43aeb2d
LPC MCUXpresso: fix write_fill argument for block write function
...
The latest HAL extension was not applied to the LPC MCUXpresso targets.
2017-07-25 10:26:40 +01:00
lordguilly
909a8343f5
Change HSE for blupill,can only be XTAL
...
The BLUEPILL board does have XTAL soldered, cannot be used with an external oscillator
2017-07-24 22:36:40 +01:00
Mahadevan Mahesh
cb95458c44
K64F: Update the DSPI SDK driver to support the new API to change DUMMY_DATA
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-07-24 15:26:13 -05:00
Jimmy Brisson
1f94ede86c
Merge pull request #4744 from deepikabhavnani/spi_issue_4743
...
Allow user to set default transfer byte for block read
2017-07-24 14:45:30 -05:00
Jimmy Brisson
d5108e5a7a
Merge pull request #4714 from bulislaw/expose_systemcoreclock
...
Expose SystemCoreClock via cmsis.h to support new CMSIS/RTX
2017-07-24 10:59:47 -05:00
Jimmy Brisson
456607b170
Merge pull request #4794 from jeromecoutant/PR_F767
...
NUCLEO_F767ZI : boot issue with GCC
2017-07-24 10:59:23 -05:00
Jimmy Brisson
f4de24bae1
Merge pull request #4793 from jeromecoutant/PR_F4_I2C
...
STM32 I2C : correct async issue
2017-07-24 10:59:03 -05:00
Jimmy Brisson
579bb3e994
Merge pull request #4778 from c1728p9/rebase_4161
...
Add AES HW encryption for NUCLEO_F756ZG in mbedtls
2017-07-24 10:58:32 -05:00
Jimmy Brisson
2098af5919
Merge pull request #4764 from jeromecoutant/PR_F0_PIN
...
STM32F0 : remove unavailable pins
2017-07-24 10:57:31 -05:00
Jimmy Brisson
732f7328f8
Merge pull request #4762 from jeromecoutant/PR_L4_ADC
...
DISCO_L475VG_IOT : pin update
2017-07-24 10:57:18 -05:00
Jimmy Brisson
c20154234f
Merge pull request #4756 from 0xc0170/fix_4613
...
Fix #4613 : remove duplicated startup files for MICRONFCBOARD
2017-07-24 10:56:57 -05:00
Jimmy Brisson
7a153ce337
Merge pull request #4754 from Archcady/TLS
...
Resolve TLS handshake failing issue for REALTEK_RTL8195AM
2017-07-24 10:55:30 -05:00
Jimmy Brisson
9e443e9d14
Merge pull request #4734 from LMESTM/stm32_uart_irq
...
Avoid data loss with serial interrupt used at high baudrates
2017-07-24 10:55:07 -05:00
Jimmy Brisson
57a4c95d2e
Merge pull request #4717 from monkiineko/master
...
STM32: Remove i2c_read() and i2c_write() redirects to HAL_I2C_IsDeviceReady()
2017-07-24 10:53:49 -05:00
Jimmy Brisson
a3359d6a9c
Merge pull request #4721 from marcuschangarm/flashiap_rtl8195am
...
REALTEK_RTL8195AM: FlashIAP read and address scope
2017-07-24 10:53:26 -05:00
Jimmy Brisson
742d98a9ed
Merge pull request #4696 from pan-/max32630_fix_uart
...
Max32630 UART: Fix IRQ dispatching and CTS/RTS line configuration
2017-07-24 10:46:36 -05:00
Jimmy Brisson
93ae6f99aa
Merge pull request #4290 from NXPmicro/Add_LPC54114_Support
...
Add mbed support for LPCXpresso54114 & LPCXpresso54608 boards
2017-07-24 10:46:14 -05:00
bcostm
cef5133092
STM32 CAN: Fix issue with speed function calculation
2017-07-24 16:35:39 +02:00
iotvietmember
bd49f4303e
Add support for the VBLUno52 board
...
Fix ERROR_PATTERN in VBLUNO52 config
Signed-off-by: iotvietmember <robotden@gmail.com>
2017-07-22 11:23:51 +07:00
Deepika
1b797e9081
Closed review comments
...
1. Doxygen and Grammar related
2. Change dummy to spi_fill
3. Remove NXP driver and add default loop in spi block read (same as all
other drivers)
2017-07-21 09:46:22 -05:00
jeromecoutant
9e334a6b4a
NUCLEO_F767ZI : boot issue with GCC
2017-07-21 14:46:39 +02:00
jeromecoutant
c8cba15be7
STM32 I2C : correct async issue
2017-07-21 13:35:58 +02:00
Mahadevan Mahesh
316b859baf
LPC: Move platform specific code out of the analog api file
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-07-20 13:16:06 -05:00
Mahadevan Mahesh
7d8b6d7684
LPC: Move platform specific code out of sleep api file
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-07-20 13:15:59 -05:00
Mahadevan Mahesh
dfe2d3ba4c
Add support for LPC54608
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-07-20 13:15:51 -05:00
Mahadevan Mahesh
aee6f7b227
Add mbed support for LPCXpresso54114 board
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-07-20 13:15:36 -05:00
Laurent MEUNIER
7414b1266b
STM32: ADC: Fix PinMap_ADC_Internal
...
The instance needs to be searched in PinMap_ADC_Internal, not PinMap_ADC.
This was a copy paste error...
2017-07-20 14:15:37 +02:00
Russ Butler
7a9a22e2cd
Change 'macros' to 'macros_add' for NUCLEO_F756ZG
...
Address PR feedback by renaming 'macros' to 'macros_add'.
2017-07-19 13:09:45 -05:00
jeromecoutant
b654af2d80
STM32L4 : json clock source configuration
...
- default value is the same as before patch
- system_stm32l4xx.c file is copied to family level with all other ST cube files
- specific clock configuration is now in a new file: system_clock.c (target level)
- nvic_addr.h file is now in TARGET_STM level
2017-07-19 16:39:26 +02:00
jeromecoutant
912c0de938
STM32L1 : json clock source configuration
...
- default value is the same as before patch
- system_stm32l1xx.c file is copied to family level with all other ST cube files
- specific clock configuration is now in a new file: system_clock.c (target level)
2017-07-19 16:39:17 +02:00
jeromecoutant
341713b2ae
STM32L0 : json clock source configuration
...
- default value is the same as before patch
- system_stm32l0xx.c file is copied to family level with all other ST cube files
- specific clock configuration is now in a new file: system_clock.c (target level)
2017-07-19 16:23:43 +02:00
jeromecoutant
26cd51f42a
STM32F7 : json clock source configuration
...
- default value is the same as before patch
- system_stm32f7xx.c file is copied to family level with all other ST cube files
- specific clock configuration is now in a new file: system_clock.c (target level)
2017-07-19 16:23:43 +02:00
jeromecoutant
bc40b735d4
STM32F3 : json clock source configuration
...
- default value is the same as before patch
- system_stm32f3xx.c file is copied to family level with all other ST cube files
- specific clock configuration is now in a new file: system_clock.c (target level)
2017-07-19 16:23:42 +02:00
jeromecoutant
df6a570a41
STM32F2 : json clock source configuration
...
- default value is the same as before patch
- system_stm32f2xx.c file is copied to family level with all other ST cube files
- specific clock configuration is now in a new file: system_clock.c (target level)
2017-07-19 16:23:41 +02:00
jeromecoutant
68e1b2b465
STM32F1 : json clock source configuration
...
- default value is the same as before patch
- system_stm32f1xx.c file is copied to family level with all other ST cube files
- specific clock configuration is now in a new file: system_clock.c (target level)
2017-07-19 16:23:41 +02:00
jeromecoutant
c13998f306
STM32F0 : json clock source configuration
...
- default value is the same as before patch
- system_stm32f0xx.c file is copied to family level with all other ST cube files
- specific clock configuration is now in a new file: system_clock.c (target level)
2017-07-19 16:23:40 +02:00
Marcus Chang
1930c4b136
REALTEK_RTL8195AM: FlashIAP read and address scope
...
The FlashIAP is supposed to have access to the full application
memory, so the address scope has been changed to encompass
the entire external flash.
The address translation has also been changed to reflect the memory
layout in the documentation:
Realtek Ameba1 Memory Layout: 5.1 Flash Memory
2017-07-19 14:24:50 +01:00
adustm
1ae5f8cdaa
Add AES HW encryption for NUCLEO_F756ZG in mbedtls
2017-07-18 17:09:54 -05:00
MS30 CCChang12
5f58104640
[NANO130] Fix the file name case problem, verified on Ubuntu Linux
2017-07-18 20:00:08 +08:00
Jimmy Brisson
953b9250f1
Merge pull request #4751 from andreaslarssonublox/ublox_remove_redundant_odin_target_folder
...
Remove redundant ODIN-W2 target folder
2017-07-17 11:09:58 -05:00
Jimmy Brisson
e62b61c9a5
Merge pull request #4745 from Wiznet/master
...
WIZnet W7500*: Remove support for RTC
2017-07-17 11:09:39 -05:00
Jimmy Brisson
a0231db0b9
Merge pull request #4727 from u-blox/c030_peripheral_pins
...
Update UART3 pins for UBLOX_C030 platform.
2017-07-17 11:09:19 -05:00
Jimmy Brisson
1f23f74b93
Merge pull request #4732 from theotherjimmy/bcostm-pinmap
...
Correct DAC pin assignment
2017-07-17 11:08:57 -05:00
Jimmy Brisson
a2896cbd8d
Merge pull request #4708 from mattot01/CM3DS_enable_MPS2_test
...
Enable greentea testing on CM3DS_MPS2 target
2017-07-17 11:07:35 -05:00
Jimmy Brisson
775b935ed0
Merge pull request #4687 from bcostm/update_mbed_rtx_h
...
STM: cleanup mbed_rtx.h file
2017-07-17 11:07:07 -05:00
Jimmy Brisson
185b7233da
Merge pull request #4676 from LMESTM/issue_2959
...
Correctly enable / disable InterruptIn Edges detection
2017-07-17 11:06:27 -05:00
Jimmy Brisson
a75f935348
Merge pull request #4664 from bperry730/fix/st_can_api_freq
...
STM32: Fix the CAN initializing to the wrong frequency
2017-07-17 11:06:04 -05:00
Jimmy Brisson
adfed0f9de
Merge pull request #4644 from 0xc0170/fix_ticker_delta_negative
...
Ticker: add fire interrupt now function
2017-07-17 11:05:46 -05:00
Jimmy Brisson
6593d5bc7f
Merge pull request #4640 from chrissnow/xDot-Bootloader
...
STM32L1 Flash API and xDot bootloader support
2017-07-17 11:04:53 -05:00
Laurent MEUNIER
b9d801fe72
STM32: L0: adc struct member does not exist anymore
2017-07-17 16:29:09 +02:00
jeromecoutant
7da7af6cc4
STM32F0 : remove unavailable pins
...
Pins used for STDIO_UART_TX and STDIO_UART_RX are not available
2017-07-17 16:19:15 +02:00
jeromecoutant
a98594d132
DISCO_L475VG_IOT: remove unavailable pins
2017-07-17 14:09:01 +02:00
jeromecoutant
e0e332f5d9
STM32L4 AnalogIn init issue with _ALT pins
2017-07-17 13:33:50 +02:00
Laurent MEUNIER
ea33f8bf94
STM32: F2: adc; struct member not needed
...
Same as other families applied here
2017-07-17 13:27:22 +02:00
Laurent MEUNIER
efbeb0d057
STM32: analogin: adc struct member not needed anymore
...
The adc in analogin_t has the same value as the Instance member of
ADC_HandleTypeDef. So we can only rely on the later one.
2017-07-17 13:27:22 +02:00
Laurent MEUNIER
8540e8a1dd
STM32: Analogin - define handle in object not as a global
...
In this commit, the analogin_s structure is moved to commonn_objects.h file
to limit the duplicaion.
The ADC handle is moved from a global variable to a struct member of the
analogin object. This allows multiple ADC instances to work correctly.
Note that State needs to be explicitely set to HAL_ADC_STATE_RESET
because the object is not zero initialized.
2017-07-17 13:23:45 +02:00
Laurent MEUNIER
b5cbaaa0d0
STM32: Serial - use TXE as tx_irq instead of TC
...
TXE indicates that a byte can be written to UART register for sending,
while TC indicates that last byte was completely sent. So the TXE flag
can be used in case of interrupt based Serial communication, to allow
faster and efficient application buffer emptying.
Also TXE flag will be erased from the interrupt when writing to register.
In case there is nothing to write in the register, the application is
expected to disable the interrupt.
2017-07-17 08:46:00 +02:00
Laurent MEUNIER
85711eb09e
STM32: Serial - do no clear RXNE flag
...
The RXNE flag is getting cleared when reading Data Register so it should
not be cleared here. Especially in case of high data rate, another byte of
data could have received during irq_handler call and clearing the flag
would read and discard this data which would be lost for application.
2017-07-17 08:46:00 +02:00
Jesse Marroquin
3a4138369d
Update BLE, fix sleep and open-drain LEDs in MAX326xx
...
MAX32630FTHR gets BLE, uses timer peripheral 5 for HCI timing
libexactLE update for 610,620
Fixup hal_sleep and hal_deepsleep for 620
LEDn outputs now forced to open-drain
2017-07-14 17:36:56 -05:00
Yuguo Zou
2ec8b04074
Resolve TLS handshake failing issue
...
this issue, relating to wifi thread priority, makes blocking TCP socket
failing
2017-07-14 11:21:53 +08:00
MS30 CCChang12
4f66d2d809
[NANO130] Fix the file name case problem for building code in Linux system
2017-07-14 09:39:08 +08:00
Martin Kojtal
a7f9dc66b8
Fix #4613 : remove duplicated startup files for MICRONFCBOARD
...
Inherits from LPC11U34_421, that defines startup. They were identical.
2017-07-13 17:03:29 +01:00
Martin Kojtal
c295187750
Merge pull request #4634 from nvlsianpu/bugfix/issue_4357_I2C_SPI_simultaneously
...
Fix the issue #4357 : NRF52 doesn't support simultaneous use of I2C and SPI.
2017-07-13 16:53:33 +02:00
Bartek Szatkowski
693a3a8837
sara_nbiot_evk: Expose SystemCoreClock via cmsis.h
...
This change is necessary as updated CMSIS/RTX require the
SystemCoreClock symbol.
2017-07-13 15:49:34 +01:00
Bartek Szatkowski
03e80119b5
REALTEK_RTL8195AM: Expose SystemCoreClock via cmsis.h
...
This change is necessary as updated CMSIS/RTX require the
SystemCoreClock symbol.
2017-07-13 15:49:33 +01:00
Martin Kojtal
43a361214a
Merge pull request #4667 from Archcady/mute_debug_msg
...
Update and mute debug messages of REALTEK_TRL8195AM
2017-07-13 16:47:31 +02:00
Martin Kojtal
1e821499df
Merge pull request #4668 from bcostm/update_f429zi_pinouts
...
DISCO/NUCLEO_F429ZI: Enable all alternate functions and pins
2017-07-13 16:45:59 +02:00
Martin Kojtal
42548f3dce
Merge pull request #4691 from LMESTM/analogin_sample_time
...
STM32: F4: Increase ADC sampling time for VBAT
2017-07-13 16:43:40 +02:00
Martin Kojtal
06ff4f8bf2
Merge pull request #4693 from pan-/fix#4658
...
Nordic: Fix multiple defined symbol.
2017-07-13 16:43:09 +02:00
Rob Meades
1c7a7bc6a3
Add bootloader support for the UBLOX_C030 platforms.
2017-07-13 15:42:54 +01:00
Martin Kojtal
58d0aa5ce8
Merge pull request #4694 from bcostm/typo_pins_disco_l475vg
...
DISCO_L475VG_IOT01A: typo corrections in PeripheralPins.c
2017-07-13 16:42:00 +02:00
Martin Kojtal
29fefe8639
Merge pull request #4699 from jeromecoutant/PR_L0_InternalADC
...
STM32L0 : internal ADC channels
2017-07-13 16:40:54 +02:00
Martin Kojtal
59dd859210
Merge pull request #4707 from LMESTM/stm32_serial_it_source
...
STM32: serial: use proper macro to check interrupt
2017-07-13 16:40:16 +02:00
Martin Kojtal
08dfc8458e
Merge pull request #4736 from pan-/fix_nrf52_idle_stack
...
NRF52832: Extend idle thread stack size to 512 bytes.
2017-07-13 16:36:38 +02:00
Martin Kojtal
10ea63b8e7
Ticker: add fire interrupt now function
...
fire_interrupt function should be used for events in the past. As we have now
64bit timestamp, we can figure out what is in the past, and ask a target to invoke
an interrupt immediately. The previous attemps in the target HAL tickers were not ideal, as it can wrap around easily (16 or 32 bit counters). This new
functionality should solve this problem.
set_interrupt for tickers in HAL code should not handle anything but the next match interrupt. If it was in the past is handled by the upper layer.
It is possible that we are setting next event to the close future, so once it is set it is already in the past. Therefore we add a check after set interrupt to verify it is in future.
If it is not, we fire interrupt immediately. This results in
two events - first one immediate, correct one. The second one might be scheduled in far future (almost entire ticker range),
that should be discarded.
The specification for the fire_interrupts are:
- should set pending bit for the ticker interrupt (as soon as possible),
the event we are scheduling is already in the past, and we do not want to skip
any events
- no arguments are provided, neither return value, not needed
- ticker should be initialized prior calling this function (no need to check if it is already initialized)
All our targets provide this new functionality, removing old misleading if (timestamp is in the past) checks.
2017-07-13 12:23:25 +01:00
andreas.larsson
969d44d833
Remove redundant ODIN-W2 target folder
2017-07-12 15:05:25 +02:00
andreas.larsson
e776e0ee54
Added HW acceleration for ODIN-W2
2017-07-12 12:13:22 +02:00
Yuguo Zou
d46cc2ad3f
Remove unused headfile
...
This shall prevent confusion
2017-07-12 17:49:52 +08:00
Yuguo Zou
b435ff4a16
Enable/Disable debug from argument of constructor
2017-07-12 17:40:24 +08:00
MS30 CCChang12
2050095b0f
[NANO130] remove usage of mktime/localtime in rtc_api.c
2017-07-12 13:53:59 +08:00
justinkim
66500c0917
Unsupported RTC
...
delete rtc_api.c -> PWM3 pin enable
2017-07-12 13:43:08 +09:00
Yuguo Zou
c7111c429e
mute wifi_conf messages
2017-07-12 12:13:05 +08:00
MS30 CCChang12
83f395c07c
[NANO130] Fix symbol of IAR toolchain
2017-07-12 11:01:03 +08:00
MS30 CCChang12
00fa0f64c1
[NANO130] Remove dead code
2017-07-12 10:49:40 +08:00
Deepika
fd43405ffe
Allow user to set dummy tranfer byte for block read
2017-07-11 15:46:32 -05:00
Vincent Coubard
bf419ca1b3
Max32630 UART: Fix P5_5 mapping.
2017-07-11 17:53:58 +01:00
Laurent MEUNIER
be8024de28
STM32: serial: use proper GET_IT macro
...
Depending on families, different HAL macros are defined to check the
state of serial interrupts. In several cases, we can find only 1 macro:
__HAL_UART_GET_IT_SOURCE
Checks whether the specified UART interrupt has occurred or not
But in F0, F3, F7, L0, L4 there are 2 different macros
__HAL_UART_GET_IT
Checks whether the specified UART interrupt has occurred or not
__HAL_UART_GET_IT_SOURCE
Checks whether the specified UART interrupt source is enabled.
In the later case, __HAL_UART_GET_IT_SOURCE was being used so far,
but actually needs to be replaced by __HAL_UART_GET_IT. Using the right
macro, we also check the proper flags accordingly.
2017-07-11 17:22:33 +02:00
Vincent Coubard
3f4e839957
NRF52832: Extend idle thread stack size to 512 bytes.
...
Fix a crash where the idle thread stack size overflows. This crash
was depending on the compiler and standard library used.
2017-07-11 11:55:47 +01:00
MS30 CCChang12
3bbacad6a7
[NANO130] Remove mbed_sdk_init_forced()
...
1. With mbed OS 5, mbed_sdk_init() is ensured to call before C++ global object constructor.
2. Refine startup file with GCC_ARM toolchain related to this modification.
2017-07-11 17:50:20 +08:00
Jimmy Brisson
668d47305b
Correct DAC pin assignment
2017-07-10 13:33:21 -05:00
Jimmy Brisson
aae62bd990
Merge pull request #4674 from andreaslarssonublox/ublox_evk_nina_b1_fix_led4
...
Fix LED4 for UBLOX_EVK_NINA_B1
2017-07-10 12:06:11 -05:00
Jimmy Brisson
b38c85cafe
Merge pull request #4525 from fahhem/patch-1
...
Improve the startup code on the STM32F070
2017-07-10 12:04:42 -05:00
Jimmy Brisson
3d86959dd8
Merge pull request #4485 from kegilbert/f429_sdk_flash_driver-rebase
...
Replace CMSIS flash driver by SDK flash driver
2017-07-10 12:03:03 -05:00
Rob Meades
f920cc65af
UBLOX_C030: correct UART 3 Tx & Rx pins (they were the wrong way around) and add the flow control lines for UART 3.
2017-07-08 11:32:46 +01:00
Laurent MEUNIER
61648a53f5
Fix alignement
2017-07-07 17:27:46 +02:00
Anna Bridge
4890261c98
Merge pull request #4548 from deepikabhavnani/os_warn
...
Resolve Warnings for mbed-os-examples
2017-07-07 12:43:27 +01:00
Jimmy Brisson
e0f56d1ab7
Merge pull request #4659 from jeromecoutant/PR_F767
...
Add the correct startup s file in TARGET_STM32F767
2017-07-06 10:18:08 -05:00
Jimmy Brisson
dea489ef29
Merge pull request #4163 from adustm/STM_aes_l486rg
...
STM32L486RG/mbedtls: add aes hw acceleration
2017-07-06 10:17:15 -05:00
mattot01
774b5c6584
Enable greentea testing on CM3DS_MPS2 target
...
Set copy_method and reset_method in targets.json which is needed for
htrun.
2017-07-06 08:23:45 +02:00
Bradley Scott
251459e8aa
STM32: Remove i2c_read() and i2c_write() redirects to HAL_I2C_IsDeviceReady()
...
Some I2C devices require specific zero length read/write sequences which
the HAL_I2C_IsDeviceReady() redirect interferes with. After Removing
these redirects, it was confirmed that zero length reads and writes
would both still work correctly for detecting presence/absence of an
I2C device on a bus.
2017-07-05 14:02:34 -04:00
bcostm
98aa178127
NUCLEO_F429ZI: comments corrections
2017-07-05 10:03:30 +02:00
bcostm
a86fc17e99
DISCO_F429ZI: Typo correction
2017-07-05 10:03:27 +02:00
bcostm
e8c817b105
NUCLEO_F429ZI: Add alternate pins and enable all pins
2017-07-05 10:03:23 +02:00
bcostm
20ef523195
DISCO_F429ZI: Typo corrections + add missing ALT pins
2017-07-05 10:03:21 +02:00
bcostm
b11151a96d
DISCO_F429ZI: Add missing ADC alternate pins
2017-07-05 10:03:17 +02:00
bcostm
3cdf90dc2f
DISCO_F429ZI: Add alternate pins and enable all pins
2017-07-05 10:03:15 +02:00
bcostm
7b09a10360
DISCO_F429ZI: Add 'Connected to' comment
2017-07-05 10:03:11 +02:00
cyliangtw
2f8e3fbfff
[NANO130] remove dead code
2017-07-05 11:11:43 +08:00
cyliangtw
348fa75b34
[NANO130] remove unnecessary progen in target.json
2017-07-05 11:10:25 +08:00
Jimmy Brisson
3f3fce9448
Merge pull request #4679 from 0xc0170/fix_ncs_usticker
...
ncs36510: us ticker improvements
2017-07-03 13:39:57 -05:00
Vincent Coubard
004d01d1b5
MAX32630: Apply correct configuration for CTS/RTS lines.
2017-07-03 17:02:43 +01:00
Vincent Coubard
5157c7b622
MAX32630: clear uart interrupt flag prior to handler call.
2017-07-03 16:39:29 +01:00
Vincent Coubard
253de5286d
MAX32630: Map UART IRQ to serial object.
...
Before this change none of the IRQ set would be dispatch to the actual serial object.
2017-07-03 16:35:19 +01:00
bcostm
d58070b658
DISCO_L475VG_IOT01A: typo corrections in PeripheralPins.c
2017-07-03 16:12:14 +02:00
Vincent Coubard
17b68d7c50
Nordic: Fix multiple defined symbol.
...
The symbol Systick_Handler was defined as a weak symbol in us_ticker.c and
startup_nRF51822.s. While it work as expected when an application is compiled
from mbed OS source code it creates a duplicate symbol issue when mbed OS is
bundled as a library.
2017-07-03 15:07:06 +01:00
Laurent MEUNIER
f8d6f95102
STM32: F4: Increase ADC sampling time
...
To get a valid VBAT measurement on F4 targets, it is required to increased
the sampling time to its maximum value.
2017-07-03 15:51:14 +02:00
Anna Bridge
c826e2f8b7
Merge pull request #4565 from Archcady/flash
...
Add FlashIAP support for REALTEK_RTL8195AM
2017-07-03 11:07:21 +01:00
bcostm
bd8fd08fe4
STM: cleanup mbed_rtx.h file
2017-07-03 11:16:35 +02:00
Chris
2a2d904b91
Tidy from rebase
2017-06-30 22:31:21 +01:00
Chris
a516dcac84
Code tidy
2017-06-30 22:28:06 +01:00
Chris
e59c059d3f
Incorrect comments removed.
2017-06-30 22:28:06 +01:00
Chris
8484467fdd
GCC Bootloader support
2017-06-30 22:28:06 +01:00
Chris
82a33b2a70
IAR Bootloader support
2017-06-30 22:28:06 +01:00
Chris
a4c7a29144
uArm Bootloader support
2017-06-30 22:28:06 +01:00
Chris
ed51bcb1d0
Formatting tidy up.
2017-06-30 22:28:06 +01:00
Chris
65ab95572c
added missing FLASH_FLAG_OPTVERR
2017-06-30 22:28:06 +01:00
Chris
5803bdd715
clear additional flags on erase to prevent errors
2017-06-30 22:28:06 +01:00
Chris
802000b059
GCC_ARM VTOR fixed, doesnt fit in the bootloader region though..
2017-06-30 22:28:06 +01:00
Chris
0ff055115a
VTOR bootloader aware
...
Attempt to add flash API but not working properly
2017-06-30 22:28:06 +01:00
Chris
18998411d8
added flash algorithm
2017-06-30 22:25:53 +01:00
Chris
c1e32a75df
initial commit of xDot bootloader
2017-06-30 22:25:53 +01:00
Jimmy Brisson
d382d44f06
Merge pull request #4529 from LMESTM/issue_1083
...
Manage multiple instances of analog out
2017-06-30 13:53:46 -05:00
Martin Kojtal
865f470324
ncs36510: us ticker improvements
...
Do not ticker read in ISR, use reminder to schedule the next interrupt, this should make ticker much faster.
read - disable Timer0 while reading it, if ISR is pending just reread the time again via read() function
These 2 improvements should decrease time spent when reading/scheduling ticker
events.
2017-06-30 16:34:30 +01:00
Laurent MEUNIER
cea91306de
STM32: Raise error in case of spurious interrupt
...
In case we've run through the entire GPIOs loop, withouth finding a
matching interrupt, we're in the case of a spurious interrupt, let's
raise an error to track it down.
2017-06-30 13:26:09 +02:00
Laurent MEUNIER
ade981dc9e
STM32: Store and restore rising falling config of gpio_irq
...
Now that rising / falling edge detection is disabled in the
gpio_irq_disable function, we also need to restore it when gpio_irq_enable
gets called.
2017-06-30 13:26:09 +02:00
Laurent MEUNIER
88770528bd
STM32 Fuly disable GPIO irq settings
...
When disabling GPIO irq, also the falling / rising edge settings need
to be reset (EXTI_RTSR and EXTI_FTSR registers).
If not reset, the same EXTI line can be later enabled again with a wrong
Rising / Falling configuration. This was especially seen and reported in
ci-test tests-api-interruptin on NUCLEO_F446RE target where DIO2=PA_10 and
DIO6=PB_10 were successively tested: as they are sharing the same EXTI_LINE
(EXTI_10), this resulted in calling the irq_handler with wrong
IRQ_FALL/IRQ_RAISE parameter and donothing being called in loop.
2017-06-30 13:26:09 +02:00
andreas.larsson
461c1b8492
Set LED4 the same as LED3 to get tests-mbedmicro-rtos-mbed-timer to pass. If set to NC the test will assert.
2017-06-30 12:29:38 +02:00
jeromecoutant
aefb13ab2a
STM32L0 : internal ADC channels
2017-06-30 11:07:31 +02:00
adustm
90bc8ca7ae
Replase CMSIS flash driver by SDK flash driver
2017-06-29 14:25:27 -05:00
adustm
4860e6a485
Rebase of: cb3907ef70
...
typo in flash_s struct
2017-06-29 14:24:40 -05:00
adustm
e7fb5b4edd
Rebase of: dfd0cf63e9
...
fix STM32F439 flash HAL
2017-06-29 14:24:40 -05:00
adustm
64e902edda
Rebase: 0d1c6c2d34
...
This commit completely rewrote flash_api.c in a few places so kicked out changes from Master and accepted the branch changes.
F429 + F439 : changes after code review
GetSector has been rewritten
2017-06-29 14:24:40 -05:00
adustm
565c3c11ad
Allow UBLOX to use SDK flash driver
2017-06-29 14:24:40 -05:00
Jimmy Brisson
9b082fff55
Merge pull request #4656 from LMESTM/update_flash_comments
...
Correct comments in flash api for STM32 L0 targets
2017-06-29 11:09:23 -05:00
Jimmy Brisson
0c5fc5b05a
Merge pull request #4641 from LMESTM/Increase_STM32L0_analogin_sampling_time
...
Increase L0 ADC sample time
2017-06-29 11:09:03 -05:00
Jimmy Brisson
d52ed5394c
Merge pull request #4632 from 0xc0170/fix_stm32_32bitticker
...
STM32: fix us ticker set event timestamp double ISR possibility
2017-06-29 11:08:42 -05:00
Jimmy Brisson
916bc4d953
Merge pull request #4629 from iotvietmember/add_target_vbluno51
...
Add support for VBLUno51 board
2017-06-29 11:08:19 -05:00
Jimmy Brisson
041737b248
Merge pull request #4577 from MultiTechSystems/xdot-enable-hsi
...
XDOT_L151CC: enable HSI after waking from stop mode so ADC functions
2017-06-29 11:07:17 -05:00
Jimmy Brisson
ea5c2cf328
Merge pull request #4421 from jeromecoutant/PR_CONFIG_CLOCK
...
STM32 : Clock source selection in json config file
2017-06-29 11:04:24 -05:00
Jimmy Brisson
88268bd3eb
Merge pull request #4625 from adustm/PULL_REQUEST_CUBE_UPDATE_F7_V1.7.0
...
Update STM32F7 cube from v1.6.0 to v1.7.0
2017-06-29 11:04:02 -05:00
Jimmy Brisson
54b2816b11
Merge pull request #4647 from nvlsianpu/bugfix/issue_4488_hardcode_uart_pins_nrf52
...
Remove hardcode UART pins definitions for nRF52832 SoC
2017-06-29 11:03:01 -05:00
adustm
2da3128a2a
STM32L486RG/mbedtls: add aes hw acceleration
2017-06-29 16:05:45 +02:00
Yuguo Zou
b7f1e73f97
Update and mute debug messages from wifi
2017-06-29 16:40:01 +08:00
jeromecoutant
2ae2d9896e
STM32F4: json clock source configuration
...
- default value is the same as before patch
- system_stm32f4xx.c file is copied to family level with all other ST cube files
- specific clock configuration is now in a new file: system_clock.c
- nvic_addr.h file is now in TARGET_STM level, and can be used everywhere
2017-06-29 09:57:40 +02:00
Brad Perry
f7d76b5d29
Fixing the problem where the CAN is initialized to the wrong frequency at startup regardless of the value set in the constructor. Issue #3863
2017-06-28 12:07:14 -07:00
jeromecoutant
b5ef7a675a
Add the correct startup s file in TARGET_STM32F767
2017-06-28 17:13:02 +02:00
Jimmy Brisson
4fc4405306
Merge pull request #4610 from jeromecoutant/PR_TARGETJSON
...
STM32 : targets.json file simplification
2017-06-28 09:23:40 -05:00
Jimmy Brisson
bb3bedad79
Merge pull request #4638 from bcostm/fix_cmsis5_disco_l475vg
...
DISCO_L475VG_IOT01A: Fix startup files for cmsis5
2017-06-28 09:20:05 -05:00
Laurent MEUNIER
c5d76a2950
Correct comments in flash api for STM32 L0 targets
...
The initial comments were copied from L4 implementation but do not apply
to L0 targets where 1 sector is composed of a constant number of pages.
2017-06-28 09:41:52 +02:00
Jimmy Brisson
e907079456
Merge pull request #4603 from jeromecoutant/PR_OVERRIDE
...
STM32 : mbed_overrides.c is common for all families
2017-06-27 14:59:24 -05:00
iotvietmember
96e932525b
Remove comment in sdk_config.h
...
Signed-off-by: iotvietmember <robotden@gmail.com>
2017-06-27 21:27:40 +07:00
Andrzej Puzdrowski
080c5af88b
remove hardcode uart pins definition for nRF52 SoCs
...
Each boards define its own pins.
2017-06-27 16:00:52 +02:00
Martin Kojtal
0591b2bcd4
STM32: fix us ticker set event timestamp
...
While we are handling new timestamp, disable ticker's interrupt.
2017-06-27 09:54:29 +01:00
Andrzej Puzdrowski
323633611c
nrf5 spi_api - coding style enhancement
2017-06-27 10:44:21 +02:00
Andrzej Puzdrowski
c1870afa86
Bugfix: #4357 simultaneous using of I2C and SPI.
...
Use serial-box of Nordic nRF5 SDK to share resource between
SPI and I2C.
SPI is allocated from highest hw instance number resource in order
to allocate as many I2C instances as possible.
2017-06-27 10:44:20 +02:00
Laurent MEUNIER
ca26db620b
Increase L0 ADC sample time
...
With default sampling time, the MBED2 and CI test shield tests would fail
because the stabilization slope of ADC is relatively slow.
ERROR (out:0.8000) - (in:0.7407) = (0.0593)
ERROR (out:0.9000) - (in:0.8354) = (0.0646)
ERROR (out:1.0000) - (in:0.9289) = (0.0711)
This is related to the 10kOhms resistors used to connect Ain to
Aout mounted on the CI shileds, and internal capacitance of L0 targets.
If connecting Ain and Aout with wires, bypassing the resistors, the test
is passed. So we're increasing the sampling time to let the automated
ci shiled tests PASS.
OK (out:0.8000) - (in:0.7863) = (0.0137)
OK (out:0.9000) - (in:0.8869) = (0.0131)
OK (out:1.0000) - (in:0.9844) = (0.0156)
2017-06-27 10:33:42 +02:00
Laurent MEUNIER
4238216ad8
STM32: STM32F413xH dac_s common definition
...
Fixing conflict as STM32F413xH target has been merged after the first
version of moving dac_s structure definition to common_ojects.h
2017-06-27 09:30:45 +02:00
Laurent MEUNIER
07575b33f0
STM32: STM32L475xG dac_s common definition
...
Fixing conflict as STM32L475xG target has been merged after the first
version of moving dac_s structure definition to common_ojects.h.
2017-06-27 09:27:46 +02:00
Laurent MEUNIER
024b3da5f1
STM32: analog_out: generalize code for multiple instance handling
...
Moving some code in common to be able to manage several ADC instances,
or several channels of an instance.
The change involves:
- moving dac_s structure definition to common_object.h
- create TARGET_STM/analogout_api.c and move fully common analog_out
functions in there
- rename analogout_api.c of each target family into analogout_device.c
to keep platform specific code
- update analogout_device.c to rely on obj->handle and obj->channel
- align analogout_init function as much as possible between families in
analogout_device.c files
2017-06-27 09:27:46 +02:00
Laurent MEUNIER
b51d676dc0
STM32: analog_out: Enable Buffer and switch
...
ADC1 channel2 and ADC2 of few targets only have an output switch and no
buffer. This switch needs to be enabled, and also the buffer can be enabled
in order to reduce the output impedance on output, and to drive external
loads directly without having to add an external operational amplifier.
2017-06-27 09:27:46 +02:00
Laurent MEUNIER
cdd581b244
STM32: analag_out: Use dynamic handle in object rather than static
...
This allows a proper handling of multiple instances. Also this commit
stores the channel in the HAL format so that it can be re-used more easily
and call to HAL are straightforward.
2017-06-27 09:27:46 +02:00
Yuguo Zou
f7b2edc88c
Coding style fix
2017-06-27 11:33:46 +08:00
bcostm
03930b88f6
DISCO_L475VG_IOT01A: Add missing nvic_addr.h file
2017-06-26 20:14:08 +02:00
bcostm
72be051088
DISCO_L475VG_IOT01A: Update system init for cmsis5
2017-06-26 19:04:44 +02:00
bcostm
bd6d7382a3
DISCO_L475VG_IOT01A: Update toolchain files for cmsis5
2017-06-26 19:02:52 +02:00
Jimmy Brisson
fc39ad1625
Merge pull request #4422 from jeromecoutant/PR_F4_HSE_TIMEOUT
...
STM32F4 set HSE timeout value to 100ms
2017-06-26 10:29:13 -05:00
Jimmy Brisson
d103979e92
Merge pull request #4572 from bcostm/add_usb_disco_l072cz
...
DISCO_L072CZ_LRWAN1: Add support of USB Device
2017-06-26 10:28:31 -05:00
Jimmy Brisson
17a88a80ef
Merge pull request #4557 from mmorenobarm/master
...
Enable I2C and Analogin drivers for CM3DS_MPS2 target
2017-06-26 10:28:08 -05:00
Jimmy Brisson
50ec6db4d3
Merge pull request #4405 from arostm/Fix_Issue_4404
...
DISCO_L072CZ_LRWAN1: PC_13 definition missing in PinNames.h fix
2017-06-26 10:21:53 -05:00
Jimmy Brisson
0d2fb2d0a7
Merge pull request #4390 from mickeyln/patch-1
...
Nucleo-F070RB It doesn't work when use internal clock
2017-06-26 10:20:50 -05:00
jeromecoutant
8e28d9e47c
STM32 : targets.json file simplification
...
"FAMILY_STM32" has been creeated with all common features.
All STM32 devices can now inherit from it.
This will simplify readability and maintainability.
2017-06-26 11:00:00 +02:00
iotvietmember
5c0c964291
Add support for VBLUno51 board [TARGET_VBLUNO51]
...
+ VBLUno51 board:
Nordic nRF51822
Bluetooth Low Energy
DAPLink interface
Arduino UNO pinout compatible
4 Power
+ Wiki: https://vngiotlab.github.io/vbluno/
+ Pass all test case in mbed test suite
Signed-off-by: iotvietmember <robotden@gmail.com>
2017-06-25 20:16:58 +07:00
Anna Bridge
f1d0314783
Merge pull request #4410 from arostm/dev_disco_f413ZH
...
DISCO_F413ZH: Add new platform
2017-06-23 11:41:50 +01:00
Anna Bridge
55355d7374
Merge pull request #4401 from jeromecoutant/PR_USB_PIN
...
STM32 : Add USB used pins in PinNames.h files
2017-06-23 11:37:19 +01:00
Anna Bridge
4f5d4f040e
Merge pull request #4375 from LMESTM/STM32_SPI_LL
...
Stm32 spi : use LL API to improve performances
2017-06-23 11:33:55 +01:00
MS30 CCChang12
6c870ca65f
[NANO130] Fix issues in OS 5.5 Greentea test
...
1. Support CMSIS_VECTAB_VIRTUAL feature
2. Reduce the register sync waiting time in LP ticker
3. Adjust the stack and heap size in GCC and IAR toolchains
2017-06-23 17:24:22 +08:00
adustm
8058e04238
F7 ST CUBE V1.7.0
2017-06-23 09:49:31 +02:00
arostm
b5af4c40ec
DISCO_F413ZH: Add include of LL timer file
2017-06-22 09:23:09 +02:00