Cruz Monrreal
fe44dc0468
Merge pull request #6601 from KariHaapalehto/add_mtb_adv_wise_1530
...
Add new target MTB_ADV_WISE_1530
2018-04-16 10:40:12 -05:00
Paul Thompson
20f11bc13f
Extend changes to other STM32 devices that have the PCD_WriteEmptyTxFifo() function
2018-04-13 05:27:03 -07:00
Paul Thompson
b45d4233e1
Make the atomic_clr_u32 conditional use raw values rather than computed, remove need for guards
2018-04-13 04:44:43 -07:00
Paul Thompson
2211a27f53
Drop usage of ilen, just use len and cast it to int32_t as appropriate
2018-04-13 00:27:00 -07:00
Paul Thompson
8f4a5e2093
Revert to original fix concentrating on type correctness
2018-04-12 10:09:53 -07:00
Paul Thompson
430784b084
Initial work was for unsigned-signed comparison fix. Current work fixes negative number issues
...
Compile: stm32f7xx_hal_pcd.c
../targets/TARGET_STM/TARGET_STM32F7/device/stm32f7xx_hal_pcd.c: In function 'PCD_WriteEmptyTxFifo':
../targets/TARGET_STM/TARGET_STM32F7/device/stm32f7xx_hal_pcd.c:1310:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (len > ep->maxpacket)
^
../targets/TARGET_STM/TARGET_STM32F7/device/stm32f7xx_hal_pcd.c:1325:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (len > ep->maxpacket)
^
2018-04-12 09:43:18 -07:00
Paul Thompson
c67f535fb3
Drop locking around TX and RX. The DMA channels are independent of each other
2018-04-12 09:42:28 -07:00
jeromecoutant
71d7d24bd6
STM32L4 : correct compilation warnings
2018-04-12 10:56:41 +02:00
jeromecoutant
e7c4120550
STM32L1 : correct compilation warnings
2018-04-12 10:55:16 +02:00
jeromecoutant
eeca430b23
STM32L0 : correct compilation warnings
2018-04-12 10:55:11 +02:00
jeromecoutant
2d0dce1db5
STM32F7 : correct compilation warnings
2018-04-12 10:55:02 +02:00
jeromecoutant
2fcf8d8990
STM32F4 : correct compilation warnings
2018-04-12 10:52:21 +02:00
jeromecoutant
a540a21106
STM32F3 : correct compilation warnings
2018-04-12 10:51:33 +02:00
jeromecoutant
4e9e9f5c62
STM32F2 : correct compilation warnings
2018-04-12 10:51:18 +02:00
Kari Haapalehto
f2b37b7d42
Add new target MTB_ADV_WISE_1530.
...
MTB_ADV_WISE_1530 and MTB_USI_WM_BN_BM_22 includes same usi chip,
so common USI_WM_BN_BM_22 target has been created.
MTB_ADV_WISE_1530 and MTB_USI_WM_BN_BM_22 are inheting the common usi target
2018-04-11 15:50:28 +03:00
jeromecoutant
b6a8a50a28
STM32F1 : correct compilation warnings
2018-04-11 11:06:44 +02:00
jeromecoutant
c2ee8f34b6
STM32F0 : correct compilation warnings
2018-04-11 09:57:54 +02:00
Paul Thompson
f41cf081c9
STM32 : correct compilation warnings
2018-04-11 09:53:15 +02:00
Cruz Monrreal
e913e917c0
Merge pull request #6544 from ithinuel/add_rak811_adc
...
add ADC_AN0-2 mapped on PA_0-2
2018-04-10 18:08:03 -05:00
Martin Kojtal
8b2eb20a54
Merge pull request #6553 from theotherjimmy/stmL4-armc6
...
Correct armc6 detection logic for STM32L4
2018-04-09 17:36:52 +02:00
Martin Kojtal
96084a3c67
Merge pull request #6561 from LMESTM/Stm32DeepSleepClock
...
Stm32 deep sleep clock
2018-04-09 17:11:23 +02:00
Martin Kojtal
a3faf58a9e
Merge pull request #6511 from ashok-rao/MTB_USI_BM22
...
Add new target USI WM-BN-BM-22
2018-04-09 17:07:00 +02:00
Laurent MEUNIER
ad4a250292
Style fix
2018-04-06 17:03:53 +02:00
Laurent MEUNIER
3d92af50ce
Add delay to let clock stabilize when out of deep sleep
...
Tests have shown that there is hich-up on MSI clock during the setup phase.
If this stabilization phase happens when application has restarted again
this can have side effects, like grambled UART characters typically.
So we're adding a delay before hading-over back to application.
With this modification, on NCULEO_L476RG, the wake-up time is increased
from 2ms to 2,5ms.
If possible this should be improved in the future to save 500 microseconds
of wak-up time. See TODO
2018-04-06 16:10:27 +02:00
Laurent MEUNIER
8007b1df7c
Use temporarily MSI or HSI when exiting Deep Sleep
...
There are cases where HW registers are found in unpexcepted state when
exiting Deep Sleep only few micro-seconds after it was entered.
By using an internal clock that does not depend on anythin and clocking
the system without using PLL, this allows SetSysClock default configuration
to run fine whatever possible configuration we find the HW in when
exiting Deep Sleep.
Also we shall restore interrupts only after all cloks are back to
expected running state.
2018-04-06 16:10:27 +02:00
Jimmy Brisson
d374bb4a5a
Correct armc6 detection logic
2018-04-05 15:13:52 -05:00
Wilfried Chauveau
de4d7043c9
add ADC_AN0-2 mapped on PA_0-2
2018-04-05 08:33:55 +01:00
bcostm
8412807669
Update stm32l151xba.h
2018-04-03 15:01:07 +02:00
bcostm
293b3bfdc0
STM32L1: allow redefinition of FLASH_SIZE macro
2018-04-03 14:23:14 +02:00
bcostm
8c0ff8be79
Fix typos causing ARM build error
2018-04-03 14:01:03 +02:00
bcostm
d8aa587782
L1 ST CUBE V1.8.1
2018-04-03 14:01:02 +02:00
Ashok Rao
62e5dccd0b
Remove irrelevant comments
2018-03-29 16:52:03 +01:00
Ashok Rao
1df5c020b9
Adding USI WM-BN-BM-22 as a new target
2018-03-29 16:20:54 +01:00
Wilfried Chauveau
85af9f96ea
add IAR to the supported toolchain
2018-03-28 10:03:23 +01:00
Wilfried Chauveau
c31676306a
switch to stm32l151cb-a & work around flash size field width.
2018-03-26 18:00:18 +01:00
Wilfried Chauveau
495f8e4e5b
add RF_TXCO_EN on PH1 and set HSI calibration to its default value
2018-03-23 10:19:49 +00:00
Wilfried Chauveau
758f3b2dbd
add support for the RAK811
2018-03-23 10:19:49 +00:00
Cruz Monrreal
7c272fa3e8
Merge pull request #6412 from jeromecoutant/PR_L4_ADC
...
STM32L4 ADC correct internal channel management
2018-03-22 11:27:50 -05:00
Cruz Monrreal
04a3635eba
Merge pull request #6399 from jeromecoutant/PR_L4_TEMP
...
STM32L4 ADC Internal Channel : correct sampling time
2018-03-22 11:27:30 -05:00
jeromecoutant
ef006931f8
STM32L4 ADC correct internal channel management
2018-03-21 10:57:57 +01:00
Cruz Monrreal
6cb6dd9e62
Merge pull request #6330 from bcostm/fix_pins_nucleo_l433rc_p
...
NUCLEO_L433RC_P: fix pins definitions
2018-03-20 14:56:05 -05:00
Cruz Monrreal
d7dfab5c7e
Merge pull request #6370 from jeromecoutant/PR_LPT_RTC_OPTIM
...
STM32 LPTICKER : optimize RTC wake up timer init
2018-03-20 14:19:07 -05:00
jeromecoutant
6c369d17aa
STM32L4 ADC Internal Channel : correct sampling time
2018-03-20 13:15:17 +01:00
Cruz Monrreal
0adef8a959
Merge pull request #6379 from bcostm/dev_DISCO_L496AG
...
DISCO_L496AG: Add new platform
2018-03-19 11:18:27 -05:00
Cruz Monrreal
05e72dc729
Merge pull request #6353 from jeromecoutant/PR_RTC_LSE
...
STM32 RTC init
2018-03-16 11:45:13 -05:00
bcostm
f59f7581fb
DISCO_L496AG: add entry in mbed_rtx.h
2018-03-16 10:02:12 +01:00
bcostm
64a824abd2
DISCO_L496AG: add system clock file (same as Nucleo)
2018-03-16 10:02:12 +01:00
bcostm
ade8583044
DISCO_L496AG: add other pins related files
2018-03-16 10:02:11 +01:00
bcostm
63901a803c
DISCO_L496AG: remove QSPI2
...
Base adress not found in registers map file but found in CubeMX xml file.
2018-03-16 10:02:11 +01:00
bcostm
eab3e95158
DISCO_L496AG: add PeripheralPins.c
2018-03-16 10:02:11 +01:00
jeromecoutant
882f3312c3
STM32 LPTICKER : optimize RTC wake up timer init
...
Division in a while loop is removed
2018-03-15 14:23:57 +01:00
jeromecoutant
2f86b3a7bb
STM32 RTC init
...
When LSE is configured for RTC, LSI is not affected
2018-03-14 11:12:29 +01:00
bcostm
8fe02803e1
NUCLEO_L433RC_P: fix LEDs pin assignment
2018-03-12 11:30:52 +01:00
Evan Hosseini
94616e6396
mts_mdot_f411re: Fix for Multi-Tech mDot IAR linker script
2018-03-08 16:41:34 -06:00
Cruz Monrreal
8a7b390fdd
Merge pull request #6102 from Ultimaker/master
...
Add support for STEVAL-3DP001V1 board
2018-03-06 20:41:41 -06:00
Rob Meades
c53fb9dc64
Call i2c_init() before i2c_frequency() (since i2c_frequency() requires the object to be set up) and zero the I2C object before giving it to i2c_init() as i2_init() has to set up a default frequency for its timeouts to work and it will only do this if the hz field in the object was zero to begin with (otherwise you end up with a random but usually very large indeed timeout).
2018-03-01 14:52:42 +00:00
daid
62599a97f7
Add support for STEVAL-3DP001V1 board, which has an STM32F401VE chip. This support is based on the NUCLEO-F401RE board. Which has the same amount of flash/ram but less pins available on the chip.
2018-02-28 09:37:39 +01:00
Cruz Monrreal
19e07e8d11
Merge pull request #6217 from jeromecoutant/PR_RTC
...
STM32 RTC : update free function
2018-02-27 15:40:11 -06:00
Cruz Monrreal
153fa05bea
Merge pull request #6172 from adustm/l4_linkergcc
...
Use SRAM2 32Kbytes on STM32L475 / L476 and L486 devices
2018-02-27 13:46:26 -06:00
jeromecoutant
961c8da51c
STM32F1 RTC : Date read after reset
...
F1 is the only STM32 family where RTC date is not saved into registers
2018-02-27 11:02:49 +01:00
jeromecoutant
45cbdc889f
STM32 RTC : update free function
...
- LSI specific implementation is removed
- Remove RTC clock disable
2018-02-27 10:45:43 +01:00
Cruz Monrreal
815c6fb7cf
Merge pull request #6193 from ashok-rao/ODIN_PinsFix
...
ODIN MTB LEDs Fix
2018-02-26 22:49:03 -06:00
Ashok Rao
a5899db9e5
ODIN MTB LEDs Fix
2018-02-23 17:10:09 +00:00
adustm
d1e6e8f128
Allow jenkins script to pass
2018-02-23 17:40:09 +01:00
adustm
28a43b55e7
Add initial_sp value for STM32L476 and STM32L486 devices
2018-02-23 10:44:14 +01:00
adustm
67953251f9
Use official toolchain defines
2018-02-23 10:29:29 +01:00
adustm
815be94197
Add defined for GCC_ARM to pass heap and stack tests
2018-02-22 17:38:26 +01:00
adustm
f551255ded
Add support of separate memories for heap and stack region swith the use of TWO_RAM_REGIONS define
2018-02-22 17:37:34 +01:00
adustm
02b2b01a83
Change STM32L475/76/86 GCC_ARM linker files to have HEAP in SRAM1 and stack in SRAM2 (after the interrupt vector)
2018-02-22 17:36:27 +01:00
Fahim Alavi
192250af87
Support added for R410M Changes
...
target added r410m
Spaces removed
Trace updated
2018-02-20 10:32:14 +05:00
Martin Kojtal
105da034a3
Merge pull request #6117 from u-blox/i2c_read_write
...
UBLOX C030: I2C avoid any RTOS waits
2018-02-19 17:16:59 +01:00
Bilal
8ebb234d51
Formatting change - II
2018-02-19 12:32:54 +05:00
Bilal
c91b61e03c
Formatting change
2018-02-16 17:20:10 +05:00
Bilal
46d84b7ebb
Replacing i2c_xxxx(...) calls to reduce binary size and avoid any RTOS waits
2018-02-16 15:24:50 +05:00
jeromecoutant
ea9c1f29a1
STM32F4 Cube v1.19.0 update : ST CMSIS files
...
Previous version was v1.16.0
2018-02-15 16:33:32 +01:00
jeromecoutant
0d8d3e01db
STM32F4 Cube v1.19.0 update : ST HAL files
...
Previous version was v1.16.0
2018-02-15 16:33:31 +01:00
jeromecoutant
4db8842604
STM32F4 Cube update : file name alignment
2018-02-15 16:33:30 +01:00
Kevin Bracey
984cc1ab50
Merge pull request #6032 from jarlamsa/status-callbacks
...
Status callbacks
2018-02-15 13:02:10 +02:00
Cruz Monrreal
5648b156e6
Merge pull request #6063 from bcostm/PULL_REQUEST_CUBE_UPDATE_F7_V1.10.0
...
STM32F7: Update ST HAL driver with CubeF7 v1.10.0
2018-02-14 12:41:37 -06:00
Cruz Monrreal
ccff46d9a3
Merge pull request #6070 from ithinuel/remove-magic
...
remove magic calibration value for HSI in ST's targets
2018-02-12 17:21:32 -06:00
Senthil Ramakrishnan
19ad4e2cb9
Fix MTB_MTS_XDOT build breakage
2018-02-12 12:02:21 -06:00
Senthil Ramakrishnan
96d900c99f
Fixes for targets with invalid HardFault_Handler implementation and review/other fixes
2018-02-12 11:50:33 -06:00
Wilfried Chauveau
d1a0ff9964
remove magic calibration value for HSI in ST's targets
2018-02-12 16:47:35 +00:00
Cruz Monrreal
84ee9cc7a1
Merge pull request #5941 from marcemmers/lpuart-use-lse
...
STM32L0/4 Enable use of LPUART in stop mode
2018-02-12 10:26:37 -06:00
Cruz Monrreal
c3e02b18b6
Merge pull request #6035 from ashok-rao/ODIN-serial_fix
...
Fix serial pins and a typo for ODIN MTB
2018-02-12 10:25:22 -06:00
Cruz Monrreal
75e6d97735
Merge pull request #6042 from jeromecoutant/PR_DISCO_F303
...
DISCO_F303VC : STDIO pins correction and alignment with STM32 family
2018-02-12 10:24:57 -06:00
bcostm
118073a9c5
Add missing can legacy file
2018-02-12 10:37:03 +01:00
bcostm
58c4a5f83e
F7 ST CUBE V1.10.0
...
F7 HAL driver V1.2.5
2018-02-12 10:37:03 +01:00
Andreas Larsson
67772a5e95
Added u-blox ODIN-W2 driver binaries v2.4 rc1
2018-02-09 12:54:47 +02:00
Martin Kojtal
8e8b3d3bbd
Merge pull request #6036 from bcostm/dev_move_DISCO_L072CZ
...
DISCO_L072CZ_LRWAN1: move target folder
2018-02-08 15:19:08 +00:00
jeromecoutant
e0e6e5a9e5
DISCO_F303VC : Align clock configuration with STM32 family
2018-02-08 14:25:46 +01:00
jeromecoutant
e8e4af3c7a
DISCO_F303VC : add IAR files
2018-02-08 14:25:45 +01:00
jeromecoutant
1ab4030f20
DISCO_F303VC : wrong STDIO pins
2018-02-08 14:25:45 +01:00
Cruz Monrreal
1c5c1c79d0
Merge pull request #6027 from ithinuel/fix-target-names-for-murata-abz-and-adv-wise-1510
...
rename MURATA type ABZ & WISE 1510 to their expected name
2018-02-07 20:06:50 -06:00
Cruz Monrreal
1ac115d794
Merge pull request #6013 from kivaisan/add-wise-1570
...
Add MTB_ADV_WISE_1570 target
2018-02-07 20:05:38 -06:00
Cruz Monrreal
63201db875
Merge pull request #6004 from bcostm/fix_l476-486_sram_iar
...
STM32L476/486: Improve SRAM usage for IAR
2018-02-07 14:51:30 -06:00
bcostm
7630874b9c
Move TARGET_DISCO_L072CZ_LRWAN1 folder
2018-02-07 16:23:09 +01:00
Ashok Rao
188a68829f
Fixed serial pins and a typo for ODIN MTB
2018-02-07 15:12:40 +00:00
Wilfried Chauveau
6c9fcf3dd8
rename MURATA type ABZ & WISE_1510 to their expected name
2018-02-06 21:23:37 +00:00
Cruz Monrreal
8ae80892b7
Merge pull request #5975 from ashok-rao/br-xDOT
...
Adding MTB_MTS_XDOT as a new target
2018-02-06 13:05:12 -06:00
Marc Emmers
7881e68efe
STM32L0: Enable stop mode operation for the LPUART
2018-02-06 15:42:39 +01:00
Marc Emmers
01660ff5ae
STM32L0/4: Always try to select LSE if LPUART and baudrate <= 9600
2018-02-06 15:42:39 +01:00
Cruz Monrreal
6a8a818ebf
Merge pull request #6012 from jeromecoutant/PR_SPI_FLUSH
...
STM32 SPI ASYNC - Add FIFO flush before transfer
2018-02-05 10:11:03 -06:00
Kimmo Vaisanen
4dad23a6a3
Add WISE-1570 external pin names
2018-02-05 14:47:52 +02:00
Kimmo Vaisanen
41490f48d0
Add MTB_ADV_WISE_1570 target
2018-02-05 14:31:20 +02:00
jeromecoutant
36c41186a6
STM32 SPI ASYNC - Add FIFO flush before transfer
2018-02-05 11:06:51 +01:00
jeromecoutant
703df3b6f9
STM32F7 SPI - add missing HAL files
...
ST_INTERNAL_REF 43358
2018-02-05 11:06:14 +01:00
Cruz Monrreal
fc748f0943
Added LED2 definition for compilation of tests
2018-02-02 21:06:24 -06:00
Cruz Monrreal
1e794393e5
Merge pull request #5972 from bcostm/dev_BL_STM32F7
...
STM32F7: Add bootloader support (new trial)
2018-02-02 10:05:49 -06:00
bcostm
937db051da
STM32L476/486: change SRAM config for IAR
2018-02-02 10:23:28 +01:00
Cruz Monrreal
f907012e55
Merge pull request #5962 from bcostm/fix_usart_irq_index
...
STM32: Fix usart irq index
2018-01-31 12:16:17 -06:00
Cruz Monrreal
097966b8c7
Merge pull request #5905 from ithinuel/add-CMWX1ZZABZ-078-support
...
add support for the murata's module CMWX1ZZABZ-078 based on STM32L0
2018-01-31 12:14:29 -06:00
Wilfried Chauveau
3608627a48
fix a silent conflict with PR #5947
2018-01-31 00:48:40 +00:00
Cruz Monrreal
b87e98c57b
Merge pull request #5904 from ithinuel/add-wise-1510
...
add support for STM32L443RC & WISE-1510
2018-01-30 15:01:00 -06:00
Cruz Monrreal
fff6c75e28
Merge pull request #5936 from jeromecoutant/PR_WEAK_PINMAP
...
STM32 : set all PinMap structures as weak
2018-01-30 14:56:42 -06:00
Cruz Monrreal
10e67e659c
Merge pull request #5947 from jeromecoutant/PR_L4_PLUART
...
STM32L4 : add missing ST HAL UART functions
2018-01-30 14:46:15 -06:00
Ashok Rao
ba932700d9
Adding MTB_MTS_XDOT as a new target
2018-01-30 17:48:45 +00:00
bcostm
6e71398e3c
STM32F7: move cache initialization
2018-01-30 14:01:50 +01:00
bcostm
eb4b339c37
STM32 serial: add missing function declaration
2018-01-30 09:48:53 +01:00
bcostm
b6efdd58c8
STM32 serial: improve index assignment in serial_init
2018-01-29 17:23:21 +01:00
bcostm
e8454ff522
STM32 serial: improve irq index management for L0 devices
2018-01-29 17:23:21 +01:00
bcostm
78a5516726
STM32 serial: improve irq index management for F0 devices
2018-01-29 17:23:21 +01:00
bcostm
84269c7ca2
STM32 serial: improve irq index management for L4 devices
2018-01-29 17:23:21 +01:00
bcostm
665d4a8003
STM32 serial: improve irq index management for L1 devices
2018-01-29 17:23:21 +01:00
bcostm
689e15cf29
STM32 serial: improve irq index management for F7 devices
2018-01-29 17:23:21 +01:00
bcostm
eeb4d2cd1d
STM32 serial: improve irq index management for F3 devices
2018-01-29 17:23:21 +01:00
bcostm
1fa0557dbf
STM32 serial: improve irq index management for F2 devices
2018-01-29 17:23:21 +01:00
bcostm
6974da239c
STM32 serial: improve irq index management for F1 devices
2018-01-29 17:23:20 +01:00
bcostm
2305db6c98
STM32 serial: use uart_name in serial_irq_set function for F4
2018-01-29 17:23:20 +01:00
bcostm
a908d28f26
STM32 serial: coding style
2018-01-29 17:23:20 +01:00
bcostm
73ffc06ffd
STM32 serial: fix linking error
2018-01-29 17:23:20 +01:00
bcostm
e446c26584
STM32 serial: use uart_name instead of uart_base
2018-01-29 17:23:20 +01:00
bcostm
7256af0d5b
STM32 serial: change serial_get_irq_n function for F4 devices
2018-01-29 17:23:20 +01:00
bcostm
172c02a856
STM32 serial: use get_uart_index function for F4 devices
2018-01-29 17:23:20 +01:00
bcostm
066da18e0d
STM32 serial: add get_uart_index utility function
2018-01-29 17:23:20 +01:00
bcostm
0efd33f010
STM32 serial: move init_uart function at the end of file
2018-01-29 17:23:20 +01:00
Cruz Monrreal
ebc8adbd4f
Merge pull request #5951 from jeromecoutant/PR_STDIO2
...
STM32 NUCLEO F413ZH and L433RC : STDIO configuration
2018-01-29 10:09:19 -06:00
bcostm
8ed0f26d80
Check cache before enabling it
...
The mbed_sdk_init can be called either during cold boot or during
application boot after bootloader has been executed.
In case the bootloader has already enabled the cache,
is is needed to not enable it again.
2018-01-29 16:04:46 +01:00
bcostm
5ad0887d7e
NUCLEO_F767ZI: Add bootloader support
2018-01-29 15:53:44 +01:00
bcostm
e933971f92
BL NUCLEO_F746ZG: change scb->vector assignment
2018-01-29 15:53:24 +01:00
bcostm
e10e555520
BL STM32746xG: Update scatter/link files
2018-01-29 15:52:33 +01:00
jeromecoutant
8f647beacb
STM32 : set all PinMap structures as weak
...
This allow custom overwrites
2018-01-29 09:26:49 +01:00
Wilfried Chauveau
e6b19d838c
add support for STM32L443RC & WISE-1510
2018-01-26 17:06:39 +00:00
jeromecoutant
c9c6857c7c
STM32 NUCLEO F413ZH and L433RC : STDIO configuration
...
#5795 patches are missing for these 2 targets
STDIO_UART_TX and STDIO_UART_RX can be now user defined
2018-01-26 17:50:10 +01:00
Cruz Monrreal
dfa55336f5
Merge pull request #5907 from bcostm/fix_f0_usart_irq
...
STM32F0: fix issue with usarts sharing the same irq vector
2018-01-26 10:36:55 -06:00
Cruz Monrreal
7576813a7c
Merge pull request #5934 from jeromecoutant/PR_F401
...
NUCLEO_F401RE : PeripheralPins file update
2018-01-26 10:32:56 -06:00
Cruz Monrreal
9d10c6a7ed
Merge pull request #5938 from jeromecoutant/PR_MTB
...
MTB_XX : STDIO configuration
2018-01-26 10:32:37 -06:00
jeromecoutant
7979f4d255
SMT32L4 : add missing ST HAL LPUART functions
...
To enable/disable UART Clock in Stop Mode
2018-01-26 16:24:54 +01:00
Wilfried Chauveau
f8e88d7443
add support for the murata's module based on STM32L0
2018-01-26 12:26:25 +00:00
jeromecoutant
c26db91a09
MTB_XX : STDIO configuration
...
Here is a proposition
- to align with other STM32
- and to remove compilation warnings :
[Warning] PeripheralNames.h@38,0: "STDIO_UART" redefined
2018-01-25 15:46:36 +01:00
jeromecoutant
e6ec285a6b
NUCLEO_F401RE : PeripheralPins file update
...
Default SERIAL pins are now available for ADC and PWM
when STDIO_UART_TX and STDIO_UART_RX are user defined
https://os.mbed.com/teams/ST/wiki/STDIO
Alternative pins have been also defined
2018-01-25 13:52:17 +01:00
Martin Kojtal
6d52c1c067
Revert "STM32F7: Add bootloader support"
2018-01-25 11:07:01 +00:00
bcostm
7ff1cf52c0
STM32F0 uart irq: test IT flags for usart3/4
2018-01-25 11:23:53 +01:00
bcostm
18659ab16b
STM32F0: manage better uart3 & 4 irqs
...
Manage the case where both uart3 and uart4 interrupts are arriving at the same time.
2018-01-25 11:15:55 +01:00
bcostm
eaa3e9d2b2
STM32F0 usart irq: fix issue with F070/F072
2018-01-25 11:15:55 +01:00
bcostm
b6c9178d88
STM32F0: fix usart irq management
2018-01-25 11:15:54 +01:00
Cruz Monrreal
a6892da126
Merge pull request #5903 from jeromecoutant/PR_F407_ARM
...
STM32F407 : correct ARM scatter file
2018-01-24 11:28:28 -06:00
Cruz Monrreal
f1cf77fa44
Merge pull request #5844 from adustm/DiscoIot_L475_iarlink
...
ST-DISCO_L475VG_IOT01A: Improve SRAM use for IAR toolchain
2018-01-23 16:23:08 -06:00
Cruz Monrreal
8d7397884e
Merge pull request #5894 from bcostm/fix_serial_7bit
...
STM32: fix serial 7bit data format
2018-01-23 16:21:00 -06:00
Cruz Monrreal
de5c170eee
Merge pull request #5896 from jeromecoutant/PR_DEEPSLEEP
...
STM32LX : HAL_RCC_OscConfig update in PLL configuration
2018-01-23 14:58:12 -06:00
Cruz Monrreal
4c07c1c830
Merge pull request #5821 from bcostm/add_BL_nucleo-f746zg
...
STM32F7: Add bootloader support
2018-01-23 11:49:10 -06:00
Cruz Monrreal
892e5e1b74
Merge pull request #5809 from ashok-rao/MTB_MXChip
...
Add MTB MXChip EMW3166
2018-01-23 11:33:47 -06:00
jeromecoutant
3cefae203c
STM32F407 : correct ARM scatter file
...
Alignment with STM32Cube_FW_F4_V1.18.0 done
2018-01-23 12:41:35 +01:00
bcostm
2cdc110747
STM32: fix serial 7bit data format
2018-01-22 15:43:50 +01:00
jeromecoutant
6086c51234
STM32LX : HAL_RCC_OscConfig update in PLL configuration
...
check PLL settings before retuuning error
2018-01-22 13:35:11 +01:00
bcostm
4d0535a1bf
NUCLEO_F767ZI: Add bootloader support
2018-01-22 11:11:27 +01:00
bcostm
6edcc1eba2
Check cache before enabling it
...
The mbed_sdk_init can be called either during cold boot or during
application boot after bootloader has been executed.
In case the bootloader has already enabled the cache,
is is needed to not enable it again.
2018-01-22 11:11:27 +01:00
bcostm
43f4b679c7
BL NUCLEO_F746ZG: change scb->vector assignment
2018-01-22 11:11:27 +01:00
bcostm
728e89dd03
BL STM32746xG: Update scatter/link files
2018-01-22 11:11:27 +01:00
Cruz Monrreal
47a128a5e5
Merge pull request #5882 from ashok-rao/br-MTB_Dragonfly
...
Add MTB MTS_Dragonfly as a new target.
2018-01-19 13:58:03 -06:00
Ashok Rao
9ee69854ff
Adding MTB MTS_Dragonfly as a new target
2018-01-18 17:08:59 +00:00
Martin Kojtal
c24eb5b092
Merge pull request #5862 from jeromecoutant/PR_LPT_ISSUE
...
STM32 LPT optimisation
2018-01-18 08:41:55 +00:00
Cruz Monrreal
635a82495c
Merge pull request #5834 from bcostm/PULL_REQUEST_CUBE_UPDATE_L4_V1.11.0
...
STM32L4: Update ST Cube HAL to V1.11.0
2018-01-16 16:36:37 -06:00
Cruz Monrreal
bf139eb4df
Merge pull request #5791 from bcostm/fx_can_filter
...
STM32 CAN: fix wrong ID and MASK filter
2018-01-16 16:21:21 -06:00
Cruz Monrreal
f01fbde3c5
Merge pull request #5795 from jeromecoutant/PR_USER_DEFINED_STDIO
...
STM32 STDIO pins number are now configurable
2018-01-16 16:15:17 -06:00
jeromecoutant
9fb865ae57
STM32 LPT optimisation
2018-01-16 15:16:13 +01:00
Martin Kojtal
670077624d
Merge pull request #5749 from jeromecoutant/PR_LPT_LPTIM
...
STM32 LOWPOWERTIMER : introduce LPTIM feature
2018-01-15 15:25:54 +00:00
Martin Kojtal
2c6403e67f
Merge pull request #5787 from bcostm/dev_flash_f2
...
STM32: Add support of Flash API for STM32F2 devices
2018-01-15 15:24:13 +00:00
Martin Kojtal
debca1f87c
Merge pull request #5824 from jeromecoutant/DEV_DISCO_F407
...
DISCO_F407VG : alignment with other STM32
2018-01-15 15:22:52 +00:00
adustm
5104f2d1cc
Improve SRAM use for IAR toolchain
...
Use the entire SRAM2 with NVIC buffer + stack
Increase HEAP size to 0x10000 in SRAM1
Increase the available SRAM1 by 0x2000
2018-01-12 15:49:27 +01:00
bcostm
d50c329c68
Use legacy CAN api
2018-01-12 11:17:29 +01:00
bcostm
06f097884c
Update stm32l4xxxx.h files
2018-01-12 11:11:32 +01:00
bcostm
a4f9012a0a
Update stm32l4xx.h files
2018-01-12 11:11:31 +01:00
bcostm
dda34ea206
Update system_stm32l4xx.c with latest version
2018-01-12 11:11:31 +01:00
bcostm
43a31557dc
Remove release notes file
2018-01-12 11:11:31 +01:00
bcostm
0448d64f62
Add more comments
2018-01-12 11:11:31 +01:00
bcostm
84577f9634
L4 ST CUBE V1.11.0
...
Update to STM32CubeL4 V1.11.0
Conflicts solved:
targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L433xC/device/stm32l433xx.h
targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L486xG/device/stm32l4xx.h
targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L496xG/device/stm32l496xx.h
targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L496xG/device/stm32l4xx.h
targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_conf.h
targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_def.h
targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_i2c.c
targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_spi.h
2018-01-12 11:11:31 +01:00
Cruz Monrreal
2c5fedc0b2
Merge pull request #5792 from jeromecoutant/PULL_REQUEST_CUBE_UPDATE_F0_V1.9.0
...
STM32F0 : ST CUBE version update to V1.9.0
2018-01-11 10:24:28 -06:00
jeromecoutant
0eede79e2b
DISCO_F407VG : alignment with other STM32
...
- clock source is now a user choice
- IAR tool chain is available
2018-01-10 15:01:29 +01:00
jeromecoutant
a816e93e9a
STM32 LOWPOWERTIMER : introduce LPTIM feature
...
STM32L0, L4, F7 and few F4 chip are supporting LPTIM feature.
We propose to allow user to use LPTIM for MBED LowPowerTimer API instead of using RTC wakeup timers.
By default, all targets that are supporting this feature have been configured.
2018-01-09 14:10:14 +01:00
Ashok Rao
c138dedf73
Adding MTB MXChip EMW3166 as a new target
2018-01-08 21:07:38 +00:00
Jimmy Brisson
24b0387500
Merge pull request #5747 from jeromecoutant/PR_RTC_SLEEP
...
STM32 : Fix issue to exit deepsleep when RTC has not been initialized
2018-01-08 10:37:06 -06:00
Jimmy Brisson
737f75a68f
Merge pull request #5608 from productize/nucleo-f413zh
...
NUCLEO_F413ZH: Add support for the NUCLEO-F413ZH board
2018-01-08 10:35:27 -06:00
jeromecoutant
9c6e7c0fa0
STM32F4: STDIO_UART_TX and STDIO_UART_RX can be now user defined
...
NB for UBLOX targets: usb_rx and usb_tx config name are still available
in order to not break current applications.
2018-01-08 11:42:46 +01:00
jeromecoutant
59b4b228c4
STM32L4: STDIO_UART_TX and STDIO_UART_RX can be now user defined
2018-01-08 11:12:35 +01:00
jeromecoutant
7fa733e236
STM32L1: STDIO_UART_TX and STDIO_UART_RX can be now user defined
2018-01-08 11:12:24 +01:00
jeromecoutant
06e9fb6c9b
STM32L0: STDIO_UART_TX and STDIO_UART_RX can be now user defined
2018-01-08 11:12:17 +01:00
jeromecoutant
93b34070ed
STM32F7: STDIO_UART_TX and STDIO_UART_RX can be now user defined
2018-01-08 11:12:10 +01:00
jeromecoutant
a7bddff5cc
STM32F3: STDIO_UART_TX and STDIO_UART_RX can be now user defined
2018-01-08 11:12:04 +01:00
jeromecoutant
785862e69e
STM32F2: STDIO_UART_TX and STDIO_UART_RX can be now user defined
2018-01-08 11:11:57 +01:00
jeromecoutant
f97d84654e
STM32F1: STDIO_UART_TX and STDIO_UART_RX can be now user defined
2018-01-08 11:11:51 +01:00
jeromecoutant
88678315f1
STM32F0: STDIO_UART_TX and STDIO_UART_RX can be now user defined
2018-01-08 11:11:43 +01:00
jeromecoutant
e4169b7a9e
STM32: update init procedure
...
- STDIO_UART define is no more used
- configuring a new serial with the same UART as STDIO is no more allowed
2018-01-05 15:16:38 +01:00
jeromecoutant
9f4bec2f2e
STM32F0 : ST CUBE version update to V1.9.0
...
- Previous ST Cube version: V1.7.0
- CMSIS part update from 2.3.1 to 2.3.3
- HAL part update from 1.5.0 to 1.7.0
2018-01-05 14:46:33 +01:00
bcostm
d96e76e7bd
STM32 CAN: fix wrong ID and MASK filter
2018-01-05 10:11:17 +01:00
Jimmy Brisson
af9e07357a
Merge pull request #5740 from ashok-rao/master
...
Adding MTB ublox ODIN W2 as a new target.
2018-01-04 10:05:02 -06:00
Jimmy Brisson
324e53b770
Merge pull request #5697 from bcostm/dev_flash_f3
...
STM32: Add support of Flash API for STM32F3 devices
2018-01-04 10:00:41 -06:00
Jimmy Brisson
62a7ecddd3
Merge pull request #5570 from jeromecoutant/PR_STDIO
...
STM32 UART init update
2018-01-04 09:50:18 -06:00
bcostm
058f011254
STM32F1: Remove flash functions doc
2018-01-04 15:43:54 +00:00
bcostm
ca24ee4cd7
STM32F0: Remove flash functions doc
2018-01-04 15:43:54 +00:00
bcostm
a47f9b3480
STM32F0: Add Flash API support
2018-01-04 15:43:54 +00:00
bcostm
6f5d8ff92e
STM32F1: Add Flash API support
2018-01-04 15:43:54 +00:00
bcostm
0d3e189545
STM32F2: Remove flash functions doc
2018-01-03 15:26:10 +01:00
bcostm
c86f1efd9c
STM32F2: Add Flash API support
2018-01-03 15:26:10 +01:00
bcostm
8203a8ddf5
STM32F3: Remove flash functions doc + typos
2018-01-02 14:28:09 +01:00
bcostm
563338ad58
STM32F3: reset PGERR flash flag
2018-01-02 14:28:09 +01:00
bcostm
b5324cae32
STM32F3: flash_api typos
2018-01-02 14:28:09 +01:00
bcostm
0d09f6d788
STM32F3: add Flash api
2018-01-02 14:28:09 +01:00
Anna Bridge
20ad454f2b
Merge pull request #5613 from andreaslarssonublox/ublox_init_odin_evk_leds
...
Added init for ODIN EVK LEDs to be off by default
2017-12-29 14:30:50 +00:00
Adam Heinrich
da81229186
NUCLEO_F413ZH: Add support for the NUCLEO-F413ZH board
...
Merged from the existing TARGET_DISCO_F413ZH code (which has the same MCU)
and TARGET_NUCLEO_F412ZG code (which has the same Nucleo-144 board and
pinout).
2017-12-29 15:30:10 +01:00
Martin Kojtal
dd5bd73a88
Merge pull request #5720 from kjbracey-arm/STM32F7_DMB
...
Add memory barriers to STM32F7xx Ethernet
2017-12-22 11:07:46 +00:00
Ashok Rao
e324d16fab
Fixing indentation
2017-12-21 15:38:58 +00:00
jeromecoutant
8c662132f4
STM32 : issue to exit deepsleep when RTC has not been initialized
2017-12-21 10:50:47 +01:00
Ashok Rao
dc3c7fc11e
Adding MTB ublox ODIN W2
2017-12-20 18:52:04 +00:00
Martin Kojtal
806b762473
Merge pull request #5677 from u-blox/c030_bq24295_voltage_fix
...
C030 Battery Charger Voltage Fix
2017-12-20 14:42:18 +00:00
Kevin Bracey
05e2ae7a70
Add memory barriers to STM32F7xx Ethernet
...
Pending official update from STM, add memory barriers to the Ethernet
HAL code for the STM32F7xx family.
Cortex-M7 has a merging write buffer that is not automatically flushed
by accesses to devices, so without these DMBs, we sometimes lose synch
with the transmitter.
The DMBs are architecturally needed in every version of this HAL, but
adding just to the STM32F7 version for now to clear test, as the
problem has only been observed on Cortex-M7-based devices.
Fixes #5622 .
2017-12-20 15:05:29 +02:00
jeromecoutant
8bc92bdd22
STM32F4 : compilation issue
...
Issue comes only when ST HAL macro USE_FULL_ASSERT is enabled
2017-12-13 13:57:26 +01:00
jeromecoutant
4637279f51
STM32L4 : compilation issue
...
Issue comes only when ST HAL macro USE_FULL_ASSERT is enabled
2017-12-13 13:57:17 +01:00
jeromecoutant
75db24ff15
STM32F3 : compilation issue
...
Issue comes only when ST HAL macro USE_FULL_ASSERT is enabled
2017-12-13 13:56:42 +01:00
Bilal
0469dfb892
Bracket moved to next line
2017-12-13 16:37:19 +05:00
Martin Kojtal
cee180f472
Merge pull request #5667 from productize/fix-stm32-can3
...
STM32: Fix CAN3
2017-12-12 17:39:41 +00:00
Martin Kojtal
be52ba2156
Merge pull request #5363 from mprse/extended_rtc
...
Add support and tests for extended RTC
2017-12-12 17:36:44 +00:00
Martin Kojtal
da43d655ff
Merge pull request #5459 from jeromecoutant/PR_LPT_RTC
...
STM32 Low Power Timer feature updates
2017-12-12 17:33:31 +00:00
Martin Kojtal
047455eee9
Merge pull request #5591 from helmut64/NUCLEO_STM32L433_NEW
...
Support the STM NUCLEO_L433RC-P board
2017-12-12 17:29:51 +00:00
Martin Kojtal
84192fe676
Merge pull request #5610 from garivetm/bugfix-STM32CAN
...
STM32 - CAN - Fix RTR position bit in TX mailbox register
2017-12-12 17:27:57 +00:00
Bilal
5c1623c9e1
Licenses added in header files
2017-12-08 19:51:25 +05:00
Bilal
a40469e7c5
C030 Battery Charger Voltage Fix
2017-12-08 17:39:21 +05:00
bcostm
f08c04d81f
STM32 CAN3: add CAN_3 declaration for DISCO_F769NI
2017-12-07 18:12:54 +01:00
Adam Heinrich
9ee222a8e6
STM32: Set valid filter number for CAN3
...
Filter numbers 14 to 27 are reserved for dual CAN configuration.
However, CAN3 operates in single CAN configuration according to the
reference manual).
2017-12-07 18:06:05 +01:00
bcostm
bfc4d68ae0
STM32 CAN3: remove test of CAN_2 and CAN_3
...
CAN_2 and CAN_3 are enum and not #define and this causes compilation error with GCC_ARM
Instead put back the test of CAN_NUM (which are defined in can_device.h).
2017-12-07 18:04:34 +01:00
Adam Heinrich
d33c0a6fa5
STM32: Pass correct id to can_irq() for CAN3
2017-12-06 19:41:20 +01:00
jeromecoutant
17a54840c7
STM32 RTC : update and comment prescaler values
2017-12-05 12:52:52 +01:00
Przemyslaw Stekiel
106561669f
Update RTC drivers for extended RTC.
2017-12-05 07:54:02 +01:00
jeromecoutant
01b2b1baf3
STM32: RTC_LSI macro is replaced by lse_available config
2017-12-04 17:35:31 +01:00
jeromecoutant
354ed44a65
STM32 LOW_POWER_TIMER update : use error
2017-12-04 17:35:30 +01:00
jeromecoutant
85c337d0b9
STM32 LOW_POWER_TIMER update : rtc_init procedure
2017-12-04 17:35:29 +01:00
jeromecoutant
c13ffaf477
STM32 LOW_POWER_TIMER update : sleep
...
RSF synchro after deepsleep is not specific to Low Power Timer feature
And we have to check if RTC is configured before synchro
2017-12-04 17:35:29 +01:00
jeromecoutant
0bf364ea55
STM32 LOW_POWER_TIMER update : rtc_api.c
...
Add RSF synchro during init
Set a better WakeUp clock for long wake up period in order to stay in sleep mode
Use rtc_isenabled function before init as rtc_init is called at each set_time call
2017-12-04 17:35:28 +01:00
jeromecoutant
b65e861b20
STM32 LOW_POWER_TIMER update : lp_ticker
...
Removed unnecessary part
2017-12-04 17:35:27 +01:00
Martin Kojtal
c7e5eb2f97
Merge pull request #5397 from sakuraio/stm_sco-evb-01
...
add target SAKURAIO_EVB_01.
2017-11-30 18:16:09 +00:00
Martin Kojtal
45e9e4cab3
Merge pull request #5565 from LMESTM/fix_slave_3wires
...
STM32: SPI 3 wires mode not supported in SPI slave
2017-11-30 18:11:16 +00:00
andreas.larsson
1eef1cd771
Added license header
2017-11-30 08:50:11 +01:00
andreas.larsson
b5e9a5ca14
Added init for ODIN EVK LEDs to be off by default
2017-11-29 08:24:42 +01:00
Mathieu Garivet
6ee3d80b1c
Fix RTR position bit in TX mailbox register
2017-11-28 18:44:28 +01:00
andreas.larsson
f2de0956b4
Updated ODIN drivers to v2.3 RC1
2017-11-28 12:22:45 +01:00
Helmut Tschemernjak
63ad3aeae3
Added the proper defines for the STM32L432 bootloader support
2017-11-27 15:41:30 +01:00
Helmut Tschemernjak
4778a40643
Changed NVIC Flash base address to support the bootloader
2017-11-27 15:32:53 +01:00
Helmut Tschemernjak
632b2f1660
Updated wrongly defined UART3_BASE into USART3_BASE
2017-11-27 15:19:43 +01:00
Helmut Tschemernjak
66a1967fb4
Added TARGET_STM32L433RC stack size define into mbed_rtx.h
2017-11-27 15:15:17 +01:00
Helmut Tschemernjak
fb914149dd
Updated to toolchain startup/linker files to support the 433 devices
...
Also added the symbolic MBED_APP_START/MBED_APP_END defines
2017-11-27 15:03:43 +01:00
Helmut Tschemernjak
94c46b102b
defined STM32L433xx
2017-11-27 14:52:37 +01:00
Helmut Tschemernjak
e25dfc07f0
Added stm32l433xx.h defined STM32L433xx
2017-11-27 14:51:46 +01:00
Helmut Tschemernjak
6907b6d9e5
Updated PeripheralNames.h, PeripheralPins.c and PinNames.h for STM32L433 devices
2017-11-27 14:44:35 +01:00
Helmut Tschemernjak
90bb8fc368
Copied TARGET_STM32L432 to TARGET_STM32L433, renamed 432 files to 433
2017-11-27 14:36:47 +01:00
jeromecoutant
1cf47f6209
STM32 uart: update after code review
2017-11-24 13:39:33 +01:00
jeromecoutant
07e71d6ec8
STM32 LPUART : update clock source depending on expected baudrate
2017-11-23 14:52:35 +01:00
jeromecoutant
6d64c2fbf4
STM32 UART init update
...
- serial_init, serial_free and serial_baud function moved from serial_device.c (specific to each STM32 family) to serial_api.c (common STM32 file)
- default baudrate value was hardcoded to 9600
- Value is set now to MBED_CONF_PLATFORM_STDIO_BAUD_RATE for STDIO
- Value is set now to MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE for other use
- UART init will not be stopped before calling serial_baud function
2017-11-23 14:47:54 +01:00
Laurent MEUNIER
839bd642d0
STM32: SPI 3 wires mode not supported in SPI slave
...
This patch handles the case of SPI slave mode without MISO (NC).
In case MISO is not connected, we consider that SPI will be configured in
3 wires mode (CLK / MOSI / CS, but no MISO). In this case, the MOSI line
is bi-directional : SPI_DIRECTION_1LINE.
But as this is not supported yet in slave mode, we force it to
SPI_DIRECTION_2LINES. In this case slave SPI will receive data on MOSI
but nothing will be sent back to master as MISO is not connected.
2017-11-23 10:10:05 +01:00
Jimmy Brisson
369187cadf
Merge pull request #5535 from MikeDK/nucleo_l432kc_async_serial_fix
...
NUCLEO_L432KC: Fixed async serial
2017-11-22 10:19:53 -06:00
Jimmy Brisson
ced2f74f16
Merge pull request #5513 from bcostm/fix_adc_inited
...
STM32: Initialize ADC peripheral for each AnalogIn object creation
2017-11-22 10:16:14 -06:00
Jimmy Brisson
800be4e90d
Merge pull request #5512 from jeromecoutant/PR_L072
...
DISCO_L072CZ_LRWAN1 can use LSE from LORA module
2017-11-20 10:53:20 -06:00
Michael Kaplan
8a1c29c2e5
TARGET_STM32L4: added missing #ifdef in serial_device.c
2017-11-20 15:49:18 +01:00
bcostm
c54e9079b8
STM32 ADC: replace flags type from int to bool
2017-11-17 13:50:59 +01:00
bcostm
1d3eb508bf
STM32: fix linker error with adc_read()
2017-11-17 13:50:59 +01:00
bcostm
2bbedabf7d
STM32: add analogin_api.c file in STM folder
2017-11-17 13:50:59 +01:00
bcostm
34fdcc926b
STM32: move analogin_read functions in a common file
2017-11-17 13:50:59 +01:00
bcostm
4dbe95dded
STM32: rename analogin_api.c in analogin_device.c
2017-11-17 13:50:59 +01:00
bcostm
072ec2e765
STM32L4 ADC: remove adc_inited flag
2017-11-17 13:50:59 +01:00
bcostm
52d942e2d2
STM32L1 ADC: remove adc_inited flag
2017-11-17 13:50:59 +01:00
bcostm
4b82479175
STM32L0 ADC: remove adc_inited flag
2017-11-17 13:50:59 +01:00
bcostm
75f80abddc
STM32F7 ADC: remove adc_inited flag
2017-11-17 13:50:59 +01:00
bcostm
d5ff05a03b
STM32F4 ADC: remove adc_inited flag
2017-11-17 13:50:59 +01:00
bcostm
7005bc21d7
STM32F3 ADC: remove adc_inited flag
2017-11-17 13:50:59 +01:00
bcostm
f12391ad25
STM32F2 ADC: remove adc_inited flag
2017-11-17 13:50:59 +01:00
bcostm
36110e10cf
STM32F1 ADC: remove adc_inited flag
2017-11-17 13:50:58 +01:00
bcostm
2e2744ccbe
STM32F0 ADC: remove adc_inited flag
2017-11-17 13:50:58 +01:00
Martin Kojtal
01bc4340e8
Merge pull request #5482 from bcostm/fix_disco_l072cz_extclock
...
DISCO_L072CZ_LRWAN1: HSE clock configuration improvement
2017-11-16 16:15:12 +00:00
Martin Kojtal
114e019675
Merge pull request #5486 from bcostm/fix_CAN3
...
STM32: Add support of CAN3
2017-11-16 16:12:27 +00:00
Martin Kojtal
dc6dd5961e
Merge pull request #5505 from LMESTM/fix_smartcard_HAL
...
STM32: HAL smartcard, fix memory corruption in Receive
2017-11-16 16:11:04 +00:00
jeromecoutant
5f86ae5757
STM32L072CZ error in ARM sct file name
2017-11-16 15:12:51 +01:00
Martin Kojtal
41eb565d9c
Merge pull request #5342 from ARMmbed/feature_cortex_a
...
Update CMSIS/RTX with Cortex-A support
2017-11-15 11:24:36 +00:00
Laurent MEUNIER
be42c6de55
STM32: HAL smartcard, fix memory corruption in Receive
...
Re-casting with tmp the uint8_t* pData pointer to uint16_t* brings a
memory corruption and typically can corrupt the size parameter. This
is fixed with this commit.
STM32 Internal ticket reference : 39116
2017-11-15 10:50:21 +01:00
bcostm
2d8d8ae9e1
STM32: fix error with CAN_3 not defined
2017-11-15 10:36:03 +01:00
bcostm
2e2b408580
STM32: fix compilation error with STM32F1
2017-11-15 09:07:52 +01:00
bcostm
f0aed41991
DISCO_L072CZ: remove dead code
2017-11-15 08:59:50 +01:00
bcostm
be2a6ae273
STM32: Use CAN3_BASE + typos
2017-11-14 09:48:02 +01:00
bcostm
0ef4e2881c
STM32: Add support of CAN3 on STM32F413/F767
2017-11-14 09:48:02 +01:00
bcostm
c0f6b25eba
DISCO_L072CZ: align SetSysClock_PLL_HSE() with SetSysClock_PLL_HSI()
2017-11-13 11:34:56 +01:00
Bartek Szatkowski
c5a5438256
Update params in calls to LD/STREXW to be uint32_t
2017-11-10 09:53:42 +00:00
Martin Kojtal
47bae16a5c
Merge pull request #5305 from andcor02/master
...
New Target: Mbed Connect Cloud board
2017-11-10 08:43:29 +00:00
Martin Kojtal
18393f3faf
Merge pull request #5424 from jeromecoutant/PR_L496
...
NUCLEO_L496ZG_P support
2017-11-09 16:32:56 +00:00
Martin Kojtal
66054f4b62
Merge pull request #5455 from LMESTM/flash_2MB_GetSector_fix
...
STM32 Flash 2MB GetSector fix
2017-11-09 16:23:02 +00:00
jeromecoutant
17c86d1cd6
STM32F412 IAR linker file issue
2017-11-09 09:45:07 +01:00
Laurent MEUNIER
48a49b4a00
STM32: remove trailing white spaces
2017-11-08 10:28:46 +01:00
Laurent MEUNIER
d9bda2800d
STM32F4: Flash: fix 2MB GetSector computation
...
The computation of the sector number in GetSector for 2MB flash sizes
consists in adding an extra constant for 2MB dual bank (12 as in
ADDR_FLASH_SECTOR_12), then going through the same address check as if it
was an address of the first sector.
That means that we need to modify tmp and address as if it was a first bank
address, which we're doing here by sub_stracting 0x100000 delta.
2017-11-08 10:24:36 +01:00
jeromecoutant
dde615b8a8
NUCLEO_L496ZG minor update
2017-11-03 10:54:49 +01:00
Jimmy Brisson
9163ddfe61
Merge pull request #5399 from jeromecoutant/PR_MSP
...
STM32F4/STM32L4: remove MSP template file
2017-11-02 10:42:04 -05:00
Jimmy Brisson
c40b642455
Merge pull request #4650 from catiedev/master
...
NUCLEO_L496ZG: Add new Platform
2017-11-02 10:36:23 -05:00
Andrea Corrado
53c476acf2
introduced mbed Connect Cloud board based on ODIN-W2 Module rety commit, added ublox changes
...
Corrected error
Corrected error in targets json
Reworked JSON
Added lwip-eth to Connect ODIN removes ARM CC error
Fixed formating issues
Correct formating error in .json
Indentation errors
2017-10-31 11:24:28 +00:00
jeromecoutant
c51f0f3d5f
STM32F4/STM32L4: remove MSP template file
...
HAL_MspInit/HAL_MspDeInit/HAL_PPP_MspInit/HAL_PPP_MspDeInit weak functions can now be overwritten as it is expected
2017-10-30 10:38:43 +01:00
Anna Bridge
38ba693c57
Merge pull request #5327 from bcostm/remove_warnings
...
STM32: Remove compilation warnings
2017-10-26 11:05:20 +01:00
Jimmy Brisson
3354327a9f
Merge pull request #5188 from bcostm/fix_dac_f207zg
...
NUCLEO_F207ZG: Analogout improvement
2017-10-23 10:31:17 -05:00
Jimmy Brisson
656aa8279b
Merge pull request #5179 from LMESTM/trng_deprecated_call
...
STM32: TRNG: remove call to deprecated HAL_RNG_GetRandomNumber
2017-10-23 10:29:04 -05:00
misodengaku
1c28898ed1
add target TARGET_SAKURAIO_EVB_01.
2017-10-23 12:55:58 +09:00
Martin Kojtal
2af7213c51
Merge pull request #5104 from architech-boards/master
...
add support for SILICA_SENSOR_NODE platform
2017-10-19 16:44:17 +01:00
bcostm
35bf526ca4
STM32: Remove IAR compilation warning
2017-10-18 10:07:06 +02:00
bcostm
ad55bc26dc
STM32: Remove GCC_ARM compilation warnings
2017-10-17 14:04:59 +02:00
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
Pavel Sorejs
97cb8519c8
Add bootloaderd support to NUCLEO_F446RE target
2017-10-12 19:44:02 +02: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
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
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
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
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
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
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
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
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
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
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
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
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
bcostm
fca97146cd
Add ADC calibration for STM32F1 and F3 devices
2017-09-28 12:49:11 +02: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
bcostm
4824e18a95
STM32L4: add ADC calibration
2017-09-27 14:38:34 +02:00
jeromecoutant
1e36eb6fc9
STM32F7 : RTC Wake Up Timer issue
2017-09-26 17:04:29 +02: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
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
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
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
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
d3b33d75a4
Correct NRF SDK11 assembly
2017-09-11 13:20:33 -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
15a9a0382b
Enable Compiling with ARMC6 across all targets
...
remove duplicate sys.cpp
2017-09-11 13:20:32 -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
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
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
Kevin Gilbert
6fa766da50
Adjust whitespace in Odin PinNames file to fit verbose LED pin mappings
2017-09-05 13:43:06 -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