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
39cc300cd2
BL NUCLEO_F746ZG: enable bootloader
2018-01-29 15:53:12 +01:00
bcostm
e10e555520
BL STM32746xG: Update scatter/link files
2018-01-29 15:52:33 +01:00
Ashok Rao
e1d901204b
Add license info
2018-01-29 12:20:00 +00: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
Cruz Monrreal
da6532e57a
Merge pull request #5857 from TomoYamanaka/master
...
Registration GR-LYCHEE board as a new mbed board
2018-01-26 10:50:44 -06: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
ce87bdaf19
Merge pull request #5913 from DBS06/efm32_flash_api
...
Add missing EFM32 HAL flash init/deinit function calls
2018-01-26 10:35:35 -06:00
Cruz Monrreal
124fbf4c9b
Merge pull request #5918 from scamille/master
...
NXP LPC4088: Add missing SPI SSEL pin to Pinmap
2018-01-26 10:35:11 -06:00
Cruz Monrreal
215a043bac
Merge pull request #5923 from yangkunming99/rtl8195am_restructure_target_files
...
rtl8195am - restructure target folder
2018-01-26 10:34:04 -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
Mahesh Mahadevan
060daa99c9
NXP: Add support for MIMXRT1050_EVK
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-01-26 07:46:43 -06:00
Wilfried Chauveau
f8e88d7443
add support for the murata's module based on STM32L0
2018-01-26 12:26:25 +00:00
chrisyang
ab9fd64981
rtl8195am - add missing changes
2018-01-26 10:58:42 +08:00
drewcassidy
bc3d9380dc
add LOWPOWERTIMER and I2C_ASYNC to nrf51822 unified
2018-01-25 10:30:00 -08:00
Andrew Cassidy
8ba0943af0
move OSHCHIP to be with other nRF51 boards
2018-01-25 08:24:39 -08:00
Andrew Cassidy
8bf51ac159
remove redundent device_has
2018-01-25 08:24:39 -08:00
drewcassidy
5547a09f20
fix typo 😖
2018-01-25 08:24:39 -08:00
drewcassidy
e06d1db8ac
Add pinout diagram
2018-01-25 08:24:39 -08:00
drewcassidy
8cb421d585
Clean up board definition to conform to the target spec
2018-01-25 08:24:39 -08:00
drewcassidy
a6c69567ee
add board header files
2018-01-25 08:24:38 -08:00
drewcassidy
fe6b6af26c
Add target for OSHChip
2018-01-25 08:24:38 -08: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
chrisyang
c0a5ffb74d
rtl8195am - restructure target files
...
restructure target files to better sync with Ameba sdk base
2018-01-24 22:51:53 +08:00
Serge Camille
63664e11b9
NXP LPC4088: Add missing SPI SSEL pin to Pinmap
...
The Pin P5_3 (p31) was missing from the NXP LPC4088 SPI PinMap for SSEL.
Adding this Pin allows usage of SPISlave with SSP2 using the SSEL pin.
The pin and its SSP2_SSEL function is both documented in https://os.mbed.com/media/uploads/embeddedartists/lpc4088_qsb_pinning.xlsx as well as in UM10562 LPC408x/407x User manual Rev. 3 — 12 March 2014 chapter 7.4.1.4 Table 90 (https://www.nxp.com/docs/en/user-guide/UM10562.pdf ).
2018-01-24 13:29:43 +01:00
PHST
7719c25a99
Add missing EFM32 HAL flash init/deinit function calls
2018-01-24 08:20:38 +01: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
11b9a3d940
Merge pull request #5890 from 0xc0170/fix_renesas_nvic
...
RZ_A1H: cmsis nvic include fix
2018-01-23 16:22:31 -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
669a85affa
Merge pull request #5898 from cmonr/ncs36510-disable-rtc
...
Disables RTC for NCS36510 since feature is blocking #5087 from building correctly, and issue will not be resolved soon (#5308 ).
2018-01-23 15:52:21 -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
Cruz Monrreal II
a17e3d1ee2
Removed RTC as a supported peripheral for NCS36510
2018-01-22 14:46:44 -06:00
Cruz Monrreal
a33acaadf4
Merge pull request #4719 from iotvietmember/release_os_5
...
mbed Enabled certificate for the VBLUno51 board
2018-01-22 10:28:18 -06: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
96dc537e10
BL NUCLEO_F746ZG: enable bootloader
2018-01-22 11:11:27 +01:00
bcostm
728e89dd03
BL STM32746xG: Update scatter/link files
2018-01-22 11:11:27 +01:00
ccli8
160f75d536
[NUC472/M487] Fix warning in crypto
2018-01-22 10:51:12 +08: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
TomoYamanaka
1469fcde41
RZ_A1LU: cmsis nvic include fix
...
To get cmsis nvic definitions, I added the process that include "cmsis_nvic.h" in cmsis.h.
Relation PR is #5890 .
2018-01-20 00:29:09 +09:00
Martin Kojtal
5554ab28b3
RZ_A1H: cmsis nvic include fix
...
To get cmsis nvic definitions, this header file should be included
in cmsis.h file.
Fixes #5886
2018-01-19 13:49:25 +00:00
TomoYamanaka
e8378effc8
Modify the arrangement of "{" that shows the function start
...
Regarding "{" that show the function start, I modified the the arrangement from right of function to new line.
2018-01-19 18:46:20 +09:00
TomoYamanaka
4bc79b0ecf
Add license header on top in reserved_pins.h
...
I modified the lack of license header in the below header files.
- targets/TARGET_RENESAS/TARGET_RZ_A1XX/TARGET_RZ_A1H/TARGET_MBED_MBRZA1H/reserved_pins.h
- targets/TARGET_RENESAS/TARGET_RZ_A1XX/TARGET_GR_LYCHEE/TARGET_MBED_MBRZA1LU/reserved_pins.h
2018-01-19 18:39:37 +09:00
Cruz Monrreal
1a3dae763c
Merge pull request #5858 from yangkunming99/relocate-image-header
...
RTL8195AM - move region headers to 0xb000 and 0xc000
2018-01-18 11:32:49 -06:00
Ashok Rao
9ee69854ff
Adding MTB MTS_Dragonfly as a new target
2018-01-18 17:08:59 +00:00
ccli8
f61d9d48c8
[NUC472/M453/M487/NANO130] Add gpio_is_connected
2018-01-18 17:33:03 +08: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
Cruz Monrreal
3cb9728ae7
Merge pull request #5854 from SiliconLabs/bugfix/rtc_overflow
...
Fix for Silicon Labs RTC
2018-01-16 16:07:43 -06:00
Cruz Monrreal
728f76d63e
Merge pull request #5855 from SiliconLabs/feature/new/allow_dcdc_override
...
Allow overriding of DCDC settings per target
2018-01-16 15:45:59 -06:00
Cruz Monrreal
671c2d7e90
Merge pull request #5346 from scartmell-arm/feature-hal-spec-critical-section
...
Add Critical Section HAL API specification
2018-01-16 12:49:38 -06:00
jeromecoutant
9fb865ae57
STM32 LPT optimisation
2018-01-16 15:16:13 +01:00
chrisyang
c9fc52166a
rtl8195am - reorder some defines properly in ota header file
2018-01-16 13:52:16 +08:00
TomoYamanaka
ae1eaa985f
Support TRNG function for GR-LYCHEE
...
I supported the TRNG function when target is GR-LYCHEE.
GR-LYCHEE generates TRNG by acquiring the random number of Wifi module(ESP32) incorporated in it using I2C.
2018-01-16 13:45:15 +09:00
TomoYamanaka
aa5da2cd2e
Add the definition for GR-LYCHEE in mbed_rtx.h
...
In mbed_rtx.h file, I added the definition for GR-LYCHEE to use the "Dynamic Heap" processing when the target is GR_LYCHEE.
2018-01-16 13:39:44 +09:00
TomoYamanaka
776b27cefb
Add startup processing having CMSIS5/RTX5 been available on GR-LYCHEE
...
For supporting to CMSIS5/RTX5, I added the start-up processing of 3 toolchains (ARMCC, GCC_ARM, IAR) and the register definition of RZ/A1LU specific.
In addition, I added the linker script files to implement the dynamic HEAP the same as GR-PEACH(RZ/A1H).
2018-01-16 13:34:35 +09:00
TomoYamanaka
47acc9e551
Add GR_LYCHEE as a new target board in terget.json, build_travis.py and tests.py
...
I added GR-LYCHEE's configuration in targets.json file. Also, I added GR_LYCHEE as a Renesas new target board in build_travis.py and tests.py.
2018-01-16 13:25:17 +09:00
Steven Cooreman
5d6c5dd81d
Fix for #5840
...
This commit fixes #5840 . Fix verified by running mbed_hal-lp_ticker test suite with preloaded RTC counter such that it wrapped in the middle of the suite.
Also removes explicit sleep blocking from the us_ticker implementation, since sleep blocking for us tickers is done at mbed HAL level now. This was causing one of the lp_ticker tests to fail.
2018-01-15 21:21:53 +01:00
Steven Cooreman
18c973f132
Allow overriding of DCDC settings per target
...
Allow custom targets to override the DCDC settings by defining EMU_DCDCINIT_STK_DEFAULT to target-specific initialization values.
2018-01-15 16:36:23 +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
2d83463f9c
Merge pull request #5813 from TomoYamanaka/master
...
Revise the structure in RZ_A1 related directory
2018-01-15 15:23:52 +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
chrisyang
a1b4b8f10a
rtl8195am - move region headers to 0xb000 and 0xc000
...
The new layout is as follows:
0x000000 - 0x008000 => bootloader
0x008000 - 0x00b000 => system sectors
0x00b000 - 0x00c000 => region1 header
0x00c000 - 0x00d000 => region2 header
0x00d000 - 0x010000 => reserved
0x010000 - 0x040000 => mbed file system
0x040000 - 0x120000 => region1 image
0x120000 - 0x200000 => region2 image
This is to ensure when daplink erases sections, both regions' headers
are erased properly.
2018-01-15 15:08:13 +08: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
Ashok Rao
ec719bc2d9
Adding MTB ublox NINA-B1 as a new target
2018-01-12 13:08:27 +00: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
TomoYamanaka
3fddcc18da
Add "RZ_A1XX" label for commonizing in targets.json
...
I added the "RZ_A1XX" label for commonizing the setting in targets.json, and inherited in both RZ_A1H and VK_RZ_A1H.
2018-01-12 17:35:53 +09:00
TomoYamanaka
b92f75ad3c
Modify the lack of copyright to header files
...
I modified the lack of copyright in the below header files that I added for commonizing the RZ_A1 related files.
- targets/TARGET_RENESAS/TARGET_RZ_A1XX/TARGET_RZ_A1H/mbed_drv_cfg.h
- targets/TARGET_RENESAS/TARGET_RZ_A1XX/TARGET_VK_RZ_A1H/mbed_drv_cfg.h
2018-01-12 14:18:54 +09:00
Cruz Monrreal
b32828bc37
Merge pull request #5739 from pan-/nordic-new-client
...
BLE: Nordic pal client implementation
2018-01-11 10:26:47 -06: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
Vincent Coubard
31053273c2
Nordic BLE: Fix stack event size
...
Read By group type response can return 4 descriptor discovered when the remote server have 4 descriptors with a 16 bit UUID. The handle, UUID pair get stored in a ble_gattc_desc_t that is 20 bytes long.
This PR increase buffer size to handle this use case.
2018-01-10 17:04:35 +00: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
Steven Cartmell
643c8926d5
Remove counter from nordic critical HAL implementation
...
hal_critical_section_enter() is safe to call multiple times, however
hal_critical_section_exit() is only called on the last exit from a
critical section. This will cause a mismatch in the counter and the
interrupt state will never be restored if the critical section is
nested. Change this to a bool so that the interrupt save state is
tracked for hal_in_critical_section() to work correctly.
2018-01-09 15:35:12 +00: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
Steven Cartmell
061795c489
Move in_critical_section implementation into the HAL
...
- Add function to HAL hal_in_critical_section()
- Wrap assert in FEATURE_UVISOR macro
2018-01-09 10:41:29 +00:00
TomoYamanaka
1b303ab5d6
Change the values of RZ_A1 related "extra_labels" in targets.json
...
As a result of revision of folder structure, I changed the values of "extra_labels" of RZ_A1-related in targets.json.
2018-01-09 18:25:12 +09:00
TomoYamanaka
8b7e2abdb7
Commonalize the files in "targets/TARGET_RENESAS/TARGET_RZ_A1XX" directory
...
I made be available in common whatever the board related to RZ_A1 in the below files.
- Since there are the table code of Pinmap differs for each board, I moved the code to "PeripheralPins" file for each board, and changed to include PeripheralPins.h.
analogin_api.c, can_api.c, gpio_irq_api.c, i2c_api.c, pinmap.c, port_api.c, pwmout_api.c, serial_api.c, spi_api.c and us_ticker.c
- Since there are some board-specific processes, I enclosed the processes with "#ifdef" and rearranged the functions to make be easier to enclose.
can_api.c, ethernet_api.c and serial_api.c
- Since there are the driver configuration values differs for each board, I added "mbed_drv_cfg.h" file for each board and defined macros for the values, and changed to refer to the macros.
can_api.c, gpio_api.c, pwmout_api.c and rtc_api.c
2018-01-09 18:20:50 +09:00
TomoYamanaka
6f851a820c
Revise the folder structure in "targets/TARGET_RENESAS" directory
...
In "targets/TARGET_RENESAS" folders, same as Cortex-M targets, I changed the folder structure to combine files that can be shared as RZ/A1 related.
And I renamed the folder name to "TARGET_RZ_A1XX" in order to make commonality explicit.
- "targets/TARGET_RENESAS" folder
<before>
\targets\TARGET_RENESAS\TARGET_RZ_A1H
\targets\TARGET_RENESAS\TARGET_VK_RZ_A1H
<after>
\targets\TARGET_RENESAS\TARGET_RZ_A1XX
2018-01-09 17:39:22 +09:00
ccli8
a68750473c
[M487] Support ECP H/W accelerator
2018-01-09 16:20:41 +08:00
Ashok Rao
c138dedf73
Adding MTB MXChip EMW3166 as a new target
2018-01-08 21:07:38 +00:00
Jimmy Brisson
a5f1426a44
Merge pull request #5794 from prashantrar/realtek-pr-online-compile
...
Commit to fix the Online compiler issue for ARM mbed-os on REALTEK_RT…
2018-01-08 10:38:43 -06: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
cef1cc26d8
Merge pull request #5651 from gorazdko/ff_lpc546xx-add-ethernet
...
ff_lpc546xx: add enet, change led1 and led3 pins
2018-01-08 10:35:56 -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
Prashant Ravi
62667a4732
Fixing changes as requested
2018-01-08 10:49:46 +08:00
Prashant Ravi
f71de8a0d7
Commit to fix the Online compiler issue for ARM mbed-os on REALTEK_RTL8195AM
2018-01-06 00:00:50 +08:00
Steven Cartmell
e14bee5209
Fix potential race condition in critical section HAL API
...
Call underlying HAL implementation to enter critical section/disable interrupts
before incrementing the global critical section counter.
Modify HAL implementations to track first entrances to the critical section and
only update the saved state on first enter.
2018-01-05 14:55:58 +00:00
Steven Cartmell
3c9ae7bf1c
NRF51_DK: Add Critical Section HAL implementation
2018-01-05 14:55:57 +00: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
ccli8
67386b9ebd
[NUC472/M487] Fix DMA input/output buffers are overlapped in AES alter.
2018-01-05 09:18:26 +08:00
ccli8
d96bcda606
[NUC472/M487] Fix indefinite loop in SHA alter.
2018-01-05 09:18:25 +08:00
ccli8
a00f8d0e8b
[NUC472/M487] Guard from reordering DMA wait and post-wait for crypto modules
2018-01-05 09:18:25 +08:00
ccli8
3a8c1aa687
[NUC472/M487] Use interrupt signal rather than polling to check operation completion in DES alter.
...
This is to be consistent with PRNG/AES.
2018-01-05 09:18:24 +08:00
ccli8
0c1098483f
[NUC472/M487] Refine flow control code between crypto start and crypto ISR
2018-01-05 09:18:24 +08:00
ccli8
e1fbf0f6a7
[NUC472/M487] Add comment for crypto_zeroize
2018-01-05 09:18:24 +08:00
ccli8
9edda18b0f
[NUC472] Update BSP crypto driver
2018-01-05 09:18:23 +08:00
ccli8
a0a8a955a9
[NUC472/M487] Strengthen crypto DMA buffer check
...
1. Catch incompatible buffer range, where buffer base = 0xffffff00 and buffer size = 0x100.
2. Add buffer size alignment check.
2018-01-05 09:18:21 +08:00
ccli8
b0228d020d
[NUC472/M487] Fix compile error as mbedtls is not included
...
Currently, trng_api.c is located in targets/ and AES/DES/SHA alter. are located in mbedtls/.
They have shared crypto code.
If they could locate at same location e.g. mbedtls/, the shared crypto code placement would be more reasonable.
2018-01-05 09:18:20 +08:00
ccli8
6464649c41
[NUC472/M487] Coordinate crypto interrupt handler among AES/PRNG
2018-01-05 09:18:20 +08:00
ccli8
d66074fecc
[NUC472/M487] Coordinate crypto init among AES/DES/SHA/PRNG
...
Add counter to track crypto init among crypto sub-modules. It includes:
1. Enable crypto clock
2. Enable crypto interrupt
As counter gets zero, crypto clock is disabled to save power.
2018-01-05 09:18:18 +08: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
7bdbdbe1eb
Merge pull request #5703 from dave-wu/cog-adc-fix
...
AD: Fix ADC driver
2018-01-04 10:02:32 -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
e9c76bb85e
Merge pull request #5606 from nvlsianpu/bugfix/nrf52840_tickless
...
Enable tickless on nRF52840
2018-01-04 09:53:48 -06:00
Jimmy Brisson
b2495c7a8d
Merge pull request #5595 from nvlsianpu/bugfix/nordic_critical_section
...
fix nordic critical section
2018-01-04 09:52:32 -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
Jimmy Brisson
432e5bf436
Merge pull request #5253 from amq/patch-3
...
Add missing device_name for targets with bootloader
2018-01-04 09:47:41 -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
Andrzej Puzdrowski
ae41c7db17
Implementation of critical section primitives
...
which can be called from diferent contexts.
Orginal nordic critical primitives must been called in pairs
from exacly the same function. As mbed hal call it in separate
methods, so they are not suitable here.
2018-01-03 11:39:15 +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
92394e4f13
STM32F303xE: add FLASH support in targets.json
2018-01-02 14:28:09 +01:00
bcostm
0d09f6d788
STM32F3: add Flash api
2018-01-02 14:28:09 +01:00
Martin Kojtal
a8fc394942
VK RZ A1H: remove target from mbed 2 release
...
As it does not share the codebase with RZ A1H, it needs to be disabled until
bring it up to date with the latest changes to cmsis. There are changes
regarding caches, mmu and others
2018-01-02 11:51:04 +00:00
Martin Kojtal
fed5dd1170
VK RZ A1H: fix errors from the latest cmsis updates
...
Use mbed critical section
2018-01-02 11:48:56 +00:00
gorazd
676e56d6fe
ff_lpc546xx: change led1 and led3 and p26 pins
2018-01-01 15:55:25 +01:00
gorazd
f6283f5b03
ff_lpc546xx: add enet
...
fsl_phy.c/.h move to ../drivers to reuse it
lwip: add hardware_init.c
2018-01-01 15:55:24 +01:00
Martin Kojtal
3247a96588
renesas: os tick only for rtos
...
As this is os tick implementation for rtos, it should not be compilied if rtos
not present (mbed 2)
2017-12-31 17:21:02 +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
Anna Bridge
a4d1dee25e
Merge pull request #5617 from bcostm/usbhost_clean-up
...
STM32: USBHost clean-up
2017-12-29 10:48:03 +00:00
Cruz Monrreal II
3ebc99fe35
Merge pull request #5681 from slashdevteam/mk24bootloader
...
Adding bootloader support to MK24F1 target
2017-12-28 20:34:27 +00:00
Cruz Monrreal II
2b718feba3
Merge pull request #5628 from TomoYamanaka/master
...
Reregistration GR-PEACH as mbed support board
2017-12-28 20:20:31 +00:00
Cruz Monrreal II
10076bd0f6
Merge pull request #5691 from dlfryar/nrf52_linker
...
Nordic add app_start config system support for NRF52840 for bootloader
2017-12-28 18:29:00 +00: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
TomoYamanaka
8f42cf7ef5
Revert "Remove Cortex-A mbed OS 5 support"
...
I changed the python and json files to re-registering GR-PEACH to Mbed OS 5.
2017-12-21 14:09:24 +09:00
TomoYamanaka
1bb2ca68ea
Supplement the lack of "extended RTC" in RZ_A1H/rtc_api.c
...
Although the extened RTC is supported by #5363 commit ("Add support and tests for extended RTC"), it seems that the changes was overlooked in RZ_A1H_api.c.
So I added the changes with reference to other rtc_api.c.
2017-12-21 14:09:24 +09:00
TomoYamanaka
f526f19661
Change the way of enter/exit of critical section of code
...
I changed disable_irq() / enable_irq() to core_util_critical_section_enter() / core_util_critical_section_exit() by utilizing "mbed_critical" function in the below drivers.
- serial_api.c
- us_ticker.c
2017-12-21 14:09:24 +09:00
TomoYamanaka
904fdaea7a
Add the lacked definitions to mbed_rtx.h
...
I added the below definitions for working "Dynamic Stack" and "Dynamic heap" on Mbed OS by referencing with the codes of Cortex-M target board.
"ISR_STACK_START", "ISR_STACK_SIZE", "INITIAL_SP", "HEAP_START" and "HEAP_SIZE"
2017-12-21 14:09:24 +09:00
TomoYamanaka
2d11d6ef77
Add GIC_SetConfigration function to satisfy Cortex-A interrupt spec
...
By updating to the codes of CMSIS5/RTX5, GIC_SetConfigration() function was added for Cortex-A, this function is set the interrupt configuration using GIC's ICFGR register. Therefore, I added this function to satisfy Cortex-A interrupt spec in the below files.
"can_api.c", "ethernet_api.c", "gpio_irq_api.c", "i2c_api.c", "spi_api.c" and "us_ticker.c"
2017-12-21 14:09:24 +09:00
TomoYamanaka
15e91c1579
Revise startup processing having CMSIS5/RTX5 been available on GR-PEACH
...
For supporting tp CMSIS5/RTX5, I changed the start-up processing of 3 toolchains(ARMCC, GCC_ARM, IAR) and updated the register definition of PEACH specific.
In addition,
I changed the linker script files to implement the dynamic HEAP the same as Cortex-M targets.Since GR-PEACH's HEAP was a fixed area, I changed the label name(ZI_DATA to RW_IRAM1) and replaced the allocation of STACK/HEAP.
2017-12-21 14:09:24 +09:00
Dave Wu
fc481049f8
Cleared data structures in analogin_init();
...
Set buffer for 1 sample in analogin_read_u16. Before it assumes the
buffer is set outside by the higher layer. Now it's temporarily
located on the stack since only the ADC value is returned.
2017-12-21 09:59:13 +11:00
Ashok Rao
dc3c7fc11e
Adding MTB ublox ODIN W2
2017-12-20 18:52:04 +00:00
Martin Kojtal
9ebefcd63d
Merge pull request #5470 from ashok-rao/master
...
Add device_name for TB_SENSE_12.
2017-12-20 14:54:48 +00:00
Martin Kojtal
13dbb67891
Merge pull request #5649 from Archcady/realtek-PR-master
...
Fix greentea test mbed-os-tests-netsocket-connectivity
2017-12-20 14:43:37 +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
Dexter Fryar
30e1e0a349
Add app_start config system support for NRF52840 for bootloader
2017-12-20 08:25:14 -06: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
aff1d3002f
Merge pull request #5577 from VeijoPesonen/realtek_rtl8195am_gt_wifi-set-credential
...
REALTEK_RTL8195AM Wifi driver - adds check of credentials validity
2017-12-12 17:31:04 +00:00
Martin Kojtal
6c59e13e76
Merge pull request #5581 from SiliconLabs/feature/remove-custom-sleepmodes
...
Remove custom Silicon Labs sleep management
2017-12-12 17:30:17 +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
Martin Kojtal
2eaa32f35f
Merge pull request #5627 from li-ho/ev_cog_armc6
...
ADI: Add ARMC6 compatible code
2017-12-12 17:27:20 +00:00
Prashant Ravi
a4ce936947
reverting all tabs to spaces
2017-12-12 21:05:27 +08:00
Prashant Ravi
01ec0da7f2
Replacing formatting issues
2017-12-12 17:09:42 +08:00
Prashant Ravi
01808db8ff
Moving changes to RTW driver
2017-12-12 16:57:28 +08:00
Prashant Ravi
199ab8711a
Revert "Fixing changes to make greentea test mbed-os-tests-netsocket-connectivity pass for target Realtek AMEBA"
...
This reverts commit 1fcfced203 .
2017-12-12 16:53:45 +08:00
Maciej Rogozinski
bb4a72c39d
Bootloader support for MK24F1 for IAR toolchain
2017-12-11 09:54:21 +01:00
Maciej Rogozinski
c9500c6c58
Bootloader support for MK24F1 for Keil toolchain
2017-12-11 09:51:06 +01:00
Maciej Rogozinski
aaa09d5482
Added missing subscription
2017-12-10 15:32:45 +01: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
Edmund Hsu
165b2c665f
Realign ADuCM4x50 and ADuCM302x instance memory blocks
...
Ensure all instance memory blocks meet 4 byte alignment requirement
without relying on compiler's or liker's optional settings:
- gpioMemory[] for adi_gpio_Init()
- aRtcDevMem0[] for adi_rtc_Open()
- i2c_Mem[] or I2C_Mem[] for adi_i2c_Open()
- spi_Mem0[], spi_Mem1[], spi_Mem2[] or SPI_Mem[] for adi_spi_Open()
2017-12-07 14:57:08 +11: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
jeromecoutant
feaa789c34
STM32 LOW_POWER_TIMER update : targets.json
...
Move LSI configuration from macro to config part
Add missing boards to the LPT supported targets
2017-12-04 17:35:26 +01:00
Prashant Ravi
1fcfced203
Fixing changes to make greentea test mbed-os-tests-netsocket-connectivity pass for target Realtek AMEBA
2017-12-04 19:18:24 +08:00
Steven Cooreman
813216306c
Remove custom Silicon Labs sleep management
...
Standardize on the mbed sleep manager by removing the sleepmodes API, and statically redirecting hal_sleep to EM1 and hal_deepsleep to EM2.
2017-12-01 12:13:06 +01:00
Edmund Hsu
7239be2bd7
Update trng_api.c
...
- Maintain compatible code for ARM 5 and ARM 6 while default alignment
settings differ.
- Instance memory containing memory pointers must be 4 byte aligned for
all compilers regardless compilers' settings.
- uint32_t is recommended to replace uint8_t for instance memory
declaration because uint32_t guarantee 4 byte alignment.
2017-12-01 13:23:24 +11:00
Edmund Hsu
7c8cbd6ca2
Add ARMC6 feature to EV_COG_AD4050LZ and EV_COG_AD3029LZ
2017-12-01 09:59:43 +11: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
e4133501f1
Merge pull request #5531 from tung7970/feature-fota
...
RTL8195AM - refactor bootloader and fota support
2017-11-30 18:12:48 +00:00
Martin Kojtal
a6df4ca119
Merge pull request #5550 from sarahmarshy/patch-13
...
Fix bug in K64F trng_api.c
2017-11-30 18:11:46 +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
Martin Kojtal
118c1bb2b4
Merge pull request #5579 from SiliconLabs/feature/rail-2.1
...
Upgrade Silicon Labs radio driver to v2.1.1
2017-11-30 18:10:46 +00:00
Martin Kojtal
221b8a84b1
Merge pull request #5580 from bcostm/dev_usb_speed_disco-f746ng
...
DISCO_F746NG: add usp_speed configuration
2017-11-30 18:09:47 +00:00
Martin Kojtal
2b84a1742f
Merge pull request #5584 from SiliconLabs/feature/emlib-5.3.3
...
Upgrade to Silicon Labs HAL
2017-11-30 18:09:04 +00:00
Martin Kojtal
aa176ee616
Merge pull request #5585 from SiliconLabs/bugfix/timer_precision
...
Fix issue with timer timebase on EFR32
2017-11-30 18:06:37 +00:00
Martin Kojtal
244d8a9c9d
Merge pull request #5601 from andreaslarssonublox/ublox_odin_driver_os_5_v2.3_rc1
...
Updated ODIN drivers to v2.3 RC1
2017-11-30 18:02:38 +00:00
Martin Kojtal
7767651858
Merge pull request #5609 from 0xc0170/fix_lpc546xx_enet
...
LPC546XX: Add ENET support
2017-11-30 18:00:30 +00:00
Martin Kojtal
6d50868756
Merge pull request #5611 from JanneKiiskila/rtl8195am-a3-fix
...
Realtek RTL8195AM A3 fix
2017-11-30 17:59:44 +00:00
Martin Kojtal
9314607050
Merge pull request #5616 from soramame21/ren-disco-f429zi
...
Support bootloader for DISCO_F429ZI
2017-11-30 17:57:35 +00:00
bcostm
fe507af862
STM32 USBHOST: Corrections for DISCO_F746NG
2017-11-30 13:52:10 +01:00
Boting Ren
f48ac95a38
Support bootloader for DISCO_F429ZI.
2017-11-30 19:41:41 +09:00
Alessandro Angelino
1b0922e97b
EFM32: Use SECURE_ACCESS to access the ROM table
...
To allow enabling of uVisor on EFM32, the ROM table must be accessed
through the CMSIS-provided SECURE_ACCESS macro.
2017-11-30 11:08:11 +01:00
andreas.larsson
1eef1cd771
Added license header
2017-11-30 08:50:11 +01:00
bcostm
29b4aaf9af
STM32 USBHOST: Corrections for DISCO_F769NI in targets.json
2017-11-29 18:54:04 +01:00
bcostm
18a6b96242
STM32 USBHOST: Add support of DISCO_F469NI and DISCO_F769NI
2017-11-29 18:54:04 +01:00
Janne Kiiskilä
791343a1f7
Realtek RTL8195AM - define A3-A5 as NC
...
Based on the Mbed OS website the A3 is connected to "DAC", however there
is no define for DAC. In order to get the Realtek RTL8195AM to even compile
with mbed-os-example-client now, we must have the A3 defined - it is one of
the standard Arduine header pins. Therefore, setting it as NC.
A4-A5 are not connected either, so adding them as "NC" as well.
Realtek will hopefully push a proper fix sooner or later, if there is a
more meaningful define for the A3 pin. They do state however that the
A0-A3 pins are not GPIO capable anyway.
Ref: https://os.mbed.com/platforms/Realtek-RTL8195AM/
2017-11-29 12:35:02 +02: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
Mahadevan Mahesh
1da73df27d
FF_LPC546XX: Remove LWIP feature
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-11-28 16:18:44 +00:00
Mahadevan Mahesh
f2d2ed44cd
LPC546XX: Add ENET support
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-11-28 16:18:36 +00:00
Tony Wu
a4575a965f
rtl8195am - refactor bootloader and ota support
...
1. move ota region 1 from 0x00b000 to 0x040000
2. move ota region 2 from 0x0c0000 to 0x120000
3. refactor bootloader header as follows:
uint32_t tag;
uint32_t ver;
uint64_t timestamp;
uint32_t size;
uint8_t hash[32];
uint8_t campaign[16];
uint32_t crc32;
where,
a. hash is the sha256 checksum of the payload.
b. crc32 is the crc32 checksum of headers from tag to campaign.
4. Call NVIC_SystemReset for soft reset.
Signed-off-by: Tony Wu <tung7970@gmail.com>
2017-11-28 21:33:51 +08:00
Andrzej Puzdrowski
ceef097f38
Enable tickless for nRF52840
2017-11-28 13:35:52 +01:00
andreas.larsson
f2de0956b4
Updated ODIN drivers to v2.3 RC1
2017-11-28 12:22:45 +01:00
Andrzej Puzdrowski
b084812eff
current critical section implementation makes possible that interrupt
...
signals are lost. It was observed at last for tests-api-spi ci-test-shield's
test.
This patch introduce usage of sdk5 origin implementation in which
sd_nvic_critical_region_enter/exit is calling each time critical region
is enter/exit. This fixes the issue.
2017-11-28 09:44:28 +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
65866dd10a
Enbaled bootloader support for STM32L432KC
...
Added NUCLEO_L433RC_P target
2017-11-27 15:26:00 +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
bcostm
26f24ada10
DISCO_F746NG: typo in config name
2017-11-27 09:46:36 +01:00
Steven Cooreman
c95728f6fc
Fix issue with timer timebase on EFR32
...
Timer code was written based on integer multiple HF clock frequencies. EFR32 doesn't conform to that (38.4), and so the timestamp ticks were off by 1%. Enough to trip up some CI tests on TB_SENSE_12 (#5496 )
2017-11-25 11:23:41 +01:00
bcostm
b1073c165f
DISCO_F746NG: add usp_speed config
2017-11-24 16:52:59 +01:00
Steven Cooreman
e900d5a04d
Squash warnings by defining 'NC' as unsigned type
2017-11-24 16:14:56 +01:00
Steven Cooreman
73bd5ff5fb
Remove deprecated em_int
2017-11-24 16:01:00 +01:00
Steven Cooreman
6c6e762c49
Support USARTs up to USART5 in SPI
2017-11-24 15:53:44 +01:00
Steven Cooreman
53f88b5e26
Support USARTs up to USART5 in serial
2017-11-24 15:53:09 +01:00
Steven Cooreman
3d4cae84d5
Upgrade to emlib 5.3.3
2017-11-24 15:52:20 +01:00
jeromecoutant
1cf47f6209
STM32 uart: update after code review
2017-11-24 13:39:33 +01:00
Steven Cooreman
76fd28c825
Upgrade RAIL to v2.1.1
2017-11-24 12:57:43 +01:00
Veijo Pesonen
ee77079c47
REALTEK_RTL8195AM Wifi driver - adds check of credentials
...
Adds checks that SSID is non-empty and that password is 8-63 characters
long when security is enabled
2017-11-24 13:08:22 +02: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
ab1b3ae8d3
Merge pull request #5454 from OpenNuvoton/trng_get_unalignment
...
Nuvoton: TRNG_Get support 32 bytes unalignment
2017-11-22 10:21:39 -06:00
Jimmy Brisson
b7a7d4ed1a
Merge pull request #5553 from 0xc0170/OpenNuvoton-nuvoton_fix_lpticker
...
Nuvoton: fix lpticker interrupt
2017-11-22 10:20:31 -06: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
5e7851c9c5
Merge pull request #5521 from bcostm/dev_usbdevice_disco-f429zi
...
STM32: Add USB Device on DISCO_F429ZI
2017-11-22 10:17:15 -06:00
Jimmy Brisson
a834425d97
Merge pull request #5516 from gorazdko/lpc546xx-fix-adc
...
lpc546xx: fix adc
2017-11-22 10:16: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
ccli8
bc9c9ca1e2
[M487] Remove trailing space in lp_ticker/us_ticker
2017-11-22 08:55:58 +00:00
ccli8
8b86d44867
[M487] Fix premature lp_ticker interrupt
...
Old lp_ticker handles past event, but it has a bug with premature go-off.
The bug can re-produce on mbed-os-tests-mbed_drivers-lp_timeout/mbed-os-tests-mbed_hal-lp_us_tickers (mbed-os commit: 9c1fd48529 ).
Because upper layer (mbed-os/hal/mbed_ticker_api.c) has handled past event, this code can be removed from lp_ticker.
The similar fix also applies to us_ticker.
2017-11-22 08:55:58 +00:00
sarahmarshy
cefcb8cff3
Update K64F trng_api.c
2017-11-21 16:50:43 -06:00
Jimmy Brisson
a519b8449b
Merge pull request #5518 from fbmrk/issue_5514
...
STM32F407VG: Fix RTC
2017-11-20 10:53:46 -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
29ae97cd8b
NUCLEO_L432KC: added SERIAL_ASYNC to targets.json
2017-11-20 15:49:35 +01:00
Michael Kaplan
8a1c29c2e5
TARGET_STM32L4: added missing #ifdef in serial_device.c
2017-11-20 15:49:18 +01:00
gorazd
5c2f2c3cff
lpc546xx: remove obsolete line
2017-11-18 10:44:33 +01:00
gorazd
8411134184
lpc546xx: correct register name (DIGIMODE)
2017-11-17 19:16:42 +01:00
gorazd
d62b47393e
lpc546xx: fix adc
...
Resolve #5304
2017-11-17 13:54:25 +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
bcostm
57722eb2b5
STM32 USBDevice: Update targets.json for DISCO_F429ZI
2017-11-17 13:11:57 +01:00
Martin Kojtal
b025ea16d6
Merge pull request #5137 from dave-wu/master
...
Add support for ADI EV-COG-AD3029LZ platform.
2017-11-17 10:21:56 +00:00
Marko Fabo
313458b120
STM32F407VG: Fix RTC
2017-11-17 08:52:00 +01:00
Martin Kojtal
3bedff36e3
Merge pull request #4825 from SiliconLabs/feature/mbedtls-hw-accel
...
Silicon Labs: Add cryptographic acceleration support
2017-11-16 16:24:52 +00:00
Martin Kojtal
d8d8c28e11
Merge pull request #5452 from 0xc0170/fix_i2c_onsemi
...
ONSEMI: Fix I2C issues
2017-11-16 16:18:28 +00: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
1fa09fa43d
Merge pull request #5487 from nvlsianpu/bugfix_5462_initial_pin_value
...
Fix bug for issue: initial pin value not retained
2017-11-16 16:13:13 +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
763531921f
DISCO_L072CZ_LRWAN1 can use LSE from LORA module (more precise than LSI)
2017-11-16 15:27:04 +01:00
jeromecoutant
5f86ae5757
STM32L072CZ error in ARM sct file name
2017-11-16 15:12:51 +01:00
Dave Wu
45aa2130bc
Added SystemCoreClock as an extern.
2017-11-16 13:29:43 +00:00
cyliangtw
288094568c
[M487/NUC472/NANO130] fix TRUE/FALSE redefinition
2017-11-16 11:21:20 +00:00
Dave Wu
401674284a
Cleaned up some formatting issues.
2017-11-15 22:59:26 +11: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
Dave Wu
82a58ac94d
Added support for ADI EV-COG-AD3029LZ platform.
...
Fixed issues raised from ARM PR review and removed the unsupported platform.
- Fixed an issue where the TRNG is read even though it may not be ready;
- Added configuration to ensure the buffering mode is disabled so only 8-bit bytes are generated;
- Moved the TRNG device handle into the trng_t structure.
Removed undefined spi slave related functions.
- Added error checking for trng_get_bytes function;
- Added curly brackets to single line conditions for some files;
- Changed rx and tx buffers in serial module as local variables;
- Removed some unused code and some minor formatting corrections;
- Minor i2c & spi updates for github pull request;
- Added function definition for spi_master_block_write.
Added default delay and sample times for the ADC during initialization.
- Added code to clear stack variable in trng_get_bytes upon exiting the
function;
- Remove lp ticker functionality as the timer hardware does not satisfy
lp timer requirements.
Added a check for the STUCK bit before reading the RNG data register to ensure there are no hardware faults.
- Removed .mbedignore to work around some exporter issues;
- Added #includes to some of the driver data C files for them to build on their own.
2017-11-15 16:35:31 +11: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
Jimmy Brisson
f0912554d5
Merge pull request #5473 from marcuschangarm/rtl8195am_ota
...
Reorganize defines for firmware updates on Realtek RTL8195AM
2017-11-13 10:59:28 -06:00
Jimmy Brisson
4185c1a6cf
Merge pull request #5471 from marcuschangarm/rtl8195_flash_page
...
Increase flash program granularity on Realtek RTL8195AM
2017-11-13 10:58:50 -06:00
Jimmy Brisson
757a4e3b75
Merge pull request #5464 from Archcady/Fix_lockup
...
Fix lockup issue for REALTEK_RTL8195AM
2017-11-13 10:54:37 -06:00
Jimmy Brisson
ee76bd8ae3
Merge pull request #5231 from jrobeson/add-rblab-blenano2
...
Add support for RedBear's BLE Nano 2
2017-11-13 10:53:04 -06:00
Jimmy Brisson
13d43d75ef
Merge pull request #5144 from dave-wu/ev-cog-ad4050lz
...
Add support for ADI EV-COG-AD4050LZ platform.
2017-11-13 10:50:51 -06:00
Andrzej Puzdrowski
edb86500b5
Fix bug for issue 5462, initial pin value not retained
...
For api usage like DigitalOut led(LED1, 1) the hal function gpio_write()
sets the output before f. gpio_mode() is called. gpio_mode() clears the
output as it take never writen parameters (gpio_cfg_t.init_hight).
This patch use internal hardware register of GPIO output instedad of above paramiter latch
for retaining proper writen state.
2017-11-13 16:44:56 +01:00
bcostm
104295b64e
DISCO_L072CZ: add comment in clock_source config
2017-11-13 11:36:22 +01:00
bcostm
c0f6b25eba
DISCO_L072CZ: align SetSysClock_PLL_HSE() with SetSysClock_PLL_HSI()
2017-11-13 11:34:56 +01:00
cyliangtw
d8a9e35a0c
[M487/NUC472] Refine trng_get_bytes for consistency and readability
2017-11-13 12:11:08 +08:00
Steven Cooreman
1dc3941a5f
Apply feedback by @Patater
2017-11-11 19:38:54 +01:00
Tony Wu
a451498141
rtl8195am - remove redundant header file inclusion
...
Signed-off-by: Tony Wu <tung7970@gmail.com>
2017-11-10 09:53:42 +00:00
Bartek Szatkowski
c5a5438256
Update params in calls to LD/STREXW to be uint32_t
2017-11-10 09:53:42 +00:00
Bartosz Szatkowski
717087c772
Renesas: Add empty mbed_rtx.h
2017-11-10 09:53:41 +00:00
Bartek Szatkowski
c10dd0a725
RZ_A1H: Fix cmsis header name
2017-11-10 09:53:41 +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
cyliangtw
2ee058be53
[M487/NUC472] Refine for correctness control
2017-11-10 16:22:35 +08:00
Marcus Chang
a0729952a3
Reorganize defines for firmware updates on Realtek RTL8195AM
...
Moved defines, typedefs and function prototypes from ota_api.c to
ota_api.h so that these can be included in applications.
2017-11-09 10:27:59 -08:00
Marcus Chang
5fe03afea6
Increase flash program granularity on Realtek RTL8195AM
...
The Page size has been set to 1 byte instead of the previous 256.
Although 256 is the physical page size, the driver supports
writing 1 byte at a time.
2017-11-09 09:51:06 -08:00
Ashok Rao
761254c1a0
Adding device_name for TB_SENSE_12.
...
device_name key is required to add Cloud Client support / enable bootloader support for this target.
2017-11-09 17:33:12 +00:00
Martin Kojtal
0d1dc83eb1
Merge pull request #5432 from JammuKekkonen/master
...
HEXIWEAR: define HEXIWEAR target to support bootloader.
2017-11-09 16:56:29 +00:00
Martin Kojtal
494c25d71c
Merge pull request #5344 from gorazdko/add-new-target-L-TEK-FF-LPC546XX
...
add new target L-Tek FF-LPC546XX
2017-11-09 16:42:24 +00:00
Martin Kojtal
2b391447c6
Merge pull request #5390 from 0xc0170/fix_fire_int_ncs
...
ncs36510: fire interrupt correct timer fix
2017-11-09 16:36:57 +00:00
Martin Kojtal
f17355fc71
Merge pull request #5422 from soramame21/master
...
Add bootloader support for DISCO_L475VG_IOT01A
2017-11-09 16:35:31 +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
a65d37e485
Merge pull request #5453 from marcuschangarm/rtl8195am_flash
...
Increase flash size on Realtek RTL8195AM
2017-11-09 16:23:46 +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
Yuguo Zou
6af9a5a002
Remove lines to improve readability
2017-11-09 18:23:17 +08:00
Yuguo Zou
05cf4680bd
Update HAL library to fix lockup issue
2017-11-09 17:59:14 +08:00
jeromecoutant
17c86d1cd6
STM32F412 IAR linker file issue
2017-11-09 09:45:07 +01:00
cyliangtw
e252b10148
[M487/NUC472] zeroize random data on the stack memory
2017-11-09 16:01:14 +08:00
Dave Wu
d5122c5ea5
- Removed .mbedignore due to an issue with the eclipse exporter not picking up the ignored files;
...
- Added #includes in BSP data C files so they can be built on their own without mbedignore;
2017-11-09 14:17:15 +11:00
cyliangtw
76c2c19853
[M487/NUC472] Unified code-path for remaining bytes of TRNG_Get
2017-11-08 19:56:12 +08: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
cyliangtw
4118afa259
[M487/NUC472] TRN_Get support 32 bytes unalignment
2017-11-08 14:23:05 +08:00
Marcus Chang
f44a15454b
Increase flash size on Realtek RTL8195AM
...
The Realtek RTL8195AM has 2 MiB of external flash. This change
enables the FlashIAP driver to gain access to the full flash.
2017-11-07 09:25:24 -08:00
danclement
36d335baf4
Checking in the fixes related to I2C issues.
...
Three main issues:
1) The 0x13 special case section in write data in ncs36510_i2c.c didn't have a write++ command.
2) In the same write function, the WDAT8 command was put before the 0x13 section and this is not correct
3) Needed to add wait_us(0) before and after the register writes for apparent clock domain crossing delay times until registers are stable in HW
There were also a handful of other tweaks related to general code maintenance and moving some status register checks to the proper locations.
2017-11-07 16:00:05 +00:00
Yuguo Zou
bf3d68ee88
Update HAL code to resolve ticker lockup issue
2017-11-07 17:02:42 +08:00
Tony Wu
07646db24c
rtl8195am - fix us_ticker interrupt handling
...
TIMER2_7_IRQ is shared among several timer sources, including
us_ticker. Raising TIMER2_7_IRQ pending bit will trigger the timer
interrupt, but the timer interrupt handler will not know which timer
source this interrupt is for. This patch sets timer load value to one
tick and force us_ticker to fire almost "immediately".
TIMER2_7_IRQ is handled through a common interrupt handler, and
is automatically cleared. Therefore, there is no need to clear IRQ.
The underlying timer HAL treats load value as micro-seconds and does
conversion internally. Therefore, simply pass micro-seconds to timer
HAL without converting to tick first.
Signed-off-by: Tony Wu <tung7970@gmail.com>
2017-11-07 11:44:43 +08:00
Jammu Kekkonen
46b6490d87
HEXIWEAR: define HEXIWEAR target to support bootloader.
2017-11-03 18:25:02 +02:00
jeromecoutant
88c3bcfd1c
NUCLEO_L496ZG_P support
2017-11-03 11:06:45 +01:00
jeromecoutant
dde615b8a8
NUCLEO_L496ZG minor update
2017-11-03 10:54:49 +01:00
johnny
a2c78e104a
Add support for RedBear's BLE Nano 2
...
Cribbed from 4bf42f2e20
I'm not sure if if there are any copyright issues here with what is
effectively a set of config files. A few folks have been bugging me (and
the redbear folks) for these changes, so I wanted them somewhere
centralized.
2017-11-02 17:43:12 -04:00
Boting Ren
e5fd7f2100
Add mbed-cloud-client support on DISCO_L475VG_IOT01A with
...
wifi_esp8266_v4.json.
2017-11-03 05:15:38 +09: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
Dave Wu
9e0e9c8bee
Added a check for the STUCK bit before reading the RNG data register to ensure there are no hardware faults.
2017-11-02 15:50:55 +11: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
Jimmy Brisson
02f1d0185a
Merge pull request #5320 from kegilbert/fix-build-warnings-lpc4088
...
Fix ethernet API build warnings for LPC4088
2017-10-30 10:08:15 -05: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
Wu
2eff4c7569
- Added code to clear temporary variable on the stack before exiting the
...
trng_get_bytes;
- Removed lp ticker as it does not satisfy the requirements of the lp
timer.
2017-10-30 02:16:55 +01:00
Martin Kojtal
99f4961325
ncs36510: fire interrupt correct timer fix
...
Use Timer1, it is used for us ticker isr handling. Plus reset target counter,
that should be 0, go to upper ticker isr handler immediately.
2017-10-27 17:46:24 +01:00
Kevin Gilbert
901157b305
Replace PACKED attribute on lpc4088 ethernet structs with MBED_PACKED. Placement of packed attribute was causing warnings due to following typedef
2017-10-26 11:34:48 -05:00
Anna Bridge
97e2d4a8c5
Merge pull request #5025 from grygorek/master
...
LPC1769 port
2017-10-26 11:35:35 +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
Anna Bridge
ea43b437a6
Merge pull request #5352 from Archcady/fix-event-lockup
...
Fix us_ticker collision and race for RTL8195AM
2017-10-26 11:01:06 +01:00
amq
0958a8dce1
Add missing device_name for targets with bootloader
2017-10-25 10:40:10 +02:00
Jimmy Brisson
1566395323
Merge pull request #5347 from 0xc0170/nxp_fix_lptimer
...
MCUXpresso: Fix LPTimer issue when using multiple timeout objects
2017-10-23 10:34:50 -05:00
Jimmy Brisson
2a8023180f
Merge pull request #5340 from 0xc0170/nxp_fix_us_timer_replacement
...
MCUXpresso: Fix issue of ticker interrupt incorrectly firing
2017-10-23 10:34:07 -05:00
Jimmy Brisson
d2b762092c
Merge pull request #5260 from tung7970/fix-iar
...
RTL8195AM - Fix IAR ielftool zero-padding issue
2017-10-23 10:32:29 -05: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
Laurent MEUNIER
38488623c8
Activate FLASH hal support on 2 STM32 boards
...
The generic Flash support for L4 and L0 families is already there,
but was not activated by default on 2 recentely added boards:
DISCO_L475VG_IOT01A and DISCO_L072CZ_LRWAN1
This is done now.
2017-10-20 15:11:01 +02:00
Tony Wu
1ee88fb0f6
rtl8195am - fix us_ticker collision and race
...
Switch to timer 2 for us_ticker for timer 6 might be used
for power saving.
Signed-off-by: Tony Wu <tonywu@realtek.com>
2017-10-20 17:10:02 +08:00
Martin Kojtal
0c679a8f7d
Merge pull request #4989 from maclobdell/k66f_flash_iap_bootloader_noflashdrvr
...
add flash iap and bootloader support to K66F
2017-10-19 16:45:52 +01: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
Mahadevan Mahesh
bc5c94517c
MCUXpresso: Fix LPTimer issue when using multiple timeout objects
...
Fix for Issue #5150
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-10-19 11:38:22 +01:00
gorazd
b010223145
add new target L-Tek FF-LPC546XX
2017-10-18 23:56:12 +02:00
Mahadevan Mahesh
168bdc8803
MCUXpresso: Fix issue of ticker interrupt incorrectly firing
...
Fix for Issue #5279
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-10-18 15:29:57 +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
Piotr Grygorczuk
be5a8a98ee
lpc1769 inherits from lpc1768; reuse lpc1768.ld for LPC1769 target
2017-10-17 11:12:59 +01:00
iotvietmember
dba38b6250
Add detect_code=0xC006 to the VBLUNO51 boards configuration.
...
Add detect_code=0xC006 to the VBLUNO51 boards configuration.
Disbale UART Hard flow control feature.
Signed-off-by: iotvietmember <robotden@gmail.com>
2017-10-17 12:07:18 +07:00
maclobdell
e6b0a2bec4
fix app start size in IAR linker for K66F
2017-10-13 10:41:08 -05:00
maclobdell
5ec0616602
add updates for bootloader support to K66F
2017-10-13 10:41:08 -05:00
maclobdell
845f24507e
enabled flash in-application-programming driver for k66f
2017-10-13 10:41:07 -05: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
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
arostm
c0725aa3e8
DISCO_F413ZH: Deleted cmsis_nvic.c and modified cmsis_nvic.h
2017-06-22 09:23:08 +02:00
arostm
9a34c72bc5
DISCO_F413ZH: Remove hal_conf file
...
The board have to use th hal_conf file from F4/device directory
2017-06-22 09:23:08 +02:00
arostm
46949d054f
DISCO_F413ZH: add UART9 and 10 in serial_api.c
2017-06-22 09:23:08 +02:00
bcostm
6426d277d2
DISCO_F413ZH: Change I2C and SPI instances for Arduino default pins
...
Needed to pass ci-test-shield tests.
2017-06-22 09:23:07 +02:00
bcostm
8e798a9f35
DISCO_F413ZH: typo corrections in peripheralpins.c
2017-06-22 09:23:07 +02:00
bcostm
b62005ebb8
DISCO_F413ZH: Fix wrong NVIC RAM end address in IAR icf file
2017-06-22 09:23:07 +02:00
bcostm
e8ceb3bfa1
DISCO_F413ZH: correct ram length in GCC ld file
2017-06-22 09:23:07 +02:00
bcostm
a89c0ab1c0
DISCO_F413ZH: Add BUTTON1 definition
2017-06-22 09:16:32 +02:00
arostm
b862b653d3
DISCO_F413ZH: corrections
...
- leds definition
- add sw4stm32 exporter
- recomment mco debug
2017-06-22 09:16:32 +02:00
arostm
4a87436db2
DISCO_F413ZH: modifications in peripheralPins.c
2017-06-22 09:16:32 +02:00
arostm
781db4f265
DISCO_F413ZH: add some files and modification (targets.json, rtx...)
2017-06-22 09:16:32 +02:00
arostm
45d42336ce
DISCO_F413ZH: add terget.json, build_travis.py and test.py changes
2017-06-22 09:16:32 +02:00
arostm
5e3350ce38
DISCO_F413ZH: Modification needed to build
2017-06-22 09:07:00 +02:00
arostm
af6f9aaee0
DISCO_F413ZH: Creation folders and files (pinout, startup, etc...)
2017-06-22 09:07:00 +02:00
jeromecoutant
18572cc65b
STM32 : mbed_overrides.c is common for all families
2017-06-21 16:03:05 +02:00
Martin Kojtal
d121a43e37
Merge pull request #4597 from theotherjimmy/travis-upcase-asm
...
Assert that all assembly files are named correctly in travis
2017-06-21 09:50:47 +02:00
Jimmy Brisson
c7d6bbe295
Upcase all assembler file extensions
2017-06-20 14:50:08 -05:00
Anna Bridge
525debc63b
Merge pull request #4567 from u-blox/ublox_odin_driver_os_5_v2.1_rc1
...
Updated u-blox ODIN-W2 driver binaries to 2.1 rc1
2017-06-20 17:09:13 +01:00
bcostm
2d294495e1
DISCO_L072CZ_LRWAN1: Update HSI clock config for USB
2017-06-20 16:07:07 +02:00
Anna Bridge
810e16f88e
Merge pull request #4337 from u-blox/cellular_feature_br_ublox_pr1
...
Platform support for new CellularInterface in UBLOX_C027 and UBLOX_C030_U201.
2017-06-20 14:00:11 +01:00
Anna Bridge
c5e1fa70d9
Merge pull request #4242 from bcostm/dev_disco-l475-iot
...
DISCO_L475VG_IOT01A : Add new target
2017-06-20 11:41:42 +01:00
Jimmy Brisson
d8061216fe
Merge pull request #4563 from c1728p9/fix_stack_overflow
...
Increase background stack size to fix overflow
2017-06-19 11:04:51 -05:00
Jimmy Brisson
3f464217f1
Merge pull request #4554 from LMESTM/L476RG_ld_file
...
Fix NUCLEO_L476RG linker scripts
2017-06-19 11:04:10 -05:00
Jimmy Brisson
737a64c988
Merge pull request #4502 from LMESTM/issue_899
...
STM32: serial: clear Overrun flag if it is set when checking if readable
2017-06-19 11:00:23 -05:00
cyliangtw
bc0fc2ea4e
[NANO130] Align with mbed master
...
1. Remove RTX_CM_lib.h modification for NANO130 platform
2. Remove semaphore test code's speific modification for NANO130 platform
3. Fix duplicate definitions of __NVIC_SetVector/__NVIC_GetVector
4. Add spi_master_block_write()
2017-06-19 20:06:23 +08:00
Mike Fiore
1403dfc086
[XDOT_L151CC] enable HSI after waking from stop mode so ADC functions properly
2017-06-16 10:52:44 -05:00
andreas.larsson
e12efc073d
Moved u-blox ODIN-W2 cb_cert_utils.h to the correct place
2017-06-16 11:18:37 +02:00
Vincent Coubard
970ee38079
NRF52840: Adjust idle thread stack size.
...
A stack size of 256 bytes is not enough on the NRF52840, this patch
changes it to a size of 512 bytes.
2017-06-16 10:15:03 +01:00
andreas.larsson
a33f65d5f5
Updated binaries to 2.1 rc1
2017-06-16 10:44:16 +02:00
Laurent MEUNIER
20bd774a6c
STM32 SPI specific mode for higher performance
...
This commit implements a SPI mode which will offer better performance
thanks to usage of Lower Layer API which use fewer registers access,
at the cost of lower robustness (no error management).
2017-06-16 10:23:48 +02:00
Deepika
251fae34ac
Resolving: unused variable 'mode' [-Wunused-variable]. mode is used to determine kMCG_ModePEE in case of PEE to switch back manually as default after wakeup MCG is in PBE mode. this is required only when PEE mode is required
2017-06-15 12:14:04 -05:00
Deepika
35a436672b
Resolving warning: unused variable 'instance' [-Wunused-variable]
2017-06-15 12:09:50 -05:00
Deepika
8e1fe0a6b7
Added newline at end of file
2017-06-15 12:08:34 -05:00
Deepika
cc6de51688
Resolving warning: #2524-D: #pragma pop with no matching #pragma push : Pragma push for CC_ARM option is inside GNUC define, same hierarchy to be followed while pop
2017-06-15 12:07:02 -05:00
Deepika
9c9586a388
moving static at the start to resolve warning:'static' is not at beginning of declaration [-Wold-style-declaration]
2017-06-15 12:02:43 -05:00
Marc Moreno Berengue
6b04bb364f
Update port api driver to add missing ports
...
This patch updates port api driver to add missing
ports.
Signed-off-by: Marc Moreno <marc.morenoberengue@arm.com>
2017-06-15 17:30:31 +01:00
Marc Moreno Berengue
8de4c5323f
Update CMSDK_CM3DS.h
...
This patch updates CMSDK_CM3DS.h to remove the
DMA peripheral memory map and defines, as
that peripheral is not present in the system.
In addition, some define names where updated
concerning rtc. RTC_api was updated accordingly.
This patch also updates SMM_MPS2 to align defines and
comments.
Signed-off-by: Marc Moreno <marc.morenoberengue@arm.com>
2017-06-15 17:30:31 +01:00
Marc Moreno Berengue
fabfc85d31
Add analogin driver for CM3DS MPS2 target
...
This patch adds analogin driver for
CM3DS MPS2 target.
Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
2017-06-15 17:30:30 +01:00
Marc Moreno Berengue
985a2bb01d
Add I2C driver for CM3DS MPS2 target
...
This patch adds the I2C driver for CM3DS MPS2 target.
Signed-off-by: Marc Moreno <marc.morenoberengue@arm.com>
2017-06-15 17:30:30 +01:00
Marc Moreno Berengue
ef79cf68a7
Implement pin_function and gpio_set
...
This patch implements pin_function and gpio_set
with some fixes in the PinNames.
The patch also updates the serial and spi
drivers to use the pin_function.
Signed-off-by: Marc Moreno <marc.morenoberengue@arm.com>
2017-06-15 17:30:30 +01:00
Sam Grove
226af545a4
Merge pull request #4510 from kegilbert/rearrange-odin-target-rebase
...
u-blox rearrange ODIN target
2017-06-15 11:20:48 -05:00
Sam Grove
109269da9c
Merge pull request #4414 from tkaman/master
...
Enable CM3DS_MPS2 target
2017-06-15 11:20:09 -05:00
Sam Grove
9787c5aff7
Merge pull request #4542 from NXPmicro/Update_K82_UART_Clock_Init
...
Issue#4528 K82F: Move the UART clock inititialization to board specif…
2017-06-15 11:18:47 -05:00
Rob Meades
fdf8a7980f
Platform support for OnboardCellular modem and u-blox cellular interface drivers. This change allows the u-blox C027 and C030 boards to use both the mbed-os OnboardCellular modem driver and the u-blox cellular interface drivers (which support both PPP and AT data modes).
2017-06-15 14:32:09 +01:00
Martin Kojtal
0f61af58a2
ncs36510: timer.h rename
...
This fixes an issue as Timer.h is mbed file, thus if this file gets included first,
causes failures.
2017-06-15 12:15:00 +01:00
Martin Kojtal
db71029eb7
targets: micronfcboard should add macros, not overwrite
2017-06-15 12:09:05 +01:00
Yuguo Zou
0de89c7712
Add FlashIAP support for REALTEK_RTL8195AM
2017-06-15 16:27:08 +08:00
Andreas Larsson
6a270fb348
Moved ODIN target files into STM32F439xI folder to avoid duplicate code
2017-06-14 13:21:04 -05:00
Laurent MEUNIER
73eebaad19
NUCLEO_L476RG: FLASH size of 1MB, not 2MB
...
MBED_APP_SIZE was erroneously defined to 2MB for this target,
while it's only 1MB.
2017-06-14 16:52:08 +02:00
Laurent MEUNIER
1d802028cf
NUCLEO_L476RG: GCC_ARM ld file fix
...
Following
Merge pull request #4063 from LMESTM/17q2_L4_bootloader
the NUCLEO_L476RG binairies could not boot anymore.
The change done in #4063 was derived from work on NUCLEO_L429ZI target
which supports uvisor. The VECTORS defintiion is introduced as part of
uvisor support and requires further changes in ld file which were missing.
As uvisor is not considered yet, we remove VECTORS for now and will
introduce only when needed.
2017-06-14 16:48:29 +02:00
Russ Butler
47b78a2d17
Fix STM32 crashes on boot due to unset VTOR
...
Remove HAL_Init and related code from SystemInit and move it to
mbed_sdk_init. The function SystemInit is called early in the boot
sequence before RAM is initialized or the VTOR is setup, so it should
not be used to perform the HAL initialization.
This fixes crashes due the vector table being used before it has been
relocated.
2017-06-13 12:12:20 -05:00
Mahadevan Mahesh
ef00edf934
Issue#4528 K82F: Move the UART clock inititialization to board specific file
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-06-13 12:10:16 -05:00
jeromecoutant
8301ee04ca
STM32 Add USB pins name in PinNames.h files
2017-06-13 17:15:27 +02:00
bcostm
8ede14dac1
DISCO_L475VG_IOT01A: Add include of LL timer file
2017-06-12 17:12:57 +02:00
bcostm
66cbc8b452
DISCO_L475VG_IOT01A: Update device files after CubeL4 update
2017-06-12 17:03:12 +02:00
bcostm
af2078f38d
DISCO_L475VG_IOT01A: Update cmsis_nvic files
2017-06-12 17:03:12 +02:00
bcostm
f6a48838ad
DISCO_L475VG_IOT01A: Move USB device config files
2017-06-12 17:03:12 +02:00
bcostm
3519d535a0
DISCO_L475VG_IOT01A: Add generic buttons declaration
2017-06-12 17:03:12 +02:00
bcostm
2ed207efd4
DISCO_L475VG_IOT01A: change comment for 8-byte aligned adress for IAR .icf file
2017-06-12 17:03:12 +02:00
bcostm
7a2d1bd74a
DISCO_L475VG_IOT01A: Move ADC internal channels in dedicated table.
2017-06-12 17:03:12 +02:00
bcostm
05c023bcad
DISCO_L475VG_IOT01A: Add all pins even those not available on connectors.
2017-06-12 17:03:12 +02:00
bcostm
a8ab839e2c
DISCO_L475VG_IOT: Re-organize folder
...
- Move TARGET_DISCO_L475VG_IOT01A/ in TARGET_STM32L475xG/
- Add STM32L475xG extra label in targets.json
2017-06-12 17:03:12 +02:00
bcostm
b40591f1e1
DISCO_L475VG_IOT: Add USB Device files
2017-06-12 17:03:12 +02:00
bcostm
72e85bf9fb
Put device_name in upper-case in targets.json
2017-06-12 17:03:12 +02:00
bcostm
2871545bd7
Assign LED4 definition same as LED3
2017-06-12 17:03:12 +02:00
bcostm
b9cf7dbe69
Set ADC pins to MODE_ANALOG_ADC_CONTROL
2017-06-12 17:03:12 +02:00
bcostm
ac27f8288d
Add back PB_6/PB_7 pins definition used by STDIO_UART_TX/RX
2017-06-12 17:03:12 +02:00
bcostm
23140da035
Update PeripheralPins: add _ALTx pins and remove pins not available on connectors
2017-06-12 17:03:12 +02:00
bcostm
8c7000cce4
Add "01A" suffix in target name
2017-06-12 17:03:12 +02:00
bcostm
0e3b3efe93
DISCO_L475VG_IOT: Add ARDUINO in "supported_form_factor"
2017-06-12 17:03:12 +02:00
bcostm
116d35ad9b
Update PinNames.h and remove PortNames.h after rebase with master
2017-06-12 17:03:12 +02:00
bcostm
4cdbbcabc0
Add DISCO_L475VG_IOT in targets.json
2017-06-12 17:03:12 +02:00
bcostm
374f71ca66
Add DISCO_L475VG_IOT in mbed_rtx.h
2017-06-12 17:03:12 +02:00
bcostm
074e11dcc1
Add DISCO_L475VG_IOT specific files
2017-06-12 17:03:12 +02:00
Fahrzin Hemmati
28e8bc04e9
do while -> while
2017-06-12 05:12:45 -07:00
Fahrzin Hemmati
53f5f662ca
Fix add -> adds typo
2017-06-12 05:11:48 -07:00
Fahrzin Hemmati
38b64ab927
Improve the startup code on the STM32F070
...
This reduces the number of loads inside of the .data copy loop by 3 by using one more register. It should work on any STM32 with at least 5 general-purpose registers. If only 4 are available, then 1 load could still be removed from the original implementation.
2017-06-12 05:05:41 -07:00
MS30 CCChang12
80b74f3139
[NANO130] Modify pin names for mbed board
2017-06-12 15:45:47 +08:00
MS30 CCChang12
a2d0b021a6
[NANO130] Fix first PWM pulse may not be correct issue
2017-06-12 14:24:28 +08:00
Sam Grove
f31ea01237
Merge pull request #4487 from Archcady/Realtek_TCM
...
Resolve Realtek device small code space issue
2017-06-11 01:09:51 -05:00
Sam Grove
91bececab9
Merge pull request #4470 from c1728p9/workshop_rebase_4064
...
Flash API support using the MCUXpresso drivers
2017-06-11 01:09:11 -05:00
Yuguo Zou
f4522134ed
Resolve Realtek device small code space issue
...
switch on TCM section usage, this should give user code more codespace.
2017-06-10 09:46:01 -05:00
Jimmy Brisson
113ee13505
Merge pull request #4472 from c1728p9/workshop_rebase_4037
...
Silicon Labs: Add flash API support
2017-06-09 16:18:41 -05:00
Mahadevan Mahesh
b3b0d21c8b
Flash API support using the MCUXpresso drivers
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-06-09 11:20:23 -05:00
Martin Kojtal
e850355a16
Merge pull request #4509 from kegilbert/17q2-spi_sdcard-rebase2
...
NRF52840: enabled SdBlockDevice capability
2017-06-09 15:07:03 +01:00
Martin Kojtal
ecc737e14f
Merge pull request #4484 from c1728p9/workshop_rebase_4058
...
STM32L4 Flash support
2017-06-09 15:05:46 +01:00
Martin Kojtal
89b66983b8
Merge pull request #4477 from c1728p9/workshop_rebase_4054
...
Silicon Labs: Fix bug with SPI MISO and CS handling
2017-06-09 15:05:33 +01:00
Martin Kojtal
8998a55bc7
Merge pull request #4475 from c1728p9/workshop_rebase_4043
...
Silicon Labs: Add bootloader support
2017-06-09 15:04:55 +01:00
Martin Kojtal
d3cf5fb999
Merge pull request #4445 from theotherjimmy/fix-exporters
...
Fixes for exporter issues
2017-06-09 15:04:01 +01:00
mattot01
9bf298ecc8
Enable IAR and GCC_ARM compiler for CM3DS MPS2
...
1. Add startup code and linker script for IAR and
GCC_ARM compilers.
2. Enable IAR and GCC_ARM compilers in targets.json.
Change-Id: I742a89ae73a4e5ede980a8af0821c3f0e5a461ef
Signed-off-by: Mate Toth-Pal <mate.toth-pal@arm.com>
2017-06-09 14:58:31 +01:00
Tamas Ban
439363d12a
Implement RTC(Real Time Clock) API on CM3DS target
...
- Modify CMSDK_CM3DS.h: add register interface
- Modify targets.json: add RTC as available device to CM3DS
- Create rtc_api.c: implement mandatory API functions
Change-Id: I14bc1074a9ac0d5e4cbada46d3c90ca82c1e28b0
Signed-off-by: Tamas Ban <Tamas.Ban@arm.com>
2017-06-09 14:58:31 +01:00
gabker01
fb6a2c075c
Implement low-level Ethernet interface for lwIP
...
Based on lwip_ethernetif.c skeleton file,
use init, receive and transfer
functionality of SMSC9220 Ethernet driver
for the lightweight IP stack.
Receive mechanism is interrupt driven.
HW buffer sizes:
Tx = 4608 bytes (MTU)
Rx = 10560 bytes
lwIP fine tuning:
mbed-os/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/opt.h
Change-Id: I0ea95650c65fb32cafb5c2d3dde11420c61dba66
Signed-off-by: Gabor Kertesz <gabor.kertesz@arm.com>
2017-06-09 14:58:31 +01:00
gabker01
e4501f320b
Ethernet driver for MPS2
...
Refactor SMSC9220 Ethernet controller driver
Change-Id: I75c3c42d5675441de1292100a54c50d990070c6f
Signed-off-by: Gabor Kertesz <gabor.kertesz@arm.com>
2017-06-09 14:58:31 +01:00
Tamas Kaman
fdec3f51eb
Create CM3DS_MPS2 target
...
- Creates new target in targets.json
- Creates device specific files under ARM_SSG/CM3DS_MPS2 directory
- Driver layer files under CM3DS_MPS2 are based on Beid target
- Device specific files under CM3DS_MPS2/device are based on CMSIS_5 and Beetle
Change-Id: I29ea7a7f42b11cf25b516cce4b9255ab828ca019
Signed-off-by: Tamas Kaman <Tamas.Kaman@arm.com>
Signed-off-by: Marc Moreno <marc.morenoberengue@arm.com>
2017-06-09 14:58:31 +01:00
Laurent MEUNIER
f77ecf4e12
STM32: Put some serial code in common between families
2017-06-09 13:30:54 +02:00
Aksel Skauge Mellbye
0d1bd37746
[Silicon Labs] Add flash API support
2017-06-09 11:51:28 +01:00
Jimmy Brisson
d06e2169fd
Correctly name rom.a
2017-06-09 00:03:22 -05:00
Sam Grove
14153e7f98
Add virtual nvic support to OC_MBUINO (LPC11U24 based)
2017-06-08 23:49:07 -05:00
Russ Butler
33be92c2b8
Define CMSIS_VECTAB_VIRTUAL for M0 targets
...
Define CMSIS_VECTAB_VIRTUAL for the M0 targets which have a
corresponding driver. The only M0 target missing this is the LPC4330_M0
which is not part of the 2 or 5 release.
2017-06-08 22:50:28 -05:00
Russ Butler
805374ed89
Restore cmsis_nvic for Cortex-M0 targets
...
Restore cmsis_nvic (cmsis_nvic.c and cmsis_nvic.h) files for the
implementations which use a mechanism other than the VTOR to set
interrupts. These are vendor specific and were done for M0 devices
which do not have a VTOR.
Note - There were two cmsis_nvic files which did not use the VTOR that
which not restored in this patch. This is because these targets were
not M0 devices and could use the new unified implementation instead.
These files are:
targets\TARGET_ARM_SSG\TARGET_MPS2\TARGET_MPS2_M0P\device\cmsis_nvic.c
targets\TARGET_ONSEMI\TARGET_NCS36510\device\cmsis_nvic.c
Note - cmsis_nvic.c and cmsis_nvic.h were initial removed in
(and restored from) the commit:
b97ffe8fdc -
"CMSIS5: Replace target defined NVIC_Set/GetVector with CMSIS implementation"
2017-06-08 22:50:23 -05:00
Russ Butler
9661844e35
Change NUCLEO_L031K6 to M0+
...
Change the core type of the NUCLEO_L031K6 from an M0 to an M0+
so NVIC_SetVector works correctly.
2017-06-08 22:50:19 -05:00
Kevin Gilbert
f324647aae
Original pull request had added these checks to a deleted file. Replicating that change to allow builds on the NRF52840_DK (see original PR #4088 to see the explanation for the removal of spi async)
2017-06-08 17:31:24 -05:00
Andrzej Puzdrowski
baf45b6596
[NRF52840]: disbale SPIM which fix block device
2017-06-08 17:31:24 -05:00
Andrzej Puzdrowski
728841bb5a
Rebase of 7e8cfa8076
...
[NRF52840]: fix SdBlockDevice capability device by disabling SPI_ASYNC mode.
2017-06-08 17:31:23 -05:00
Sam Grove
88cbc7e335
Merge pull request #4473 from c1728p9/workshop_rebase_4041
...
[Silicon Labs] Enable dynamic heap with ARMCC
2017-06-08 15:58:28 -05:00
Sam Grove
bedebce37e
Merge pull request #4476 from c1728p9/workshop_rebase_4050
...
Add TRNG support for KW41Z
2017-06-08 15:58:03 -05:00
Sam Grove
ee8bd05ff6
Merge pull request #4481 from kegilbert/add_bootloader_support_stm32f439xI-rebase
...
Add bootloader support stm32f439xI - Rebase
2017-06-08 15:55:59 -05:00
Sam Grove
8a6f28dd52
Merge pull request #4482 from kegilbert/bugfix/efm32-bootloader-s1-rebase
...
[Silicon Labs] Bugfix for bootloader on Pearl and Mighty Gecko - Rebase
2017-06-08 15:54:57 -05:00
Sam Grove
c136c1330f
Merge pull request #4471 from c1728p9/workshop_rebase_4042
...
[Silicon Labs] Fix compile warnings and ticker test failure
2017-06-08 15:53:55 -05:00
Sam Grove
644cdee1de
Merge pull request #4495 from c1728p9/workshop_rebase_4056
...
NRF52840: TRNG support
2017-06-08 15:50:26 -05:00
Sam Grove
8e9b5b260d
Merge pull request #4497 from c1728p9/workshop_rebase_4051
...
Silicon Labs: Add TRNG support
2017-06-08 15:50:10 -05:00
Sam Grove
434787b9a8
Merge pull request #4499 from c1728p9/fix_rtc_api_time_conversion
...
Fix rtc api time conversion
2017-06-08 15:49:00 -05:00
Sam Grove
64c6214f03
Merge pull request #4474 from kegilbert/stm32_l0_flash_api-rebase
...
STM32 L0: Add Flash API support - Rebase
2017-06-08 11:39:08 -05:00
Sam Grove
1607c83d77
Merge pull request #4469 from kegilbert/17q2-l4-bootloader-rebase
...
17q2 l4 bootloader - Rebase
2017-06-08 11:38:25 -05:00
Laurent MEUNIER
c5c33f1d0f
STM32: serial: clear Overrun flag if it is set when checking if readable
...
Note that this could have side effects on the application as it would
not be aware that data has been missed. This may be later solved by
adding an error management parameter to the Serial API in mbed.
The advantage is that the serial link can work again.
2017-06-08 17:01:30 +02:00
Sam Grove
547320e99c
Rename function st_rtc_localtime with _rtc_localtime
2017-06-07 23:24:48 -05:00
Vincent Coubard
f880e44145
remove usage of mktime/localtime in favor of dedicated functions.
...
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-06-07 22:06:22 -05:00
Russ Butler
96288e3eef
Simplify Ameba RTC driver
...
The Ameba RTC driver converts time_t to
second/minute/hour/day/month/year in rtc_write and back to time_t in
rtc_read. Replace this with an implementation which uses time_t
directly.
2017-06-07 22:03:27 -05:00
Steven Cooreman
59b3bfa0ce
Add behavior to throw away collected entropy on occurrence of a noise alarm.
2017-06-07 17:22:26 -05:00
Steven Cooreman
97ef051eba
Remove internal test functions
2017-06-07 17:22:06 -05:00
Steven Cooreman
94450374e7
Update to 4 spaces/tab
2017-06-07 17:21:49 -05:00
Steven Cooreman
66862785c5
Remove leftover comment about mbedTLS plugin
2017-06-07 17:21:28 -05:00
Steven Cooreman
466d4eab22
[Silicon Labs] Add TRNG support
...
Adding support for the TRNG peripheral present on Series 1 Configuration 2 devices.
2017-06-07 17:20:24 -05:00
Mahadevan Mahesh
355a84ee74
Fix comments in KW41Z hardware entropy driver
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-06-07 17:10:15 -05:00
Andrzej Puzdrowski
3dc3329d13
[NRF5840] change: trng_get_bytes returns at last one random byte.
2017-06-07 15:32:57 -05:00
Andrzej Puzdrowski
8edac29db8
[NRF52840]: fix non-blocking mode of TRNG driver
...
improve coding style.
2017-06-07 15:32:40 -05:00
kl-cruz
8698756c63
[nRF52840] Fixed length in trng in every mode
2017-06-07 15:32:12 -05:00
kl-cruz
c32e2c262a
[nRF52840] added trng implementation for nrf52840
2017-06-07 15:31:39 -05:00
Sam Grove
01e4520548
Merge pull request #4453 from c1728p9/lp_ticker_fix
...
Safely initialize RTC on kinetis devices
2017-06-07 09:58:49 -05:00
Sam Grove
8232afa53e
Merge pull request #4216 from fmanno/issue-4189
...
STM32s Serial: Correct handling of parity bits
2017-06-06 20:00:19 -05:00
Sam Grove
72de85c62f
Merge pull request #4417 from monkiineko/master
...
STM32: Fix 32-bit us ticker interrupt scheduling
2017-06-06 19:59:52 -05:00
Sam Grove
3c3e35dd44
Merge pull request #4423 from arostm/nucleo_f412zg_remove_hal_conf
...
NUCLEO_F412ZG: Remove hal_conf file from NUCLEO_F412ZG
2017-06-06 19:59:31 -05:00
Sam Grove
4d7c045753
Merge pull request #4424 from LMESTM/STM32_16bits_tickers
...
Fix corner cases in STM32 16bit tickers
2017-06-06 19:59:08 -05:00
Laurent MEUNIER
1c57df37d4
STM32 L4: Flash API typo
2017-06-06 18:10:38 -05:00
Laurent MEUNIER
a9d237012c
Removing duplicate defines
...
Those defines are already available in STM32 L4 SDK and don't need to
be (re)defined here.
2017-06-06 18:10:18 -05:00
Laurent MEUNIER
ec89ea8ac9
Fix L432KC compilation error
2017-06-06 18:09:53 -05:00
Laurent MEUNIER
b91c86ec3e
Activate FLASH on STM32 L4 targets
2017-06-06 18:09:31 -05:00
Laurent MEUNIER
b1ae8a9f9d
STM32L4 : add Flash API support
2017-06-06 18:09:12 -05:00
Aksel Skauge Mellbye
b30e665fc7
[Silicon Labs] Bugfixes to using bootloader with Series 1 devices.
2017-06-06 17:11:18 -05:00
Andreas Larsson
7a0778b7d2
Fixed wrong stack size start
2017-06-06 17:09:01 -05:00
Andreas Larsson
7e58474a4e
Fixed comment, 439ZI to more generic 439xI
2017-06-06 17:08:51 -05:00
Andreas Larsson
fe8afae0c1
Fixed comment alignments
2017-06-06 17:08:43 -05:00
Andreas Larsson
6f1a8a8515
Added MBED_APP_START and MBED_APP_SIZE used by the app when a boot loader is present
2017-06-06 17:08:28 -05:00
Andreas Larsson
e91495dab1
Rebase of: 2d2f0a0b5c
...
Added missing bootloader_supported for NUCLEO_F439ZI
2017-06-06 17:07:54 -05:00
Aksel Skauge Mellbye
9e999bd43b
[Silicon Labs] Fix bug with SPI MISO and CS handling
2017-06-06 16:36:15 -05:00
Mahadevan Mahesh
059affaf4e
Add TRNG support for KW41Z
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-06-06 16:33:53 -05:00
Aksel Skauge Mellbye
5d906a74e6
[Silicon Labs] Add bootloader support
...
* Make memory sections configurable in linker files
* Dynamically determine vector location in flash for NVIC relocation
* Advertise bootloader support in targets.json
2017-06-06 16:26:11 -05:00
Aksel Skauge Mellbye
d5eaa1505c
[Silicon Labs] Enable dynamic heap with ARMCC
...
When using ARM Compiler 5, the RTX config hard-coded the heap and stack
sizes to specific values. This prevented the RTX HAL from dynamically
allocating unused memory as heap space.
Specifically, the HEAP_START define prevents this logic in RTX_CM_lib.h
from activating. The rest of the defines are also set in that header,
and should be removed from here.
2017-06-06 16:21:55 -05:00
Aksel Skauge Mellbye
29bef6fd05
[Silicon Labs] Fix compile warnings and ticker test failure
...
* Using PinName as bitfield doesn't work without warnings, since NC
needs all 32 bits to be represented.
* lp_ticker should not be freed when interrupt is disabled, since this
will kill the timebase.
2017-06-06 16:14:19 -05:00
Sam Grove
6002bdd533
Merge pull request #4439 from sg-/proper-realtek-fix
...
Proper fix for 1fa30b7403
2017-06-06 16:00:55 -05:00
Laurent MEUNIER
affab79f13
STM32 L0: Add Flash API support
...
This is the introduction of Flash API support for STM32 L0 family.
2017-06-06 15:47:54 -05:00
Laurent MEUNIER
7ec9fe23c1
Update stm32l476rg linker scripts for bootloader
...
Add MBED_APP_START and MBED_APP_SIZE to the linker scripts
so the start and size of an image can be specified. This allows the
ROM to be split into a bootloader region and an application region.
2017-06-06 15:43:54 -05:00
Laurent MEUNIER
5fbe3299d7
Rebase of: e51c40c061
...
Fix vector table
The address of the vector table is hardcoded to the start of flash.
This patch updates make it properly handle updating the VTOR with
a bootloader.
2017-06-06 15:43:17 -05:00
Laurent MEUNIER
b1a56bedf4
Enable bootloader on NUCLEO_L476RG
2017-06-06 15:42:40 -05:00
Russ Butler
f749a2990b
Safely initialize RTC on kinetis devices
...
When initializing the RTC on Kinetis devices, handle the case where
the time overflow interrupt is pending and the case where the time
alarm flag is pending. These flags persist across reset and if not
handled will cause a crash when powering up the low power ticker.
This problem manifested as a lp_ticker test failure on the K22F and
K64F on CI only when running a nightly. This problem has been present
but was made obvious by PR #4094 which configures all tickers to
interrupt at least every MBED_TICKER_INTERRUPT_TIMESTAMP_MAX_DELTA
(~31 minutes). This caused the RTC alarm to fire 31 minutes after the lp_ticker
or lp_timeout test and caused the next run of the lp_ticker test to
crash on boot.
2017-06-06 15:30:41 -05:00
Anna Bridge
a41e08c7bf
Merge pull request #4365 from LMESTM/fix_i2C_pcf_F1F2F4L1
...
Fix i2c communication with pcf8574 on stm32 targets of f1, f2, f4 and l1 families
2017-06-05 14:41:36 +01:00
Anna Bridge
f6d19726b2
Merge pull request #4368 from MultiTechSystems/iar_fix
...
MTS_DRAGONFLY_F411RE/MTS_MDOT_F411RE: add IAR to post_binary_hook toolchains
2017-06-05 14:40:02 +01:00
Laurent MEUNIER
ea2cc1d0e1
STM32 16bits tickers: consider all corner cases in us_ticker_set_interrupt
...
The present commit comes from monkiineko mbed contributor.
The comments in code explains in details all the possible case and
how they are handled.
2017-06-05 13:12:20 +02:00
Laurent MEUNIER
fbfbb5e982
STM32 16 bits ticker: fix grammar issues in comments
2017-06-05 13:12:20 +02:00
Laurent MEUNIER
572a096c08
STM32 16 bits tickers: save useless instance init
...
TimMasterHandle.Instance initialization can be removed from here,
because it will either have been already done previously,
or it will be done in the us_ticker_init() call immediately below.
2017-06-05 13:12:20 +02:00
Laurent MEUNIER
7bcabf7cc0
STM32 16 bits tickers: remove unused prototype
...
Since rework, this prototype is not needed anymore.
2017-06-05 13:12:20 +02:00
Laurent MEUNIER
27be2e1884
STM32 16 bits ticker: don't check FLAG just clear it
...
Not having the check will make the code more efficient.
2017-06-05 13:12:20 +02:00
Laurent MEUNIER
1b684ca4e9
STM32 16 bits tickers, no need to check TIM_FLAG_CC1OF FLAG
...
Following previous fixes on 16 tickers handling, the overflow flag
condition will not happen anymore, so the work-around in place is
not needed anymore
2017-06-05 13:12:20 +02:00
Laurent MEUNIER
35c68859c0
STM32: 16 bits ticker, fixes in set function and handler
...
This commit simplifies ticker interrupt set function and handler.
There were issues around the 16 bits timer wrap-around timing as we were
aligning interrupts with wrap-around limits (0xFFFF) and then reading
TIM_MST->CNT again in timer_update_irq_handler which could lead
to crossing case with the wrap-around (TIM_FLAG_UPDATE) case.
Now we're using the 16 lower bits of the timestamp as the reference from
using in set_compare and never changing it. There is also no need to set
comparator again in timer_update_irq_handler. This is more robust and
also more efficient.
2017-06-05 13:12:20 +02:00
Laurent MEUNIER
b9b5f0b929
STM32 16bits ticker: rework us_ticker_read()
...
Move to a single more reliable implementation of us_ticker_read()
There were historically 2 versions of us_ticker_read() implementation.
The one removed here was not reliable because us_ticker_read() can be
called in interrupt context which means that TIM_MST->CNT would have
wrapped around while SlaveCounter is not yet updated. So there is a need
to check the TIM_FLAG_UPDATE inside this function, which was not done in
the implementation that is removed here.
2017-06-05 13:12:20 +02:00
Sam Grove
02bf926ffb
Proper fix for 1fa30b7403
...
Replace #define with typedef
2017-06-04 11:26:21 -05:00
Sam Grove
be35b3fb81
spi: Added default spi_master_block_write implementation to REALTEK_RTL8195AM
...
There is an easy default implementation of spi_master_block_write that
just calls spi_master_write in a loop, so the default implementation
of spi_master_block_write has been added to all targets.
2017-06-03 17:14:11 -05:00
Yuguo Zou
3c3a9a67fe
fix STRINGIFY redefining issue
2017-06-03 20:15:05 +01:00
Yuguo Zou
fdea7b146c
fix icf file misspelling
2017-06-03 20:15:05 +01:00
Yuguo Zou
b76c8a93c5
clean up GPL license with APACHE2.0
2017-06-03 20:15:05 +01:00
Yuguo Zou
7602d2749a
remove unsupported device_name
2017-06-03 20:15:05 +01:00
Yuguo Zou
f71f578435
Switch to rtx2
...
remove rtx and switch to rtx2
2017-06-03 20:15:05 +01:00
Yuguo Zou
c31d5479be
fix multiple i2c peripherals possible conflicting issue
2017-06-03 20:15:04 +01:00
Yuguo Zou
92ca664fda
Add support for mbed exporter
...
(uvision, gcc_arm, iar)
2017-06-03 20:15:04 +01:00
Yuguo Zou
4eda93e760
resolve RTWInterface initialization run after error issue
2017-06-03 20:15:04 +01:00
Yuguo Zou
e2891647f2
add comment for the delay in analogout_api.c
...
see analogout_init()
2017-06-03 20:15:04 +01:00
Yuguo Zou
0c046a4c38
improve coding style
2017-06-03 20:15:04 +01:00
Yuguo Zou
005ce58f44
cmsis5\rtx5 put NVIC vector ops in mbed_boot.c
2017-06-03 20:15:04 +01:00
Yuguo Zou
e8fd5bbdf4
move archives into target specific directories
2017-06-03 20:15:03 +01:00
Yuguo Zou
c160d5b1cd
Ported code of CMSIS5/RTX2
...
temporarily comment out these code to prevent conflict with RTX
2017-06-03 20:15:02 +01:00
Yuguo Zou
6c82b51f78
an I2C fix
...
an I2C fix for updated CI-test
2017-06-03 20:15:01 +01:00
Yuguo Zou
f000eb3401
Restore TCPIP_THREAD_STACKSIZE and thread_stack_main
...
move some TCPIP stack data to heap;
switch off GDMA for SPI (only for SPI);
TCPIP_THREAD_STACKSIZE and thread_stack_main are identical to ARMmbed
2017-06-03 20:15:01 +01:00
Yuguo Zou
c3bf1c5006
remove unused class member from RTWInterface
2017-06-03 20:15:00 +01:00
Yuguo Zou
6f24e9e8e9
Clear Wlan code in permissive-binary-license
...
These code are put in binary library or they are unused .h files
2017-06-03 20:15:00 +01:00