Tony Wu
7b0ff75f5c
rtl8195am - fix pwmout_api.c warnings
...
Fix the following warning:
[Warning] pwmout_api.c@65,29: comparison between signed and unsigned integer expressions [-Wsign-compare]
Signed-off-by: Tony Wu <tonywu@realtek.com>
2018-04-17 10:41:27 +08:00
Tony Wu
e5f0542436
rtl8195am - fix log_uart_api.c warnings
...
Fix the following warnings:
[Warning] log_uart_api.c@58,38: comparison between signed and unsigned integer expressions [-Wsign-compare]
[Warning] log_uart_api.c@151,38: comparison between signed and unsigned integer expressions [-Wsign-compare]
[Warning] log_uart_api.c@260,27: unused variable 'pUartAdapter' [-Wunused-variable]
[Warning] log_uart_api.c@268,27: unused variable 'pUartAdapter' [-Wunused-variable]
[Warning] log_uart_api.c@276,27: unused variable 'pUartAdapter' [-Wunused-variable]
[Warning] log_uart_api.c@290,27: unused variable 'pUartAdapter' [-Wunused-variable]
[Warning] log_uart_api.c@328,27: unused variable 'pUartAdapter' [-Wunused-variable]
[Warning] log_uart_api.c@338,27: unused variable 'pUartAdapter' [-Wunused-variable]
[Warning] log_uart_api.c@376,45: pointer targets in passing argument 2 of 'HalLogUartRecv' differ in signedness [-Wpointer-sign]
[Warning] log_uart_api.c@386,45: pointer targets in passing argument 2 of 'HalLogUartSend' differ in signedness [-Wpointer-sign]
Signed-off-by: Tony Wu <tonywu@realtek.com>
2018-04-17 10:40:11 +08:00
Tony Wu
1b815de4ac
rtl8195am - fix i2c_api.c warnings
...
Fix the following warnings:
[Warning] i2c_api.c@94,26: comparison between signed and unsigned integer expressions [-Wsign-compare]
[Warning] i2c_api.c@231,5: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
[Warning] i2c_api.c@460,14: unused variable 'i2c_default_addr' [-Wunused-variable]
Signed-off-by: Tony Wu <tonywu@realtek.com>
2018-04-17 10:33:48 +08:00
Edmund Hsu
3d37c26d28
Add BUTTON pin names for EV_COG_AD4050LZ and EV_COG_AD3029LZ
...
Apart from reset and boot buttons, EV_COG_AD4050LZ and
EV_COG_AD3029LZ have 2 more user defined buttons:
- BUTTON1
- BUTTON2
2018-04-17 10:53:11 +10:00
Mahesh Mahadevan
6e9f99ca93
MCUXpresso: Fix LPC I2C driver for byte operations
...
The ci-shield tests that manually generate the START, STOP
by calling the HAL functions were failing. The byte operation
HAL functions cannot use the MCUXpresso SDK driver API's.
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-04-16 16:35:34 -05:00
Mahesh Mahadevan
69a950c6eb
MCUXpresso: Fix SDK LPC driver
...
Poll the Pending bit after START and STOP operations to ensure
operation completion.
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-04-16 16:35:34 -05:00
Cruz Monrreal
f73415e9f8
Merge pull request #6466 from OpenNuvoton/nuvoton_fix_spi
...
Nuvoton: Fix issues with SPI
2018-04-16 10:47:51 -05:00
Cruz Monrreal
4ff1a49d17
Merge pull request #6541 from jorisa/lpc11c24-spfix
...
Add mbed-os 5 build support for LPC11C24
2018-04-16 10:45:06 -05:00
Cruz Monrreal
fd756ef2f5
Merge pull request #6598 from embeddedartists/lpc4088_hardfault_fix
...
LPC4088: Fix hardfault occuring after power-cycle
2018-04-16 10:43:37 -05:00
Cruz Monrreal
e2567e5dad
Merge pull request #6599 from jeromecoutant/PR_WARNING
...
STM32 compilation warning issues
2018-04-16 10:41:36 -05:00
Cruz Monrreal
fe44dc0468
Merge pull request #6601 from KariHaapalehto/add_mtb_adv_wise_1530
...
Add new target MTB_ADV_WISE_1530
2018-04-16 10:40:12 -05:00
Cruz Monrreal
63412bbe1d
Merge pull request #6605 from maximmbed/max32625-rework-ticker
...
Rework us_ticker and rtc_api/lp_ticker | Fix compiler warning for spi_api
2018-04-16 10:39:11 -05:00
Cruz Monrreal
b630691fdf
Merge pull request #6606 from maximmbed/max32630-fix-i2c
...
Fix I2C master
2018-04-16 10:38:10 -05:00
Cruz Monrreal
988a16b245
Merge pull request #6608 from maximmbed/max32630-rework-ticker
...
Rework us_ticker and rtc_api/lp_ticker
2018-04-16 10:37:51 -05:00
Cruz Monrreal
37f36a776f
Merge pull request #6609 from pauluap/compiler_warning_pcd_unsigned_signed
...
STM32 PCD negative numbers issue
2018-04-16 10:36:13 -05:00
Marcus Chang
7e6538ffed
Optional hardware flow control for STDOUT
...
Some platforms have interface chips with hardware flow control
enabled by default. This commit adds configurable flow control to
STDOUT.
Usage:
* Define pin names STDIO_UART_RTS for Rx-flow-control and
STDIO_UART_CTS for Tx-flow-control.
* Set target.console-uart-flow-control. Valid options are:
null, RTS, CTS, and RTSCTS.
2018-04-15 20:12:14 -07:00
Keyur Hariya
b08c752fcd
Fix indentation
2018-04-13 15:20:00 -05:00
Keyur Hariya
16d38895d3
Improve SPI block write
...
Replace looping construct with actual block writes.
Transaction in spi_master_block_write funtion is protected by critical
section to ensure it is completed without interruption. A hardware
limitation may cause data corruption if the TX fifo is allowed to run
empty.
2018-04-13 15:14:10 -05:00
Paul Thompson
20f11bc13f
Extend changes to other STM32 devices that have the PCD_WriteEmptyTxFifo() function
2018-04-13 05:27:03 -07:00
Paul Thompson
b45d4233e1
Make the atomic_clr_u32 conditional use raw values rather than computed, remove need for guards
2018-04-13 04:44:43 -07:00
Paul Thompson
2211a27f53
Drop usage of ilen, just use len and cast it to int32_t as appropriate
2018-04-13 00:27:00 -07:00
Tony Wu
d9c51b92fc
rtl8195am - fix excessive compiler warnings
...
Fix hundreds of excessive compiler warnings due to out of enum type range
Examples shown as follows:
mbed-os.lib/targets/TARGET_Realtek/TARGET_AMEBA/sdk/soc/realtek/8195a/fwlib/hal_i2c.h", Line: 329, Col: 34
mbed-os.lib/targets/TARGET_Realtek/TARGET_AMEBA/TARGET_RTL8195A/PinNames.h", Line: 172, Col: 11
Signed-off-by: Tony Wu <tonywu@realtek.com>
2018-04-13 13:48:59 +08:00
Cruz Monrreal
641e814048
Merge pull request #6169 from hug-dev/cm3ds-trng
...
CM3DS Maintenance Pull Request: TRNG support (3/4)
2018-04-12 18:38:15 -05:00
Cruz Monrreal
52340753e5
Merge pull request #6567 from bcostm/fix_xtal_disco_f769ni
...
DISCO_F769NI: set clock_source to USE_PLL_HSE_EXTC
2018-04-12 18:36:24 -05:00
Keyur Hariya
b594ec20b8
Fix compiler warning for spi_api
...
Add mbed_critical include file to disable compiler warning messages.
2018-04-12 12:52:55 -05:00
Keyur Hariya
098c2cf756
Rework us_ticker and rtc_api/lp_ticker
...
Simplify tickers to stop emulating 1us ticks by using native timer resolutions.
Implement ticker get info functions.
Separate rtc and lp ticker init status by implementing separate functions.
2018-04-12 12:52:05 -05:00
Keyur Hariya
278707518c
Revert "Rework us_ticker and rtc_api/lp_ticker | Fix compiler warnings for spi_api"
...
This reverts commit 840246a4d5 .
2018-04-12 12:51:05 -05:00
Paul Thompson
8f4a5e2093
Revert to original fix concentrating on type correctness
2018-04-12 10:09:53 -07:00
Paul Thompson
430784b084
Initial work was for unsigned-signed comparison fix. Current work fixes negative number issues
...
Compile: stm32f7xx_hal_pcd.c
../targets/TARGET_STM/TARGET_STM32F7/device/stm32f7xx_hal_pcd.c: In function 'PCD_WriteEmptyTxFifo':
../targets/TARGET_STM/TARGET_STM32F7/device/stm32f7xx_hal_pcd.c:1310:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (len > ep->maxpacket)
^
../targets/TARGET_STM/TARGET_STM32F7/device/stm32f7xx_hal_pcd.c:1325:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (len > ep->maxpacket)
^
2018-04-12 09:43:18 -07:00
Paul Thompson
c67f535fb3
Drop locking around TX and RX. The DMA channels are independent of each other
2018-04-12 09:42:28 -07:00
jeromecoutant
71d7d24bd6
STM32L4 : correct compilation warnings
2018-04-12 10:56:41 +02:00
jeromecoutant
e7c4120550
STM32L1 : correct compilation warnings
2018-04-12 10:55:16 +02:00
jeromecoutant
eeca430b23
STM32L0 : correct compilation warnings
2018-04-12 10:55:11 +02:00
jeromecoutant
2d0dce1db5
STM32F7 : correct compilation warnings
2018-04-12 10:55:02 +02:00
jeromecoutant
2fcf8d8990
STM32F4 : correct compilation warnings
2018-04-12 10:52:21 +02:00
jeromecoutant
a540a21106
STM32F3 : correct compilation warnings
2018-04-12 10:51:33 +02:00
jeromecoutant
4e9e9f5c62
STM32F2 : correct compilation warnings
2018-04-12 10:51:18 +02:00
Keyur Hariya
534f570b0c
Rework us_ticker and rtc_api/lp_ticker
...
Simplify tickers to stop emulating 1us ticks by using native timer resolutions.
Implement ticker get info functions.
Separate rtc and lp ticker init status by implementing separate functions.
2018-04-11 16:16:09 -05:00
Keyur Hariya
e802b255be
Remove automatic I2C stop after each read
...
Automatic stop prevents sending repeated start.
2018-04-11 15:07:52 -05:00
Keyur Hariya
840246a4d5
Rework us_ticker and rtc_api/lp_ticker | Fix compiler warnings for spi_api
...
Simplify tickers to stop emulating 1us ticks by using native timer resolutions.
Implement ticker get info functions.
Separate rtc and lp ticker init status by implementing separate functions.
Add mbed_critical include file to disable compiler warning messages.
2018-04-11 15:02:11 -05:00
Kari Haapalehto
f2b37b7d42
Add new target MTB_ADV_WISE_1530.
...
MTB_ADV_WISE_1530 and MTB_USI_WM_BN_BM_22 includes same usi chip,
so common USI_WM_BN_BM_22 target has been created.
MTB_ADV_WISE_1530 and MTB_USI_WM_BN_BM_22 are inheting the common usi target
2018-04-11 15:50:28 +03:00
Andreas Rebert
01d06a9f51
LPC4088: Fix hardfault occuring after power-cycle
...
Since revision 5499db1 (mbed-os-5.6.0) a hardfault occurs after a power-cycle.
It doesn't occur after a reset when the application has been downloaded using
drag-and-drop or via debugger. This is probably the reason why this problem
isn't detected when testing new mbed releases.
The hardfault occured in hal_sleep(). Adding a __NOP after __WFI solves the
problem although I don't fully understand why.
- Revision ca661f9 is the last revision where the problem doesn't occur.
- The problem doesn't occur when compiling with GCC instead of ARM compiler
- This issue describes a similar, but not identical problem and led me to test adding a __NOP: https://github.com/ARMmbed/mbed-os/issues/5065
2018-04-11 11:13:43 +02:00
jeromecoutant
b6a8a50a28
STM32F1 : correct compilation warnings
2018-04-11 11:06:44 +02:00
jeromecoutant
c2ee8f34b6
STM32F0 : correct compilation warnings
2018-04-11 09:57:54 +02:00
Paul Thompson
f41cf081c9
STM32 : correct compilation warnings
2018-04-11 09:53:15 +02:00
Cruz Monrreal
96a562ab7d
Merge pull request #6550 from theotherjimmy/remove-m1
...
Remove MPS2 M1
2018-04-10 18:08:57 -05:00
Cruz Monrreal
e913e917c0
Merge pull request #6544 from ithinuel/add_rak811_adc
...
add ADC_AN0-2 mapped on PA_0-2
2018-04-10 18:08:03 -05:00
Cruz Monrreal
d9e5c4ba8c
Merge pull request #6505 from netanelgonen/remove_target
...
remove MODULE_UBLOX_ODIN_W2 from targets.json
2018-04-10 18:07:41 -05:00
Mahesh Mahadevan
9a1e749780
LPC546XX: Fix deepsleep implementation
...
Add a check to return to 220MHz on LPC54628
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-04-10 08:16:41 -05:00
Mahesh Mahadevan
72011173fc
MCUXpresso: Fix deepsleep implementation for Kinetis parts
...
1. Fix the check to look for if MCG has a PLL
2. Do setup before and after deep sleep mode execution
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-04-10 08:16:41 -05:00
Mahesh Mahadevan
e163a2769f
MCUXpresso: Update Kinetis flash driver
...
Flash functions needed to be called before entering deepsleep mode
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-04-10 08:16:41 -05:00
Netanel Gonen
3569d2482b
replace tab with spaces
2018-04-09 23:18:56 +03:00
Martin Kojtal
8b2eb20a54
Merge pull request #6553 from theotherjimmy/stmL4-armc6
...
Correct armc6 detection logic for STM32L4
2018-04-09 17:36:52 +02:00
Martin Kojtal
96084a3c67
Merge pull request #6561 from LMESTM/Stm32DeepSleepClock
...
Stm32 deep sleep clock
2018-04-09 17:11:23 +02:00
Martin Kojtal
a3faf58a9e
Merge pull request #6511 from ashok-rao/MTB_USI_BM22
...
Add new target USI WM-BN-BM-22
2018-04-09 17:07:00 +02:00
Martin Kojtal
1b2f63a418
Merge pull request #6503 from maximmbed/add-platform-MAX32620C
...
[MAX32620C] Add new target
2018-04-09 17:05:42 +02:00
Joris Aerts
9e06a3047b
Change detault output_ext for LPC11C24 to hex (for flashmagic)
2018-04-09 11:27:00 +02:00
bcostm
63b56d5ffc
DISCO_F769NI: set clock_source to USE_PLL_HSE_EXTC
2018-04-09 10:17:42 +02:00
ccli8
571e89048f
[Nuvoton] Remove dead code with '#if 0' in SPI
2018-04-09 09:33:52 +08:00
Martin Kojtal
83100d20a5
Merge pull request #6497 from bcostm/PULL_REQUEST_CUBE_UPDATE_L1_V1.8.1
...
STM32L1: Update ST HAL driver to CubeL1 V1.8.1
2018-04-06 17:11:14 +02:00
Laurent MEUNIER
ad4a250292
Style fix
2018-04-06 17:03:53 +02:00
Laurent MEUNIER
3d92af50ce
Add delay to let clock stabilize when out of deep sleep
...
Tests have shown that there is hich-up on MSI clock during the setup phase.
If this stabilization phase happens when application has restarted again
this can have side effects, like grambled UART characters typically.
So we're adding a delay before hading-over back to application.
With this modification, on NCULEO_L476RG, the wake-up time is increased
from 2ms to 2,5ms.
If possible this should be improved in the future to save 500 microseconds
of wak-up time. See TODO
2018-04-06 16:10:27 +02:00
Laurent MEUNIER
8007b1df7c
Use temporarily MSI or HSI when exiting Deep Sleep
...
There are cases where HW registers are found in unpexcepted state when
exiting Deep Sleep only few micro-seconds after it was entered.
By using an internal clock that does not depend on anythin and clocking
the system without using PLL, this allows SetSysClock default configuration
to run fine whatever possible configuration we find the HW in when
exiting Deep Sleep.
Also we shall restore interrupts only after all cloks are back to
expected running state.
2018-04-06 16:10:27 +02:00
Hugues de Valon
acb53180ef
CM3DS: enable TRNG with open-source TZ-TRNG driver
...
This patchs adds TRNG support using the upstreamed, open-source, TZ-TRNG
driver.
It also implements the HAL for TRNG and add it in features.
The mbed-os.py script deletes files that are unused by mbed-os.
Change-Id: Idf8eefd809f00d40e0ad3cf7657f2a8c2eca3505
Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
2018-04-06 11:24:11 +01:00
Jimmy Brisson
d374bb4a5a
Correct armc6 detection logic
2018-04-05 15:13:52 -05:00
Jimmy Brisson
4eff47feb4
Remove MPS2 M1
...
There's not a port
2018-04-05 14:05:49 -05:00
Wilfried Chauveau
de4d7043c9
add ADC_AN0-2 mapped on PA_0-2
2018-04-05 08:33:55 +01:00
Keyur Hariya
2bb78d433f
Fix assembly file extension
2018-04-04 10:32:46 -05:00
Joris Aerts
f8a06640c1
Add mbed5 build support for LPC11C24
2018-04-03 16:45:16 +02:00
bcostm
8412807669
Update stm32l151xba.h
2018-04-03 15:01:07 +02:00
bcostm
293b3bfdc0
STM32L1: allow redefinition of FLASH_SIZE macro
2018-04-03 14:23:14 +02:00
bcostm
8c0ff8be79
Fix typos causing ARM build error
2018-04-03 14:01:03 +02:00
bcostm
d8aa587782
L1 ST CUBE V1.8.1
2018-04-03 14:01:02 +02:00
Edmund Hsu
04eaabf579
Fix EV_COG_AD3029LZ `us_ticker_fire_interrupt()` minimal time interval
...
- ensure us_ticker_irq_handler() is called only when GP2 timer expires
- set us_ticker_set_interrupt() time interval to be 9.846 us
- set us_ticker_fire_interrupt() time interval to be 0.03846 us
2018-04-01 19:35:05 +10:00
Edmund Hsu
ef6d93eca0
Fix EV_COG_AD4050LZ `us_ticker_fire_interrupt()` minimal time interval
...
- ensure us_ticker_irq_handler() is called only when GP2 timer expires
- set us_ticker_set_interrupt() time interval to be 9.846 us
- set us_ticker_fire_interrupt() time interval to be 0.03846 us
- convert tab to space
2018-04-01 19:34:24 +10:00
Mahesh Mahadevan
76c8a1bf7e
LPC546XX: Add TRNG support
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-03-30 14:12:39 -05:00
Cruz Monrreal
c8bd08f60e
Merge pull request #6043 from ithinuel/add-rak811
...
add support for the RAK811
2018-03-30 01:54:19 -05:00
Jimmy Brisson
eaa31dd66e
Merge pull request #6475 from SiliconLabs/feature/new/tickless
...
Enable tickless mode on Silicon Labs targets
2018-03-29 11:59:49 -05:00
Jimmy Brisson
897885909d
Merge pull request #6394 from OpenNuvoton/nuvoton_fix_ticker
...
Nuvoton: Fix us_ticker/lp_ticker
2018-03-29 11:58:53 -05:00
Jimmy Brisson
0615111785
Merge pull request #5902 from ganesh-ramachandran/master
...
Added Support for Toshiba TMPM46B
2018-03-29 11:58:14 -05:00
Ashok Rao
62e5dccd0b
Remove irrelevant comments
2018-03-29 16:52:03 +01:00
Ashok Rao
1df5c020b9
Adding USI WM-BN-BM-22 as a new target
2018-03-29 16:20:54 +01:00
Netanel Gonen
d925a04efb
remove MODULE_UBLOX_ODIN_W2 from targets.json
...
remove this target from json file as this is not a real target
but a parent target
fix error removing the target
2018-03-29 09:31:34 +03:00
Cruz Monrreal
f895392374
Merge pull request #6413 from toyowata/lpc1768_flash_fix
...
LPC176X: Fix flash program size
2018-03-29 00:49:22 -05:00
Cruz Monrreal
4797b53ac8
Merge pull request #6488 from SiliconLabs/bugfix/armcc_sp
...
Fix initial SP for new Silicon Labs targets on ARMCC
2018-03-29 00:41:44 -05:00
Keyur Hariya
da96c56d90
[MAX32620C] Add new target
2018-03-28 16:39:09 -05:00
Wilfried Chauveau
85af9f96ea
add IAR to the supported toolchain
2018-03-28 10:03:23 +01:00
Steven Cooreman
e487043c11
Set up the ISR stack pointer in the right location on ARMCC
...
EFR32MG1, EFR32MG12 and EFM32PG12 didn't have a fixed ARMCC linker script yet.
2018-03-27 23:03:49 +02:00
toyowata
3acdc81e6d
Add alignment check in the flash_program_page
...
* Add source address word alignment check
* malloc and memcpy are called only if data is unaligned
* malloc size is now copySize (program page size), rather than whole buffer to be written
2018-03-27 23:04:26 +09:00
Wilfried Chauveau
88a2df72e2
fix device name (an mixed tab/space)
2018-03-27 13:35:35 +01:00
Steven Cooreman
cbba94b2f4
Enable tickless mode on Silicon Labs targets
2018-03-27 12:44:53 +02:00
Mahesh Mahadevan
c3f8cac2e3
KL82Z: Fix the clock selection for LPUART module
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-03-27 02:52:20 -05:00
Cruz Monrreal
e9b234b876
Merge pull request #6424 from OpenNuvoton/m487_v3
...
Nuvoton: Support M487 v3.0 pin map
2018-03-26 14:26:32 -05:00
Cruz Monrreal
50773b1b75
Merge pull request #6440 from theotherjimmy/remove-supertarget
...
Remove supertarget
2018-03-26 14:21:53 -05:00
Wilfried Chauveau
c31676306a
switch to stm32l151cb-a & work around flash size field width.
2018-03-26 18:00:18 +01:00
Ganesh Ramachandran
a7d8eaed9e
Low power consumption mode for deepsleep
2018-03-26 15:43:21 +05:30
Ganesh Ramachandran
609441a361
Dynamic vector relocation and formatting changes
2018-03-26 15:39:05 +05:30
Ganesh Ramachandran
ee1bf13f54
CI build - case sensitive include header resolved
2018-03-26 15:39:05 +05:30
Ganesh Ramachandran
d7905ab81f
Modified ESG reset process
2018-03-26 15:39:05 +05:30
Ganesh Ramachandran
4e7e9e95a1
Added Support for Toshiba TMPM46B
2018-03-26 15:39:05 +05:30
Martin Kojtal
f4fc5e6fc3
Realtek: serial - line ending fix
...
One line had a window line ending
2018-03-26 08:50:32 +01:00
ccli8
707de87497
[Nuvoton] Refine SPI code
...
1. Remove dead code
2. Remove space in empty lines
3. Fix compile warnings
4. Fix some comments
2018-03-26 11:02:54 +08:00
ccli8
7275ee8626
[Nuvoton] Fix SPI DMA transfer
...
1. Disable unnecessary TX/RX threshold interrupts to avoid potential trap in DMA transfer
2. Start TX/RX DMA transfer simultaneously to fit H/W spec and avoid potential RX FIFO overflow issue
2018-03-26 10:58:18 +08:00
ccli8
9e72756878
[Nuvoton] Use vector rather than SPI_CTL_SPIEN_Msk to judge if asynchronous transfer is on-going (spi_active)
2018-03-26 10:50:14 +08:00
ccli8
643d772cf9
[Nuvoton] Introduce SPI_ENABLE_SYNC/SPI_DISABLE_SYNC to simplify enable/disable control
2018-03-26 10:34:22 +08:00
ccli8
ccec9d75d6
[Nuvoton] Add missing delay in lp_ticker
...
mbed-os-tests-mbed_drivers-lp_ticker/Test multi ticker test fails inconstantly.
This commit is mainly to fix the issue.
2018-03-26 09:45:59 +08:00
ccli8
5d453ed381
[Nuvoton] Check timer active flag after enabling timer counting in us_ticker/lp_ticker
2018-03-26 09:42:53 +08:00
ccli8
3cd8d3df9f
[Nuvoton] Remove unnecessary TIMER_Start in the end of lp_ticker_set_interrupt
2018-03-26 09:27:05 +08:00
Cruz Monrreal
cffa1c055e
Merge pull request #6437 from OpenNuvoton/nuvoton_fix_flash
...
Nuvoton: Fix NVSTORE test failed
2018-03-23 12:02:44 -05:00
Cruz Monrreal
26e1275589
Merge pull request #6415 from M-ichae-l/rtl8195am-fix-logUART-Tx-interrupt-crash-
...
rtl8195am: fix LogUART Tx interrupt crash
2018-03-23 10:06:36 -05:00
Jimmy Brisson
bac1f00e2e
Remove supertarget
2018-03-23 09:52:24 -05:00
Wilfried Chauveau
495f8e4e5b
add RF_TXCO_EN on PH1 and set HSI calibration to its default value
2018-03-23 10:19:49 +00:00
Wilfried Chauveau
758f3b2dbd
add support for the RAK811
2018-03-23 10:19:49 +00:00
Cruz Monrreal
7c272fa3e8
Merge pull request #6412 from jeromecoutant/PR_L4_ADC
...
STM32L4 ADC correct internal channel management
2018-03-22 11:27:50 -05:00
Cruz Monrreal
04a3635eba
Merge pull request #6399 from jeromecoutant/PR_L4_TEMP
...
STM32L4 ADC Internal Channel : correct sampling time
2018-03-22 11:27:30 -05:00
cyliangtw
efe57a00b4
[M487] Support v3.0 pin map
2018-03-22 20:09:09 +08:00
ccli8
f0865f8546
[Nuvoton] Fix page size in flash IAP
...
In Mbed OS, page size is program unit, which is different than FMC definition.
After fixing page size, we can pass NVSTORE test (mbed-os-features-nvstore-tests-nvstore-functionality).
2018-03-22 16:45:01 +08:00
Martin Kojtal
7b325f30a0
Merge pull request #6168 from hug-dev/cm3ds-memory
...
CM3DS Maintenance Pull Request: Memory changes (2/4)
2018-03-21 14:16:16 +01:00
Martin Kojtal
0f2659bdce
Merge pull request #6392 from OpenNuvoton/nuvoton_fix_uart
...
Nuvoton: Remove unnecessary UART INT in UART DMA transfer
2018-03-21 14:10:44 +01:00
zzw
2dc94b24d2
rtl8195am: fix LogUART Tx interrupt crash
...
add Mask & UnMask Tx FIFO empty interrupt for LogUart
fix LogUart interrupt enable
fix LogUart interrupt handler
coding style fix
2018-03-21 18:50:58 +08:00
jeromecoutant
ef006931f8
STM32L4 ADC correct internal channel management
2018-03-21 10:57:57 +01:00
toyowata
d76d511969
LPC176X: Fix flash program size
...
This patch fix flash write issue when program size is more than page size (= 1024 bytes). See detail - https://github.com/ARMmbed/mbed-os/issues/6165
Source data always use aligned data in heap memory.
2018-03-21 18:36:16 +09:00
Cruz Monrreal
2c7f909eea
Merge pull request #6245 from mbedNoobNinja/Sync_PR
...
Update for VK_RZ_A1H
2018-03-20 15:21:01 -05:00
Cruz Monrreal
6cb6dd9e62
Merge pull request #6330 from bcostm/fix_pins_nucleo_l433rc_p
...
NUCLEO_L433RC_P: fix pins definitions
2018-03-20 14:56:05 -05:00
Cruz Monrreal
d7dfab5c7e
Merge pull request #6370 from jeromecoutant/PR_LPT_RTC_OPTIM
...
STM32 LPTICKER : optimize RTC wake up timer init
2018-03-20 14:19:07 -05:00
jeromecoutant
6c369d17aa
STM32L4 ADC Internal Channel : correct sampling time
2018-03-20 13:15:17 +01:00
mbedNoobNinja
cf8fd20f9b
Enabled os5 support for VK_RZ_A1H & synced with rest Renesas targets !
...
Mbed-os 5.4.7 was the last unofficial working support for this target.
Since Mbed-os 5.6.0, the support is now official and VK_RZ_A1H is now "codebase aligned" with GR_PEACH (RZ_A1H) & GR_LYCHEE (RZ_A1LU) !
2018-03-20 11:49:03 +02:00
Cruz Monrreal
6659084d72
Merge pull request #6367 from li-ho/ev-cog-flash-api-fix
...
ADI: Fix on chip flash minimal programmable unit size
2018-03-19 11:19:17 -05:00
Cruz Monrreal
0adef8a959
Merge pull request #6379 from bcostm/dev_DISCO_L496AG
...
DISCO_L496AG: Add new platform
2018-03-19 11:18:27 -05:00
ccli8
7ed3bac85d
[Nuvoton] Remove unnecessary UART INT in UART DMA transfer
...
In UART DMA transfer, it is PDMA INT rather than UART INT to go INT path
2018-03-19 17:52:01 +08:00
Cruz Monrreal
1aa78d1e8c
Merge pull request #6326 from M-ichae-l/rtl8195am-gpio-toggle-slow-fix
...
rtl8195am : fix gpio toggle slow
2018-03-16 13:16:17 -05:00
Cruz Monrreal
05e72dc729
Merge pull request #6353 from jeromecoutant/PR_RTC_LSE
...
STM32 RTC init
2018-03-16 11:45:13 -05:00
Cruz Monrreal
02130a282e
Merge pull request #6346 from 0xc0170/fix_6252
...
Fix for #6252
2018-03-16 11:43:31 -05:00
bcostm
974917809d
DISCO_L496AG: remove morpho connector in targets.json
2018-03-16 10:02:12 +01:00
bcostm
f59f7581fb
DISCO_L496AG: add entry in mbed_rtx.h
2018-03-16 10:02:12 +01:00
bcostm
64a824abd2
DISCO_L496AG: add system clock file (same as Nucleo)
2018-03-16 10:02:12 +01:00
bcostm
5c484aaf3d
DISCO_L496AG: add platform in targets.json file
2018-03-16 10:02:12 +01:00
bcostm
ade8583044
DISCO_L496AG: add other pins related files
2018-03-16 10:02:11 +01:00
bcostm
63901a803c
DISCO_L496AG: remove QSPI2
...
Base adress not found in registers map file but found in CubeMX xml file.
2018-03-16 10:02:11 +01:00
bcostm
eab3e95158
DISCO_L496AG: add PeripheralPins.c
2018-03-16 10:02:11 +01:00
Cruz Monrreal
6eeee5e49f
Merge pull request #6292 from juhaylinen/rtw-fixes
...
rtl8195am - improve credentials handling
2018-03-15 10:57:39 -05:00
Cruz Monrreal
95fb33f041
Merge pull request #6198 from codeauroraforum/Add_LPC54XXX_Flash_Support
...
Flash support: Add flash support for LPC54114 & LPC546XX
2018-03-15 10:49:08 -05:00
Cruz Monrreal
69bc68d21f
Merge pull request #6288 from TomoYamanaka/master
...
Fix macro definition of iodefine_typedef for RZ_A1H
2018-03-15 10:48:02 -05:00
Cruz Monrreal
842a86ad7c
Merge pull request #6310 from codeauroraforum/Fix_K82F_I2C
...
MCUXpresso: Fix test failures seen with ci-test shield
2018-03-15 10:41:08 -05:00
Cruz Monrreal
872634d5fa
Merge pull request #6311 from hosse005/master
...
mts_mdot_f411re: Fix for Multi-Tech mDot IAR linker script
2018-03-15 10:40:18 -05:00
Cruz Monrreal
d05417a941
Merge pull request #6315 from amq/efm32_faster_gpio_irq
...
EFM32: make gpio interrupts faster by offloading expected pin state check to user
2018-03-15 10:39:29 -05:00
jeromecoutant
882f3312c3
STM32 LPTICKER : optimize RTC wake up timer init
...
Division in a while loop is removed
2018-03-15 14:23:57 +01:00
li-ho
b26b682902
Fix on chip flash minimal programmable unit size
...
- sector size is 0x800 bytes
- writeable unit size is 0x8 bytes
- flash start address is 0x0
- total ADuCM3029 on chip flash size is 0x40000 bytes
- total ADuCM4050 on chip flash size is 0x7F000 bytes
2018-03-15 16:50:06 +11:00
zzw
44ed2c8189
fix mbed-ci build error L6216E
...
fix mbed-ci build error L6216E
* (.ARM.exidx) and *(.init_array) must be placed explicitly, otherwise it is shared between two regions, and the linker is unable to decide where to place it.
2018-03-15 11:01:09 +08:00
Cruz Monrreal
5523d53f83
Merge pull request #6287 from codeauroraforum/Update_usticker
...
MCUXpresso_MCUS: Apply K64F us_ticker fix across all MCU's
2018-03-14 13:56:34 -05:00
jeromecoutant
2f86b3a7bb
STM32 RTC init
...
When LSE is configured for RTC, LSI is not affected
2018-03-14 11:12:29 +01:00
Martin Kojtal
d6a0a94010
WISE_1570: use hex as output
...
Fixes #6252 . Use hex rather than binary - use the hex format validation.
2018-03-13 13:52:11 +00:00
Martin Kojtal
dd84f32043
STM32L486: fix two ram region define for GCC ARM
...
Based on the changes for other targets, these 2 were left.
2018-03-13 13:51:59 +00:00
Amanda Butler
5a68dcd29d
Copy edit README.md
...
Copy edit for active voice, branding, spelling and other minor grammar fixes.
2018-03-12 16:25:05 +00:00
Amanda Butler
0ec844435d
Copy edit README.md
...
Copy edit for branding, consistent tense and consistent style.
2018-03-12 16:25:05 +00:00
Hugues de Valon
a453faa4e9
CM3DS: switch to larger memories for code and data
...
This patch changes the linker files and defines to use the ZBT SSRAM
instead of the FPGA Block RAM for code and data.
The section 4.1.1, Code and RAM memory map, of the CM3DS Eval RTL and
testbench user guide explains the available memories.
This switch improves code memory from 256 kB to 4 MB and data memory
from 128 kB to 4 MB.
However, the ZBT SSRAM1 for code memory begins at 0x00400000 while the
processor can only boot at address 0x00000000 which means that it
expects the vector table to be at that address. That is why we have to
create 2 load regions in the linker scripts: one with only the vector
table at address 0x0 and one with code + data at address 0x00400000.
Because of these two load regions, linker will produce different
behaviours:
* GCC_ARM and IAR will only create 1 binary with both load regions
padding with 0 in between. The binary will then be very large (at least
4 MB) and the flash process will take longer.
* ARM and ARMC6 will create 2 binaries for the two load regions. The
load addresses of the two binaries can be written in the images.txt file
on the MPS2 board. You can also use the --bincombined option of fromelf
utility to produce only 1 large binary.
This patch also adds the memory_zones.h file to try to put in common all
the memory addresses that were previously hard coded in the linker
scripts / startup files.
With that patch in, the simplest option is to directly use the .elf file
with the MPS2, which is only possible with mbb_v225.ebf and more recent
firmwares. It will now be the default for CM3DS.
This commit works with greentea thanks to the now merged pull request
ARMmbed/htrun#181 in order to copy .elf file to the MPS2 board.
Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
2018-03-12 16:25:05 +00:00
bcostm
8fe02803e1
NUCLEO_L433RC_P: fix LEDs pin assignment
2018-03-12 11:30:52 +01:00
Martin Kojtal
7917e12eb0
MIMXRT: define PullUp default value
...
This target defines few PullUp values, one should be defined to be PullUp that
an application can use. We use the same value as PullDefault
2018-03-12 09:21:24 +00:00
zzw
20b33637f6
rtl8195am : fix gpio toggle slow
...
Ameba has two memory blocks: SDRAM(2M) and SRAM(512KB). SRAM has better access performance than SDRAM. So some timing critical codes must be moved to SRAM.
fix for mbed-os issue #5778
rebase for #6289
2018-03-12 14:10:40 +08:00
amq
82ecf7e81a
Make gpio interrupts faster by offloading expected state check to user
2018-03-09 16:10:10 +01:00
Mahesh Mahadevan
5230bcaf6f
MCUXpresso: Update the I2C implmentation for byte read and write
...
1. Start function: Issue repeat start when bus is busy
2. Byte write function: Do not call SDK function as this does
not work for some of the Kinetis device
3. Byte read function: Do not call SDK function as this would
issue a START and STOP signal which is not required for
I2C byte functions
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-03-09 08:32:22 -06:00
Mahesh Mahadevan
53fa4e5fc4
MCUXpresso: Enable I2C SDA & SCL pins internal pullup resistors
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-03-09 08:18:21 -06:00
Mahesh Mahadevan
d29c12d233
K82F: Fix I2C test failures seen with ci-test shield
...
I2C3 clock define was missing. I2C3 is connected to the Arduino
connector which is used by the ci-test shield
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-03-09 08:04:54 -06:00
Evan Hosseini
94616e6396
mts_mdot_f411re: Fix for Multi-Tech mDot IAR linker script
2018-03-08 16:41:34 -06:00
Martin Kojtal
cf4c7a5d35
Merge pull request #6164 from ashok-rao/br-BL652
...
Adding Laird BL652 as new target
2018-03-08 17:45:01 +01:00
Martin Kojtal
4e7ad0dc95
Merge pull request #6226 from M-ichae-l/mbed-os_ci-test-fixed_rtl8195am
...
rtl8195am: fix ARM section error
2018-03-08 17:43:07 +01:00
Mahesh Mahadevan
3f302961e1
Flash support: Add flash support for LPC54114 & LPC546XX
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-03-07 13:06:41 -06:00
Mahesh Mahadevan
7ed36e4986
MCUXpresso_MCUS: Apply K64F us_ticker fix across all MCU's
...
Applied changes from commit b6a01de070
for other MCUXpresso MCUs
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-03-07 07:27:04 -06:00
Juha Ylinen
1a5e751d0f
rtl8195am - improve credentials handling
...
Add checks for empty strings
set_channel() not supported for STA mode wifi driver
2018-03-07 14:14:35 +02:00
TomoYamanaka
3183d21ba7
Fix macro definition of iodefine_typedef for RZ_A1H
...
Regarding RZ_A1H, Since I removed the macro definition accidentally in iodefine_typedef, I fixed the lack of it.
2018-03-07 20:33:11 +09:00
Cruz Monrreal
fb0eba4cd2
Merge pull request #6235 from gorazdko/lpc546xx-fixes
...
mcu_lpc546xx: move "release_versions" to children and fix clock
2018-03-06 20:41:56 -06:00
Cruz Monrreal
8a7b390fdd
Merge pull request #6102 from Ultimaker/master
...
Add support for STEVAL-3DP001V1 board
2018-03-06 20:41:41 -06:00
Cruz Monrreal
2e69ddd989
Merge pull request #6202 from maximmbed/fix-max32625mbed
...
Fix max32625mbed
2018-03-06 20:41:10 -06:00
Ashok Rao
008e937524
Incorporating review comments
2018-03-06 15:38:02 +00:00
Cruz Monrreal
1d3e59aa7c
Merge pull request #6275 from marcuschangarm/fix-uart-init
...
NRF52: Customize STDIO pins from config system
2018-03-06 08:19:21 -06:00
Marcus Chang
812b9be6d3
NRF5: Customize STDIO pins from config system
2018-03-05 10:12:18 -08:00
Cruz Monrreal
f1d493dd0c
Merge pull request #6228 from OpenNuvoton/nuvoton_1timer_ticker
...
Nuvoton: Rework us_ticker/lp_ticker with one H/W timer
2018-03-05 10:19:56 -06:00
Cruz Monrreal
38e62759a9
Merge pull request #6246 from u-blox/i2c_fix
...
C030 platform I2C initialisation fix
2018-03-05 10:12:57 -06:00
paul-szczepanek-arm
8347e76bf4
Merge https://github.com/ARMmbed/mbed-os
2018-03-01 18:11:41 +00:00
Rob Meades
c53fb9dc64
Call i2c_init() before i2c_frequency() (since i2c_frequency() requires the object to be set up) and zero the I2C object before giving it to i2c_init() as i2_init() has to set up a default frequency for its timeouts to work and it will only do this if the hz field in the object was zero to begin with (otherwise you end up with a random but usually very large indeed timeout).
2018-03-01 14:52:42 +00:00
Bartek Szatkowski
2b83b69f90
Remove conflictinng system_reset() from Atmel drivers
2018-02-28 20:02:24 +00:00
Bartek Szatkowski
4cb47df40a
Add system_reset() function to Mbed OS
2018-02-28 16:42:34 +00:00
Anna Bridge
8cc6d6cc92
Merge pull request #6227 from OpenNuvoton/nuvoton_compatible_pinName
...
Nuvoton: Add I2C & Serial Pin Name
2018-02-28 14:15:52 +00:00
gorazd
c053b70a75
lpc546xx and lpc54114: fix clock
2018-02-28 13:23:38 +01:00
gorazd
2f8b6dcaa9
mcu_lpc546xx: move "release_versions" to children
2018-02-28 13:16:01 +01:00
daid
62599a97f7
Add support for STEVAL-3DP001V1 board, which has an STM32F401VE chip. This support is based on the NUCLEO-F401RE board. Which has the same amount of flash/ram but less pins available on the chip.
2018-02-28 09:37:39 +01:00
Cruz Monrreal
1f58782652
Merge pull request #6189 from codeauroraforum/Update_LPC546XX_SDK2_3
...
LPC546XX: Update SDK driver to version 2.3
2018-02-27 16:13:48 -06:00
Cruz Monrreal
19e07e8d11
Merge pull request #6217 from jeromecoutant/PR_RTC
...
STM32 RTC : update free function
2018-02-27 15:40:11 -06:00
Cruz Monrreal
153fa05bea
Merge pull request #6172 from adustm/l4_linkergcc
...
Use SRAM2 32Kbytes on STM32L475 / L476 and L486 devices
2018-02-27 13:46:26 -06:00
Cruz Monrreal
21483cd59d
Merge pull request #6167 from hug-dev/cm3ds-bug-fix
...
CM3DS Maintenance Pull Request: Bug fixes (1/4)
2018-02-27 13:44:05 -06:00
paul-szczepanek-arm
8e41de2e25
Merge branch 'master' of https://github.com/paul-szczepanek-arm/mbed-os
2018-02-27 17:23:25 +00:00
jeromecoutant
961c8da51c
STM32F1 RTC : Date read after reset
...
F1 is the only STM32 family where RTC date is not saved into registers
2018-02-27 11:02:49 +01:00
jeromecoutant
45cbdc889f
STM32 RTC : update free function
...
- LSI specific implementation is removed
- Remove RTC clock disable
2018-02-27 10:45:43 +01:00
Cruz Monrreal
4139f13e31
Merge pull request #6170 from hug-dev/cm3ds-update-drivers
...
CM3DS Maintenance Pull Request: Driver updates (4/4)
2018-02-27 00:36:34 -06:00
Cruz Monrreal
815c6fb7cf
Merge pull request #6193 from ashok-rao/ODIN_PinsFix
...
ODIN MTB LEDs Fix
2018-02-26 22:49:03 -06:00
zzw
9d30469850
mbed-os_ci-test-fixed_rtl8195am
...
fix section error, ARM compiler uses IRAM1.bss to calculate the heap size
fix conflict of _memset between Ameba's library and ARM compiler's library, use standard memset() instead of _memset() in case of ARM compiler
2018-02-27 11:49:38 +08:00
cyliangtw
b6ff40e94d
[M451/M480/NANO100/NUC472] Define SERIAL and I2C pin name for compatiblity
2018-02-27 11:38:29 +08:00
Cruz Monrreal
3d37d819e9
Merge pull request #5046 from fkjagodzinski/timerevent_tests
...
TimerEvent tests
2018-02-26 15:02:52 -06:00
Cruz Monrreal
80263eaa41
Merge pull request #5957 from u-blox/R410M_Changes
...
C030 R410M Target Added
2018-02-26 15:02:12 -06:00
Keyur Hariya
390ba4070c
Replace enable/disable irq with critical section enter/exit
2018-02-26 12:35:07 -06:00
Cruz Monrreal
c9cefccbdc
Merge pull request #6116 from marcuschangarm/fix_trng_nrf52
...
Add TRNG for NRF52832
2018-02-26 12:09:43 -06:00
ccli8
1d7e7fd543
[NUC472/M453/M487/NANO130] Rework us_ticker and lp_ticker with one H/W timer
...
Originally, we use 2 H/W timers for us_ticker/lp_ticker, one for counting and the other for alarm.
With H/W timer running in continuous mode, we could use just one H/W timer for counting/alarm simultaneously.
2018-02-26 17:41:05 +08:00
Keyur Hariya
e6d901a852
Remove automatic I2C stop after each read
...
Automatic stop prevents sending repeated start.
2018-02-23 16:36:30 -06:00
Keyur Hariya
dcf3b904d1
Enable ADC scaling and enable internal channels
...
Increases input range by 2x(now, 0-2.4v)
2018-02-23 16:36:30 -06:00
Keyur Hariya
992c889b33
Improve us ticker performance
...
Improves accuracy during heavy work load.
2018-02-23 16:32:30 -06:00
Keyur Hariya
80b0ae0d9e
Improve SPI block write
...
Replace looping construct with actual block writes.
2018-02-23 16:32:12 -06:00
Keyur Hariya
8d778d5d8b
Fix missing serial object for interrupts
...
Save serial objects when setting interrupt requests.
Improve uart interrupt handler.
2018-02-23 16:25:20 -06:00
Ashok Rao
a5899db9e5
ODIN MTB LEDs Fix
2018-02-23 17:10:09 +00:00
adustm
d1e6e8f128
Allow jenkins script to pass
2018-02-23 17:40:09 +01:00
Mahesh Mahadevan
eff848abea
LPC546XX: Update SDK driver to version 2.3
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-02-23 07:31:13 -06:00
adustm
28a43b55e7
Add initial_sp value for STM32L476 and STM32L486 devices
2018-02-23 10:44:14 +01:00
adustm
67953251f9
Use official toolchain defines
2018-02-23 10:29:29 +01:00
Maciej Bocianski
cd539e3e38
us_ticker_irq_handler call optimization
2018-02-23 09:21:37 +01:00
Martin Kojtal
2661f6fe40
us ticker: fix fire interrupt handling
...
Few targets need more than just pending IRQ set. They include some flags to be
set that are checked in IRQ handler. This is the case for targets in this
commit.
2018-02-23 09:13:40 +01:00
Cruz Monrreal
ee64c9cf0b
Merge pull request #6021 from andrewleech/gpiote_uninit
...
nrf5x: fix array overflow in gpio configuration code
2018-02-22 21:21:35 -06:00
adustm
98657449b8
Use the TWO_RAM_REGIONS in targets.json for STM32L475 / STM32L476 and STM32L486 devices
2018-02-22 17:38:30 +01:00
adustm
815be94197
Add defined for GCC_ARM to pass heap and stack tests
2018-02-22 17:38:26 +01:00
adustm
f551255ded
Add support of separate memories for heap and stack region swith the use of TWO_RAM_REGIONS define
2018-02-22 17:37:34 +01:00
adustm
02b2b01a83
Change STM32L475/76/86 GCC_ARM linker files to have HEAP in SRAM1 and stack in SRAM2 (after the interrupt vector)
2018-02-22 17:36:27 +01:00
Mahesh Mahadevan
069c80b7a5
ff_lpc546xx: Add support for 220MHz core speed.
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-02-22 07:30:20 -06:00
Mahesh Mahadevan
a9cd4705d8
LPC546XX: Add support for 220MHz core speed available on LPC54628
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-02-22 07:30:19 -06:00
Ashok Rao
65f210288c
Adding Laird BL652 as new target
2018-02-22 11:49:58 +00:00
Marcus Chang
9439c191de
Add TRNG for NRF52832
...
Use SoftDevice API to get random numbers when present and active,
otherwise read random numbers directly from TRNG peripheral.
2018-02-21 12:06:12 -08:00
Avinash Mehta
a79a670575
CM3DS: update UART implementation
...
This commit adds the UART driver and updates the UART HAL implementation
to use this driver.
It also removes legacy definitions.
Change-Id: Ie8e7a7bb64c763a2d97bc66d949fab3596736bbc
Signed-off-by: Avinash Mehta <avinash.mehta@arm.com>
2018-02-21 18:21:22 +00:00
Tamas Kaman
37cf802a7a
CM3DS: update SPI implementation
...
This commit adds the SPI driver which is now called by the SPI HAL
implementation.
It also removes legacy definitions.
Change-Id: Iadb20dda9dfa571db3de66c3a1ce45d80d8b81b6
Signed-off-by: Tamas Kaman <tamas.kaman@arm.com>
2018-02-21 18:20:24 +00:00
Galanakis, Minos
3abc3faba2
CM3DS: update GPIO, IRQ and port implementation
...
This commit adds the GPIO drivers. The HAL implementations
(gpio_api.c, gpio_irq_api.c, port_api.c) now call these drivers.
Legacy definitions have been removed.
Serial HAL implementation has been changed to compile at this stage.
Change-Id: Ib76a3186358f5029ed350da671132e8aa11194f7
Signed-off-by: Galanakis, Minos <minos.galanakis@arm.com>
2018-02-21 18:17:55 +00:00
Galanakis, Minos
ffc7b91128
CM3DS: update tickers implementation
...
The HAL implementation (us_ticker.c and lp_ticker.c) now calls function
in cmsdk_ticker.c file. This file contains the necessary logic to be
able to only use one hardware timer (CMSDK timer) per mbed ticker.
This commit also updates the timer driver and removes legacy definition.
Change-Id: If40413822832117f9b78f38d2cdda7847284b035
Signed-off-by: Galanakis, Minos <minos.galanakis@arm.com>
Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
2018-02-21 18:12:55 +00:00
Hugues de Valon
ef7b16d9c5
CM3DS: fix non aligned access in Ethernet driver
...
This patch changes the way data is put in the TX_DATA_PORT register when
sending packet over Ethernet.
When this driver is compiled with release compilation profile
(space optimization compiler options) with Arm compiler version 5,
the line:
SMSC9220->TX_DATA_PORT = *pktptr;
generates the assembly instruction to get the pktptr pointed value:
LDM r2!, {r3}
with pktptr = r2
However, the code does not prevent the pktptr value from being unaligned
(to a 32 bits boundary) in that zone and the LDM instruction causes a
HardFault if this is the case. When the compiler option is not activated
(debug and develop compilation profiles), the compiler generates LDR
instruction instead which does not cause a HardFault.
The ARM v7-M states page B3-601: "Unaligned load-store multiples and
word or halfword exclusive accesses always fault."
To face that problem, we check if the data pointer is aligned or not. If
it is, we apply the same algorithm than before. If not, a local variable
is created and we copy in it, byte per byte, the contents at the
unaligned pointer. However, it will impact performances adding 8
instructions (one LD and one ST for each copied byte).
Change-Id: I11f6e82ce5521960d2ecf499f718f76fec29c0b0
Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
2018-02-21 17:54:12 +00:00
Cruz Monrreal
80082278b8
Merge pull request #6124 from marcuschangarm/nrf52_flash_fix
...
Make NRF52 flash work with SoftDevice
2018-02-20 13:31:45 -06:00
Cruz Monrreal
f2ff36b1e3
Merge pull request #6055 from mprse/ticker_k64f_set_interrupt_delta_fix
...
K64F lp ticker driver - calculation bug fix.
2018-02-20 13:18:58 -06:00
Cruz Monrreal
0368a8463f
Merge pull request #6041 from jeromecoutant/PR_STDIO_bug
...
STM32 STDIO pin redefinition
2018-02-20 13:13:44 -06:00
Cruz Monrreal
817f9a569c
Merge pull request #5812 from OpenNuvoton/nuvoton_crypto
...
M487: Support ECP H/W accelerator
2018-02-20 11:53:23 -06:00
Fahim Alavi
192250af87
Support added for R410M Changes
...
target added r410m
Spaces removed
Trace updated
2018-02-20 10:32:14 +05:00
Martin Kojtal
105da034a3
Merge pull request #6117 from u-blox/i2c_read_write
...
UBLOX C030: I2C avoid any RTOS waits
2018-02-19 17:16:59 +01:00
Bilal
8ebb234d51
Formatting change - II
2018-02-19 12:32:54 +05:00
Cruz Monrreal
0ceecb946d
Merge pull request #5956 from marcuschangarm/feature-hal-swo
...
[feature-hal-itm] Instrumented Trace Macrocell HAL API for SWO debug output
2018-02-16 16:08:12 -06:00
Cruz Monrreal
aa6835a069
Merge pull request #6048 from OpenNuvoton/nuvoton_ticker
...
Nuvoton: Rework us_ticker and lp_ticker
2018-02-16 15:59:05 -06:00
Marcus Chang
0a1cae9352
Make NRF52 flash work with SoftDevice
...
How you write and ersae the flash on the NRF52 changes depending on
whether the SoftDevice is enabled or not.
This change does a runtime check before erasing and writing, and
then chooses the correct function to perform the action.
2018-02-16 13:54:27 -08:00
Cruz Monrreal
659bcc3fb3
Merge pull request #6088 from pilotak/master
...
STM32F429ZI add SERIAL_ASYNCH
2018-02-16 11:52:15 -06:00
Cruz Monrreal
38b7ae0ef5
Merge pull request #6112 from jeromecoutant/PR_CUBE_UPDATE_F4
...
STM32F4: Update ST HAL driver with CubeF4 v1.19.0
2018-02-16 11:33:12 -06:00
Marcus Chang
954ae4a52a
itm_api.c implementation for Silicon Labs EFM32 series
...
SWO frequency: 875 kHz
2018-02-16 08:24:42 -08:00
Marcus Chang
6aa0975d71
itm_api.c implementation for Nordic NRF52 series
...
SWO frequency: 4000 kHz
2018-02-16 08:24:42 -08:00
Bilal
c91b61e03c
Formatting change
2018-02-16 17:20:10 +05:00
Bilal
46d84b7ebb
Replacing i2c_xxxx(...) calls to reduce binary size and avoid any RTOS waits
2018-02-16 15:24:50 +05:00
Cruz Monrreal
ec7a13de62
Merge pull request #6049 from OpenNuvoton/nuvoton_rtc
...
Nuvoton: Rework RTC
2018-02-15 14:51:27 -06:00
jeromecoutant
ea9c1f29a1
STM32F4 Cube v1.19.0 update : ST CMSIS files
...
Previous version was v1.16.0
2018-02-15 16:33:32 +01:00
jeromecoutant
0d8d3e01db
STM32F4 Cube v1.19.0 update : ST HAL files
...
Previous version was v1.16.0
2018-02-15 16:33:31 +01:00
jeromecoutant
4db8842604
STM32F4 Cube update : file name alignment
2018-02-15 16:33:30 +01:00
Kevin Bracey
984cc1ab50
Merge pull request #6032 from jarlamsa/status-callbacks
...
Status callbacks
2018-02-15 13:02:10 +02:00
Cruz Monrreal
ee52f9044a
Merge pull request #5892 from OSHChip/master
...
add OSHChip as an mbed target
2018-02-14 15:19:26 -06:00
Cruz Monrreal
8ed53a99fc
Merge pull request #6009 from prashantrar/mbed-os-serial-fix-pr
...
fix for issue "serial example callback not working"
2018-02-14 13:16:37 -06:00
Cruz Monrreal
5648b156e6
Merge pull request #6063 from bcostm/PULL_REQUEST_CUBE_UPDATE_F7_V1.10.0
...
STM32F7: Update ST HAL driver with CubeF7 v1.10.0
2018-02-14 12:41:37 -06:00
Pavel Slama
e5885f6a87
STM32F429ZI add SERIAL_ASYNCH
2018-02-13 22:47:56 +01:00
Cruz Monrreal
ccff46d9a3
Merge pull request #6070 from ithinuel/remove-magic
...
remove magic calibration value for HSI in ST's targets
2018-02-12 17:21:32 -06:00
Senthil Ramakrishnan
19ad4e2cb9
Fix MTB_MTS_XDOT build breakage
2018-02-12 12:02:21 -06:00
Senthil Ramakrishnan
96d900c99f
Fixes for targets with invalid HardFault_Handler implementation and review/other fixes
2018-02-12 11:50:33 -06:00
Wilfried Chauveau
d1a0ff9964
remove magic calibration value for HSI in ST's targets
2018-02-12 16:47:35 +00:00
Cruz Monrreal
84ee9cc7a1
Merge pull request #5941 from marcemmers/lpuart-use-lse
...
STM32L0/4 Enable use of LPUART in stop mode
2018-02-12 10:26:37 -06:00
Cruz Monrreal
c3e02b18b6
Merge pull request #6035 from ashok-rao/ODIN-serial_fix
...
Fix serial pins and a typo for ODIN MTB
2018-02-12 10:25:22 -06:00
Cruz Monrreal
75e6d97735
Merge pull request #6042 from jeromecoutant/PR_DISCO_F303
...
DISCO_F303VC : STDIO pins correction and alignment with STM32 family
2018-02-12 10:24:57 -06:00
jeromecoutant
be90983ca8
STM32 STDIO pin redefinition
...
wiki page https://os.mbed.com/teams/ST/wiki/STDIO updated
2018-02-12 13:01:33 +01:00
bcostm
118073a9c5
Add missing can legacy file
2018-02-12 10:37:03 +01:00
bcostm
58c4a5f83e
F7 ST CUBE V1.10.0
...
F7 HAL driver V1.2.5
2018-02-12 10:37:03 +01:00
ccli8
cfdc72d75e
[NUC472/M487] Refine crypto_zeroize/crypto_zeroize32
2018-02-12 14:04:56 +08:00
Przemyslaw Stekiel
b6a01de070
K64F lp ticker driver - calculation bug fix.
...
Delta calculation from lp_ticker_set_interrupt() function:
delta_us = timestamp > now_us ? timestamp - now_us : (uint32_t)((uint64_t)timestamp + 0xFFFFFFFF - now_us);
Lets assume that timestam == now_us.
Expected delta value should be 0 and in this current version is 0xFFFFFFFF.
The following condition:
timestamp > now_us
should have the following form:
timestamp >= now_us
Additionally modified us ticker driver to provide the same logic.
2018-02-09 14:29:24 +01:00
Andreas Larsson
67772a5e95
Added u-blox ODIN-W2 driver binaries v2.4 rc1
2018-02-09 12:54:47 +02:00
Prashant Ravi
011dbffff5
Fixing coding style
...
Fix Details: HAL API for loguart is different that UART. Initially we
didnt have support for loguart in the mbed api. These changes have been
made to support the loguart from the mbed api by using the correct HAL
api calls
2018-02-09 16:35:33 +08:00
TomoYamanaka
f6c6e79145
Fix NVIC Wrapper include
...
Renesas mbed boards incorporate NVIC Wrapper because Cortex-A9 use GIC. For example, NVIC_SystemReset() is defined in nvic_wrapper.c and declared in nvic_wrapper.h.
Because I removed one of include processing accidentally, I fixed the lack.
This supplements PR #5890 .
2018-02-09 11:53:43 +09:00
ccli8
0271df1fa5
[NUC472/M453/M487/NANO130] Rework RTC
...
The rework includes the following:
1. Support year range beyond H/W RTC 2000~2099.
2. Refine RTC register access with low-power clock source
2018-02-09 10:47:18 +08:00
Martin Kojtal
9f6eb14ae2
Merge pull request #5996 from ashok-rao/br-BL600
...
Adding LAIRD_BL600 MTB
2018-02-08 15:23:07 +00:00
Martin Kojtal
8e8b3d3bbd
Merge pull request #6036 from bcostm/dev_move_DISCO_L072CZ
...
DISCO_L072CZ_LRWAN1: move target folder
2018-02-08 15:19:08 +00:00
jeromecoutant
e0e6e5a9e5
DISCO_F303VC : Align clock configuration with STM32 family
2018-02-08 14:25:46 +01:00
jeromecoutant
e8e4af3c7a
DISCO_F303VC : add IAR files
2018-02-08 14:25:45 +01:00
jeromecoutant
1ab4030f20
DISCO_F303VC : wrong STDIO pins
2018-02-08 14:25:45 +01:00
Cruz Monrreal
1c5c1c79d0
Merge pull request #6027 from ithinuel/fix-target-names-for-murata-abz-and-adv-wise-1510
...
rename MURATA type ABZ & WISE 1510 to their expected name
2018-02-07 20:06:50 -06:00
Cruz Monrreal
f8cc42689c
Merge pull request #5970 from TomoYamanaka/master
...
RZ_A1LU: Fix TRNG function
2018-02-07 20:06:17 -06:00
Cruz Monrreal
1ac115d794
Merge pull request #6013 from kivaisan/add-wise-1570
...
Add MTB_ADV_WISE_1570 target
2018-02-07 20:05:38 -06:00
Cruz Monrreal
3b1438b9ba
Merge pull request #6015 from davidsaada/david_k82f_flash
...
Add missing flash device feature to the K82F board
2018-02-07 15:03:22 -06:00
Cruz Monrreal
63201db875
Merge pull request #6004 from bcostm/fix_l476-486_sram_iar
...
STM32L476/486: Improve SRAM usage for IAR
2018-02-07 14:51:30 -06:00
bcostm
7630874b9c
Move TARGET_DISCO_L072CZ_LRWAN1 folder
2018-02-07 16:23:09 +01:00
Ashok Rao
188a68829f
Fixed serial pins and a typo for ODIN MTB
2018-02-07 15:12:40 +00:00
ccli8
fae160fb9f
[NUC472/M453/M487/NANO130] Rework us_ticker and lp_ticker
...
The rework includes the following:
1. Remove ticker overflow handling because upper layer (mbed_ticker_api.c) has done with it.
This makes us_ticker/lp_ticker implementation more succinct and avoids potential error.
2. Refine timer register access with low-power clock source
2018-02-07 09:09:39 +08:00
Wilfried Chauveau
6c9fcf3dd8
rename MURATA type ABZ & WISE_1510 to their expected name
2018-02-06 21:23:37 +00:00
Cruz Monrreal
8ae80892b7
Merge pull request #5975 from ashok-rao/br-xDOT
...
Adding MTB_MTS_XDOT as a new target
2018-02-06 13:05:12 -06:00
Marc Emmers
7881e68efe
STM32L0: Enable stop mode operation for the LPUART
2018-02-06 15:42:39 +01:00
Marc Emmers
01660ff5ae
STM32L0/4: Always try to select LSE if LPUART and baudrate <= 9600
2018-02-06 15:42:39 +01:00
Ashok Rao
6c8b9b5005
Added MTB aliases & default SPI
2018-02-06 13:44:24 +00:00
gorazd
8593ca6f80
ff_lpc546xx: move property to parent
2018-02-06 11:51:47 +01:00
gorazd
d651e0800c
lpc546xx and ff_lpc546xx: create parent object MCU_LPC546XX
2018-02-06 11:48:47 +01:00
TomoYamanaka
412a79d444
[RZ_A1LU] Fix TRNG function
...
Related to the review of #5857 , I fixed the TRNG function for GR-LYCHEE.
- I modified to zeroize "recv_data" before the function return.
- I added the processing that check the return value of I2C.read function. If return value is error, "output" is zeroized before function return.
- In trng_get_bytes_esp32 function, there is a time lag in the period from ESP32 reset to start working, error may occur when "Write" is called. Thus, I added a retry counter due to address this concern. There is not this counter for "Read" since it is called after "Write".
2018-02-06 15:44:33 +09:00
drewcassidy
1fe0933138
move device_has to OSHCHIP specifically and define device name. These should probably move to the unified target at some point but is outside the scope of this PR
2018-02-05 21:23:26 -08:00
drewcassidy
b1199b088f
remove redundent 'targets.' in overrides
2018-02-05 21:15:21 -08:00
Andrew Leech
f639777dce
nrf5x: gpiote uninit only needs to be run if input pin is configured for irq (or output)
2018-02-06 12:51:03 +11:00
Cruz Monrreal
964e6e74fb
Merge pull request #5826 from codeauroraforum/Add_iMXRT_Support
...
NXP: Add support for MIMXRT1050_EVK
2018-02-05 10:15:17 -06:00
Cruz Monrreal
6a8a818ebf
Merge pull request #6012 from jeromecoutant/PR_SPI_FLUSH
...
STM32 SPI ASYNC - Add FIFO flush before transfer
2018-02-05 10:11:03 -06:00
David Saada
eb5b18bc13
Add missing flash device feature to the K82F board
2018-02-05 16:13:14 +02:00
Kimmo Vaisanen
4dad23a6a3
Add WISE-1570 external pin names
2018-02-05 14:47:52 +02:00
Kimmo Vaisanen
41490f48d0
Add MTB_ADV_WISE_1570 target
2018-02-05 14:31:20 +02:00
jeromecoutant
36c41186a6
STM32 SPI ASYNC - Add FIFO flush before transfer
2018-02-05 11:06:51 +01:00
jeromecoutant
703df3b6f9
STM32F7 SPI - add missing HAL files
...
ST_INTERNAL_REF 43358
2018-02-05 11:06:14 +01:00
Prashant Ravi
b89ef1f3a7
fix for serial issue #5805
2018-02-05 00:24:46 +08:00
Cruz Monrreal
fc748f0943
Added LED2 definition for compilation of tests
2018-02-02 21:06:24 -06:00
Cruz Monrreal
1e794393e5
Merge pull request #5972 from bcostm/dev_BL_STM32F7
...
STM32F7: Add bootloader support (new trial)
2018-02-02 10:05:49 -06:00
bcostm
937db051da
STM32L476/486: change SRAM config for IAR
2018-02-02 10:23:28 +01:00
Cruz Monrreal
670c62c12a
Merge pull request #5984 from amq/efm32-peripherals
...
EFM32: make peripherals conditional
2018-02-01 14:27:08 -06:00
Ashok Rao
2e9c3340de
Adding LAIRD_BL600 MTB
2018-02-01 17:21:37 +00:00
Cruz Monrreal
f907012e55
Merge pull request #5962 from bcostm/fix_usart_irq_index
...
STM32: Fix usart irq index
2018-01-31 12:16:17 -06:00
Cruz Monrreal
097966b8c7
Merge pull request #5905 from ithinuel/add-CMWX1ZZABZ-078-support
...
add support for the murata's module CMWX1ZZABZ-078 based on STM32L0
2018-01-31 12:14:29 -06:00
amq
fdc2274720
EFM32: make peripherals conditional
...
* MCUs within a family like EFM32GG can omit some peripherals, e.g. EFM32GG230 doesn't have UART
* This commit adds a check to make them compilable, relevant mainly for custom boards
2018-01-31 17:35:26 +00:00
Wilfried Chauveau
3608627a48
fix a silent conflict with PR #5947
2018-01-31 00:48:40 +00:00
Cruz Monrreal
b87e98c57b
Merge pull request #5904 from ithinuel/add-wise-1510
...
add support for STM32L443RC & WISE-1510
2018-01-30 15:01:00 -06:00
Cruz Monrreal
fff6c75e28
Merge pull request #5936 from jeromecoutant/PR_WEAK_PINMAP
...
STM32 : set all PinMap structures as weak
2018-01-30 14:56:42 -06:00
Cruz Monrreal
b08e1b3078
Merge pull request #5837 from ashok-rao/br-ublox-NINA
...
Adding MTB ublox NINA-B1 as a new target
2018-01-30 14:55:43 -06:00
Cruz Monrreal
10e67e659c
Merge pull request #5947 from jeromecoutant/PR_L4_PLUART
...
STM32L4 : add missing ST HAL UART functions
2018-01-30 14:46:15 -06:00
Ashok Rao
ba932700d9
Adding MTB_MTS_XDOT as a new target
2018-01-30 17:48:45 +00:00
bcostm
6e71398e3c
STM32F7: move cache initialization
2018-01-30 14:01:50 +01:00
bcostm
eb4b339c37
STM32 serial: add missing function declaration
2018-01-30 09:48:53 +01:00
bcostm
b6efdd58c8
STM32 serial: improve index assignment in serial_init
2018-01-29 17:23:21 +01:00
bcostm
e8454ff522
STM32 serial: improve irq index management for L0 devices
2018-01-29 17:23:21 +01:00
bcostm
78a5516726
STM32 serial: improve irq index management for F0 devices
2018-01-29 17:23:21 +01:00
bcostm
84269c7ca2
STM32 serial: improve irq index management for L4 devices
2018-01-29 17:23:21 +01:00
bcostm
665d4a8003
STM32 serial: improve irq index management for L1 devices
2018-01-29 17:23:21 +01:00
bcostm
689e15cf29
STM32 serial: improve irq index management for F7 devices
2018-01-29 17:23:21 +01:00
bcostm
eeb4d2cd1d
STM32 serial: improve irq index management for F3 devices
2018-01-29 17:23:21 +01:00
bcostm
1fa0557dbf
STM32 serial: improve irq index management for F2 devices
2018-01-29 17:23:21 +01:00
bcostm
6974da239c
STM32 serial: improve irq index management for F1 devices
2018-01-29 17:23:20 +01:00
bcostm
2305db6c98
STM32 serial: use uart_name in serial_irq_set function for F4
2018-01-29 17:23:20 +01:00
bcostm
a908d28f26
STM32 serial: coding style
2018-01-29 17:23:20 +01:00
bcostm
73ffc06ffd
STM32 serial: fix linking error
2018-01-29 17:23:20 +01:00
bcostm
e446c26584
STM32 serial: use uart_name instead of uart_base
2018-01-29 17:23:20 +01:00
bcostm
7256af0d5b
STM32 serial: change serial_get_irq_n function for F4 devices
2018-01-29 17:23:20 +01:00
bcostm
172c02a856
STM32 serial: use get_uart_index function for F4 devices
2018-01-29 17:23:20 +01:00
bcostm
066da18e0d
STM32 serial: add get_uart_index utility function
2018-01-29 17:23:20 +01:00
bcostm
0efd33f010
STM32 serial: move init_uart function at the end of file
2018-01-29 17:23:20 +01:00
Cruz Monrreal
ebc8adbd4f
Merge pull request #5951 from jeromecoutant/PR_STDIO2
...
STM32 NUCLEO F413ZH and L433RC : STDIO configuration
2018-01-29 10:09:19 -06:00
bcostm
8ed0f26d80
Check cache before enabling it
...
The mbed_sdk_init can be called either during cold boot or during
application boot after bootloader has been executed.
In case the bootloader has already enabled the cache,
is is needed to not enable it again.
2018-01-29 16:04:46 +01:00
bcostm
5ad0887d7e
NUCLEO_F767ZI: Add bootloader support
2018-01-29 15:53:44 +01:00
bcostm
e933971f92
BL NUCLEO_F746ZG: change scb->vector assignment
2018-01-29 15:53:24 +01:00
bcostm
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