Commit Graph

4487 Commits (e7e9e0734ccf015ceb1ed519b34a9bae8c38235e)

Author SHA1 Message Date
Mahesh Mahadevan 12c6b1bd88 MIMXRT1050EVK: Add ENET support
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-11-14 07:13:07 -06:00
Bence Kaposzta ee7cefc868 Add RTC and Sleep to CM3DS
This commit represents the second stage of the low power implementations
that are required from Mbed 5.10 onwards. Besides the default hal
implementations (rtc_api.c and sleep.c), the PL031 RTC's native driver
needed to be added. Due to HW limitations in SSE-050 and the CM3DS,
Deep Sleep couldn't be implemented, therefore it is functionally
identical to Sleep (WFI).

Change-Id: Ibed2bdb452f48c98024dc7ef07fb51a4425e0a80
Signed-off-by: Bence Kaposzta <bence.kaposzta@arm.com>
2018-11-14 11:10:26 +01:00
Bence Kaposzta 1b792317e4 Implement LP and us tickers to CM3DS
This commit represents the first stage of the low power implementations
that are required from Mbed 5.10 onwards. The LP ticker has been
implemented using a CMSDK Dual Timer's both timers (HW prescaler needed
to operate in the specified frequency domain), whereas the us ticker
uses one CMSDK Timer. Besides the default hal implementations (lp_ticker.c
and us_ticker.c), the CMSDK Dual Timer's native driver needed to be added.

Change-Id: I0b16b93dfac7753bebf430a2ce77761cb9c43ee5
Signed-off-by: Bence Kaposzta <bence.kaposzta@arm.com>
2018-11-14 11:10:09 +01:00
Oren Cohen 4091a4c8c7 Add PSA build components to build configuration for non-PSA targets
* Added PSA components to base Target in targets.json
* Fix all targets declaring components
2018-11-14 10:40:37 +02:00
Cruz Monrreal II 798ffd0d5a Merge branch 'fm_flash' of ssh://github.com/jamesbeyond/mbed-os into rollup 2018-11-13 17:26:48 -06:00
Cruz Monrreal II 0499ee2783 Merge branch 'erase_flash_fix' of ssh://github.com/deepikabhavnani/mbed-os into rollup 2018-11-13 17:26:47 -06:00
Teppo Järvelin 1b3db96634 Cellular: Added missing MDMRTS and MDMCTS for TARGET_MTB_ADV_WISE_1570. 2018-11-13 09:06:40 +02:00
Yoshihiro TSUBOI cd2a5835f8 fixed year and added SPDX identifier 2018-11-13 00:03:02 +09:00
Steve Cartmell 4551d94072 Format targets.json to put the items of large lists on their own line 2018-11-12 13:57:40 +00:00
Yoshihiro TSUBOI 222b21e593 [Wio BG96] Adding platform HAL 2018-11-11 23:32:22 +09:00
shileiyu 627064297e New target UNO_91H from RDA Microelectronics. 2018-11-10 18:15:26 +08:00
Deepika 4e7cbd4d4c Add library and secure application for FlashIAP change 2018-11-09 15:12:25 -06:00
Deepika 049b5f533f Revert flash_get_value for M2351 done in PR#8589
`flash_get_erase_value` is added in hal/TARGET_FLASH_CMSIS_ALGO/flash_common_algo.c
duplicate copy of same function in targets/TARGET_NUVOTON/TARGET_M2351/flash_api.c
resulted in build issues with secure build
2018-11-09 14:17:49 -06:00
Cruz Monrreal II 0803c04d7d Merge branch 'PR_LL_GPIO' of ssh://github.com/jeromecoutant/mbed into rollup 2018-11-09 11:40:29 -06:00
Cruz Monrreal II 143a976d5d Merge branch 'stm32f407vg-flash' of ssh://github.com/productize/mbed-os into rollup 2018-11-09 11:40:28 -06:00
Qinghao Shi f7ff09d243 fix bug set a correct page size 2018-11-09 15:29:36 +00:00
Cruz Monrreal 44ee9a7af7
Merge pull request #8686 from cmonr/rollup
Rollup PR:
2018-11-09 09:14:49 -06:00
Martin Kojtal 662b744c89
Merge pull request #8324 from ganesh-ramachandran/m3hq_new_target
Add Support for TOSHIBA TMPM3HQ
2018-11-09 09:45:52 +01:00
Cruz Monrreal II b353136da1 Merge branch 'Fix_LPC_Flash_Driver' of ssh://github.com/NXPmicro/mbed into rollup 2018-11-08 13:24:26 -06:00
Cruz Monrreal II a2bdc44eee Merge branch 'fm_sdk' of ssh://github.com/jamesbeyond/mbed-os into rollup 2018-11-08 13:24:16 -06:00
Cruz Monrreal II 20fc4da5df Merge branch 'KW41Z_Add_Bootloader-Support' of ssh://github.com/NXPmicro/mbed into rollup 2018-11-08 13:24:10 -06:00
Cruz Monrreal II 6b386f5237 Merge branch 'update_peripheral_pins' of ssh://github.com/MultiTechSystems/mbed into rollup 2018-11-08 13:24:07 -06:00
Adam Heinrich 02ea9ce746 STM32F407VG: Add FLASH support 2018-11-08 17:32:39 +01:00
jeromecoutant 4cf4cf1375 STM32 GPIO : code cleaning 2018-11-08 17:26:17 +01:00
Martin Kojtal 0217f69511 Merge branch 'cm3ds_emac' of git://github.com/kapi90/mbed-os into dev_rollup 2018-11-08 09:21:38 +00:00
David Saada 542744d03c Support erase value in Flash HAL drivers, FlashIAP and block devices 2018-11-07 14:23:07 +02:00
Qinghao Shi 97ac4bb6ce Cosmetic coding changes of remove white space 2018-11-06 22:14:18 +00:00
Qinghao Shi be9e75cc47 update GCC startup script to align with armcc and iar 2018-11-06 22:11:09 +00:00
Mahesh Mahadevan 76930c0979 KW41Z: Add Bootloader support
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-11-06 12:03:26 -06:00
Leon Lindenfelser a360b0012f Update peripheral pins
1. Add missing SPI and I2C pins.
2. Remove pin definitions for pins that are no connects.
2018-11-06 08:46:38 -06:00
Ganesh Ramachandran ac7bb55105 Updated license header 2018-11-05 19:54:17 +05:30
Ganesh Ramachandran 4cbdfb380f Added MBED_APP_START and SPI pin definitions 2018-11-05 19:54:17 +05:30
Ganesh Ramachandran 7d93fb4c15 Added Support for TOSHIBA TMPM3HQ 2018-11-05 19:54:16 +05:30
Leszek Rusinowicz 6203d04630 Removed "intermediate" PSOC6 targets from buildable target list. 2018-11-02 01:15:21 +01:00
Leszek Rusinowicz 8f528277fd Added missing README files for Cypress PDL library.
hex files subfolder moved up one level to avoid license confusion.
Removed non-TLS implementation of TRNG. Removed unused crypto libraries and headers.
Replaced Cypress copyright licence per agreement.
Removed unsed eeprom emulation middleware files.
Renamed assembler files from *.s to *.S
Removed "device_name" from targets.json definitions as it is not supoprted yet.
2018-11-01 22:16:16 +01:00
Leszek Rusinowicz 7d322dcd41 Simplified M0/M4 binary merging functionality. Now, M0 binary image to be used has to be explicitely named in a json file (can be ovverriden in mbed_app.json).
Exporter hooks removed completely.
Cleanup and improvements to the comments, including removal of the redundant doxygen comments.
Code run through astyle. Additionally:
 - changes to drivers/Timer.cpp reverted
 - ipcpipe_transport.* files removed as they are not used for now,
 - fixed condition in stdio_init.cpp to perform serial initialization only when STDIO is enabled,
 - added missing resurce manager call in PWM initialization,
 - us_ticker initialization changed to use pre-reserved clock divider (to avoid resource manager call).
Changed reporting level from info to debug in PSOC6.py.
Added missing includes for function declarations in startup files.
Fixed (removed) garbadge text in psoc6_utils.c
Precompiled binaries updated for recent changes in psoc6_utils.c and moved to a separate folder; README and LICENSE files added.
2018-11-01 22:14:06 +01:00
Leszek Rusinowicz 9b1db83eaa Added required changes outside of TARGET_Cypress tree:
1. In drivers/Timer.cpp make sure that hardware timer is initialized outside of critical section.
   This is because on PSoC 6 hardware resources are shared between both cores
   and we have to make sure that the other core is not already using a particular resource.
   This mechanism is based on interprocessor communication taht cannot be handled iside of
   critical section.
2. Added support for post-binary hook function for PSoC 6 targets, so the hex image for M0+ CPU core
   can be merged with M4 core image for the final image.
3. Added possibility to use hook function from exportes, so the M0+ hex image could be included
   in the generated project.
4. Included hex images in the build dependency list, so the update of image is catched by the
   build process.
2018-11-01 20:19:21 +01:00
Leszek Rusinowicz f906aac096 Added BLE support based on CORDIO stack. 2018-11-01 20:15:57 +01:00
Leszek Rusinowicz d37026d063 Updated TARGET_Cypress sub-tree for FUTURE_SEQUANA target:
1. Complete set of HAL drivers for all peripherals of CY8C63xx PSoC chips.
2. Cypress PDL library updated to official 3.0.1 version.
3. Tree structure reorganized and cleaned up:
 + TARGET_Cypress
 +--+ TARGET_PSOC6+                  -> code & libs applicable to all PSoC 6 based devices
    +--+ TARGET_CY86XX               -> code & libs applicable to PSoC 63 based devices
    |  +--- TARGET_MCU_PSOC6_M0      -> code & libs applicable to PSoC6 Corted M0+ core
    |  +--- TARGET_MCU_PSOC6_M4      -> code & libs applicable to PSoC6 Corted M0F core
    |
    +--+ TARGET_FUTURE_SEQUANA       -> code applicable to Sequana board, both cores
       +--- TARGET_FUTURE_SEQUANA_M0 -> code applicable only to M0+ core on Sequana board
2018-11-01 20:15:56 +01:00
Leszek Rusinowicz ec22815fee Initial version with support for PSoC 6 CY8C63XX and both cores using updated PDL 3.0.1 beta. 2018-11-01 20:15:52 +01:00
Adrien Chardon 2c533d4693 Initial support for PSoC 6. 2018-11-01 20:15:51 +01:00
bcostm 38a5f1e0f7 DISCO_F769NI: enable bootloader in targets.json 2018-10-31 10:15:17 +01:00
bcostm 3e547e2101 DISCO_F769NI: add definitions for bootloader 2018-10-31 10:15:17 +01:00
Cruz Monrreal 1bbcfff8f3
Merge pull request #8566 from u-blox/github8520issue
Wifi: ublox fix to keep the credentials stored
2018-10-30 08:47:58 -05:00
Bence Kaposzta 9e6b1246a4 This commit adds EMAC driver for CM3DS that uses an SMSC LAN 9220
Ethernet controller. To ensure proper operation, some methods
needed to be updated in the SMSC9220's native driver as well.
It passes all related Greentea tests, however when supervised by
the Python environment it tends to fail because of Timeout.

The current timeout is set to 1200s that seems to be a little bit short
to finish all test cases, the timeout happens towards the end of the
last test case.

Change-Id: I914608c34828b493a80e133cd132537a297bfc84
Signed-off-by: Bence Kaposzta <bence.kaposzta@arm.com>
2018-10-29 15:30:47 +01:00
Cruz Monrreal 503066a736
Merge pull request #8559 from productize/stm32f407vg-rng
STM32F407VG: Add TRNG support
2018-10-29 08:50:43 -05:00
Ammad Rehmat 74ce0b78a4 fixes the credentials storage, copies them internally rather than just a pointer to external storage 2018-10-29 17:32:41 +05:00
Cruz Monrreal 870c3bce59
Merge pull request #8554 from bcostm/l4R5zi_data_alignment
NUCLEO_L4R5ZI: Fix alignment of execute region to 8byte boundary
2018-10-27 18:30:57 -05:00
Cruz Monrreal 63946d56d8
Merge pull request #8452 from u-blox/ublox_odin_driver_os_5_v3.5.0_rc1
ble: update ODIN drivers to v3.5.0 RC1
2018-10-27 09:50:12 -05:00
Cruz Monrreal 01f864eb13
Merge pull request #8553 from bcostm/F413ZH_bootloader
STM32F413ZH: Add bootloader support
2018-10-27 09:22:41 -05:00
Cruz Monrreal 4798a91f2e
Merge pull request #8223 from c1728p9/deep_sleep_wakeup_fix
Improve RTOS behavior with deep sleep
2018-10-27 08:45:33 -05:00
Cruz Monrreal a5b757312d
Merge pull request #8292 from marcuschangarm/fix_flow
Fix hardware flow control on NRF52 series
2018-10-26 15:44:52 -05:00
Adam Heinrich 28a01aeb29 STM32F407VG: Add TRNG support 2018-10-26 17:01:33 +02:00
bcostm 8560e47c31 STM32F413ZH: fix wrong flash size for ARM compiler 2018-10-26 14:16:18 +02:00
bcostm 66ab546200 NUCLEO_L4R5ZI: fix 8-bytes data alignment 2018-10-26 10:58:00 +02:00
bcostm 468e1b8334 STM32F413ZH: enable bootloader in targets.json 2018-10-26 10:31:35 +02:00
bcostm 61b3270835 STM32F413ZH: add defines for bootloader 2018-10-26 10:31:11 +02:00
Marcus Chang ab04ff1219 Remove debug flow control from NRF52_DK and NRF52840_DK
Currently flow control is not supported by the CI and enabling it
causes unwanted side effects.
2018-10-25 12:24:48 -07:00
Yossi Levy d9a84c42cf Remove SPI_PERSISTENT_MEM_CS macro and replace it with SPI_CS 2018-10-25 12:10:48 +03:00
Cruz Monrreal 140f3e20d6
Merge pull request #8508 from micgur01/master
Update linker scripts for bootloader target L496GZ
2018-10-24 19:08:41 -05:00
Cruz Monrreal dd2d9ee4be
Merge pull request #8319 from c1728p9/checksum_546xx_vector_table
Checksum the vector table of the LPC546XX
2018-10-24 19:08:22 -05:00
Marcus Chang 1ad3b49599 Fix hardware flow control on NRF52 series
Due to buggy flow control logic in the UARTE, the stop signal
is not being set as it is supposed to when the the module is
not ready to receive data.

This commit signals the sender to halt transmitting when a DMA
buffer is full and only continue again when the atomic FIFO
buffer has been emptied. This allows platforms with hardware
flow control to minimize all buffers and rely on flow control
instead.
2018-10-24 13:11:12 -07:00
Russ Butler 50316d00bd Improve RTOS behavior with deep sleep
Only deep sleep when the wakeup time is more than
MBED_CONF_TARGET_DEEP_SLEEP_LATENCY ms in the future.
This ensures that RTOS events are handled at the correct time. Note -
when deep sleep is allow interrupt latency may still be as high as
10ms.
2018-10-24 15:02:56 -05:00
Mahesh Mahadevan 48d4a45345 MCUXpresso: Update LPC Flash driver program page function
Handle the case where the number of bytes to write is not aligned
to page size

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-10-24 08:20:00 -05:00
micgur01 6c191c0241 code review for Update linker scripts for bootloader target L496GZ 2018-10-24 11:17:56 +00:00
micgur01 2215a9ab5e code review for Update linker scripts for bootloader target L496GZ 2018-10-24 09:48:05 +00:00
Martin Kojtal 5b25b6643d
Merge pull request #8478 from JarkkoPaso/fhss_timer_dev
Fhss timer dev
2018-10-24 09:43:13 +01:00
Martin Kojtal ab6429f4af
Merge pull request #8474 from naveenkaje/NRF_RTS_Followon_Fix
NRF52 : Fix UART RTS initialization
2018-10-24 09:40:00 +01:00
Russ Butler 06c825fb83 Checksum the vector table of the LPC54XXX
LPC devices require a checksummed vector table to boot. To ensure
this most programmers automatically compute the checksum when
programming flash. This causes problems with verification if the
original image does not have a checksummed vector table. This is because
when reading the data back the checksum location differs from the
original image.

To fix this verification failure this patch adds a post build hook to
checksum the vector table of the LPC54XXX. This fixes flash
verification failures due to the checksum not matching.
2018-10-23 13:54:04 -05:00
Cruz Monrreal 0db896036c
Merge pull request #8485 from NXPmicro/feature-qspi-kinetis
Feature qspi kinetis
2018-10-23 12:38:11 -05:00
Cruz Monrreal 41bffe1c87
Merge pull request #8352 from offirko/offir-mbed-qspif
QSPI SFDP Flash Block Device
2018-10-23 10:48:28 -05:00
Naveen Kaje 7beb8d3f4b NRF52 : Fix UART RTS initialization
The preprocessor based macro check #if evaluates all
enums as 0 and hence the code does not get compiled.
Since move this to a runtime check where the pin variable
can be correctly evaluated.

Delete mbed_overrides.c as it has a target specific mbed_sdk_init() to
resolve linking problem.

This is a follow on patch to:
https://github.com/ARMmbed/mbed-os/pull/8046
2018-10-23 09:44:06 -05:00
Cruz Monrreal 5bf901b3a4
Merge pull request #8493 from jeromecoutant/PR_PREDIVS
STM32 RTC : Prescaler macro issue
2018-10-23 09:08:46 -05:00
micgur01 534883046d change mode to 664 2018-10-23 12:58:52 +00:00
micgur01 ff4b567537 Update linker scripts for bootloader for L496GZ 2018-10-23 12:57:05 +00:00
Jarkko Paso de2fce2104 LPC408X: Cstack size reduced from 8K to 1K with IAR 2018-10-23 15:09:12 +03:00
Cruz Monrreal 93c5573b4d
Merge pull request #8486 from NXPmicro/Update_LPC546XX_Core_Freq
LPC54608: Raise the core freq on LPC54608 targets
2018-10-22 11:43:13 -05:00
Cruz Monrreal 353e8bd0b0
Merge pull request #8348 from maclobdell/add-k66-default-sd-storage-master
Add K66F default sd storage
2018-10-22 11:31:12 -05:00
jeromecoutant a9552232e4 STM32 RTC : Prescaler calculation issue 2018-10-22 15:58:32 +02:00
Offir Kochalsky 638951aa86 Merge remote-tracking branch 'upstream/master' into offir-mbed-qspif 2018-10-21 08:51:49 +03:00
Mahesh Mahadevan 118bde5a14 LPC54608: Raise the core freq on LPC54608 targets
This is incorrectly set to a lower value

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-10-19 12:49:28 -05:00
Cruz Monrreal e942582045
Merge pull request #8454 from ashok-rao/br-BL654-new
Adding Laird BL654 as a new MTB target
2018-10-18 17:03:22 -05:00
Cruz Monrreal 3d859ca1d6
Merge pull request #8272 from NXPmicro/Ensure_RTC_OSC_Start
MCUXpresso: Ensure the RTC OSC is running at bootup on Kinetis platforms
2018-10-18 15:16:13 -05:00
Mahesh Mahadevan 9dc3f8c19a KL82Z FRDM: Update the KL82Z Freedom board for QSPI
Add the QSPI pin defines, clock information and flash details

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-10-18 12:14:27 -05:00
Mahesh Mahadevan 858e536f1a K82F FRDM: Update the K82F Freedom board for QSPI
Add the QSPI pin defines, clock information and flash details

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-10-18 12:14:26 -05:00
Mahesh Mahadevan 9f64e46de2 K82F, KL82Z: Update register access mode for QSPI IPCR register
Add 16-bit access mode when writing the transfer size to prevent
the QSPI transaction from starting

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-10-18 12:14:26 -05:00
Mahesh Mahadevan 3bd6235032 K82F, KL82Z: Update the QSPI SDK driver to the latest version
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-10-18 12:14:25 -05:00
Mahesh Mahadevan 6b1bef26f6 QSPI: Remove QSPI from UBRIDGE and USENSE target
This needs a device specific file

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-10-18 12:14:24 -05:00
Mahesh Mahadevan e28fb7466b MCUXpresso: Add the QSPI HAL driver
This should support QSPI on Kinetis devices

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-10-18 12:14:23 -05:00
Cruz Monrreal 8a5b9ff893
Merge pull request #8400 from AdamZhang0124/realtek-rtl8195am-usticker-patch
This PR retrieves the TimerSync function to fix the lockup issue
2018-10-18 11:00:56 -05:00
Mahesh Mahadevan ebf31c67f0 MCUXpresso: Ensure the RTC OSC is running at bootup on Kinetis platforms
This is a fix for Issue 5348.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-10-18 08:55:48 -05:00
Cruz Monrreal c9adf3cef4
Merge pull request #8307 from NXPmicro/Add-Support_RapidIoT
Add support for RapidIoT
2018-10-18 08:15:07 -05:00
Ashok Rao bee4429487 QSPI pins added 2018-10-18 11:30:11 +01:00
Mac Lobdell 099654c661
Ensure storage feature is not added to K66F 2018-10-17 07:42:50 -07:00
Ashok Rao 06a5b1e76a Addressing comments w.r.t alignments 2018-10-17 15:36:13 +01:00
Ashok Rao 6f720e86a1 Adding Laird BL654 as a new MTB target 2018-10-17 14:47:17 +01:00
Cruz Monrreal c37dc5fea8
Merge pull request #8425 from OpenNuvoton/nuvoton_m487_fix_button
M487: Fix SW2/SW3 interchange error in NUMAKER_IOT_M487
2018-10-17 08:35:46 -05:00
Cruz Monrreal 2daab38194
Merge pull request #8302 from JanneKiiskila/wait_ms
Use wait_ms(int) instead of wait(float)
2018-10-17 08:34:47 -05:00
aqin 2ac6cff107 BLE support added 2018-10-17 14:19:14 +05:00
Cruz Monrreal 00e3064f58
Merge pull request #8437 from NXPmicro/Fix_TRNG_HAL
MCUXpresso: Fix for the TRNG HAL driver
2018-10-16 16:19:49 -05:00
Cruz Monrreal af19a395e0
Merge pull request #7923 from ganesh-ramachandran/master
Add Support for Toshiba TMPM4G9
2018-10-16 12:52:19 -05:00
Cruz Monrreal 461d59ab41
Merge pull request #8427 from jeromecoutant/PR_L4_8343
STM32L4 : sleep issue
2018-10-16 10:42:14 -05:00
Cruz Monrreal 5c136cc5cc
Merge pull request #8403 from bcostm/fix_issue_8372_serial
STM32: fix issue with serial_is_tx_ongoing function
2018-10-16 10:25:37 -05:00
Cruz Monrreal deaa4fa0ff
Merge pull request #8374 from TomoYamanaka/improve_armcc_linkerscript
Renesas : Improve ARMCC linker script
2018-10-16 10:23:11 -05:00
Cruz Monrreal 50e6de7df2
Merge pull request #8046 from naveenkaje/UART_HWFC_Error_Fix_Upstream_Based
NRF52 serial: Fix UART console RX
2018-10-16 10:22:25 -05:00
Martin Kojtal 9b59a3bd0d
Merge pull request #8429 from OpenNuvoton/nuvoton_m2351_fix_led
M2351: Fix LED_GREEN naming error
2018-10-16 07:33:51 -07:00
Mahesh Mahadevan 9a47915791 MCUXpresso Flash Driver: Update Flash driver to support RAPIDIOT
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-10-16 08:52:15 -05:00
maclobdell fd08cc94f2 Add support for NXP Rapid IoT prototyping kit
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-10-16 08:52:14 -05:00
Janne Kiiskila de77695b08 Use wait_ms instead of wait(n)
Small space savings, the casting from int to float will bloat
the code a bit. Using wait(1.0f) for example would avoid it,
but seems a bit silly to use floats for anything unless
really needed (in embedded products).
2018-10-16 10:00:54 +03:00
Mahesh Mahadevan f29a597411 MCUXpresso: Fix for the TRNG HAL driver
Apply the fix from K64F TRNG HAL driver.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-10-15 16:00:34 -05:00
Cruz Monrreal a6651b868b
Merge pull request #8317 from yossi2le/add-flashiap-bd-as-default
Add FlashIAP block device as default block device for WISE 1570
2018-10-15 10:22:34 -05:00
Cruz Monrreal e0e915f5db
Merge pull request #8423 from cmonr/rollup2
Rollup PR: Additional doc PRs + lingering need:CI PRs
2018-10-15 10:04:04 -05:00
bcostm 4017dea77f STM32: typo corrections 2018-10-15 11:14:18 +02:00
ccli8 67e0b7faf0 [M2351] Fix LED_GREEN naming error 2018-10-15 16:34:18 +08:00
jeromecoutant 7b605b6160 STM32L4 : sleep issue 2018-10-15 10:19:42 +02:00
ccli8 9d27b72950 [M487] Fix SW2/SW3 interchange error in NUMAKER_IOT_M487 2018-10-15 15:47:16 +08:00
Ganesh Ramachandran 0231c80828 Implemented us_ticker free() & modified IAR stack 2018-10-15 10:20:22 +05:30
Ganesh Ramachandran 936ace08e2 Added Support for TOSHIBA TMPM4G9 2018-10-15 10:20:21 +05:30
Offir Kochalsky 9b3bca89fd Enable first fast mode then quad for chips with low power default 2018-10-14 08:54:09 +03:00
Cruz Monrreal II 3ed8a4d24b Merge branch 'PR_DISCOF413_SPIWIFI' of ssh://github.com/jeromecoutant/mbed into jeromecoutant-PR_DISCOF413_SPIWIFI 2018-10-12 21:46:43 -05:00
Cruz Monrreal II 7a61a17ce4 Merge branch 'improve_spi_drv' of ssh://github.com/TomoYamanaka/mbed-os into TomoYamanaka-improve_spi_drv 2018-10-12 21:46:41 -05:00
Cruz Monrreal II 9ec00b21d2 Merge branch 'Eman869-fix_lpuart_hsi_power_consumption' of ssh://github.com/Eman869/mbed-os into Eman869-Eman869-fix_lpuart_hsi_power_consumption 2018-10-12 21:46:36 -05:00
Cruz Monrreal II ae1dd2ae4c Merge branch 'm46b_usticker-new_feature' of ssh://github.com/ganesh-ramachandran/mbed-os into ganesh-ramachandran-m46b_usticker-new_feature 2018-10-12 21:46:30 -05:00
Cruz Monrreal 188b9b7998
Merge pull request #8310 from NXPmicro/Flash_KL43_KL82_KW41_K22
MCUXpresso: Add Flash support for KL43Z, KL82Z, KW41Z, K22F
2018-10-12 21:14:10 -05:00
Naveen Kaje fa480c4f15 NRF52: setup the UART_RTS pin during startup to enable console RX
While investigating the RX issue on NRF52_DK after SDK 14 updates,
it is observed that the RX FIFO doesn't get filled up, when the
flow control is disabled. Hence the readable never returns true.
If using Serial interface, the stdio file handles (0, 1, 2) get opened.
This results in configuring the flow control for STDIO, and it is observed
that the RX FIFO gets filled.

However, if RawSerial is used, the STDIO file handles
don't get opened. During the debug process it was observed that if the
flow control is configured once and then set to disabled, RX worked
as expected.

Alternative to this approach is that user application specifically
enables flow control as done in mbed's Greentea test suite. See https://goo.gl/r8nBYH

See https://goo.gl/8VB2qg step 14 for _initio's description.
See test code to reproduce the issue and test fix here: https://goo.gl/AQU1xG

Description
The change in behavior with NRF52's UART RX is documented here. #6891
This change is a fix for the above issue.
2018-10-12 14:43:35 -05:00
bcostm 276d16f70d STM32: fix issue with serial_is_tx_ongoing function 2018-10-12 15:40:11 +02:00
Cruz Monrreal 285de88331
Merge pull request #8234 from TomoYamanaka/modify_LPTicker
Renesas : Modify LPTicker driver
2018-10-12 07:43:37 -05:00
Lu 2fa91f3b2b This PR retrieves the TimerSync function to fix the lockup issue
1.	Update library
2.	Add ‘hal_timer.h’, ‘rtl8195a_timer.h’
3.	Revert ‘HalTimerOpExt.HalTimerSync(SYS_TIM_ID)’ function in ‘us_ticker.c’
2018-10-12 20:39:06 +08:00
Cruz Monrreal 5bfac71bdc
Merge pull request #8387 from cmonr/rollup
Rollup v2.1: Rerun multiple PRs through CI that have already indirectly passed
2018-10-12 07:24:18 -05:00
Anna Bridge 24857d0f91
Merge pull request #5285 from c1728p9/minimum_requirements_test
Update devices to have minimum 2K RAM and heap, also added test
2018-10-12 11:04:57 +01:00
Cruz Monrreal II 5d74b772ab Merge branch 'remove_gcc_cr' of ssh://github.com/bridadan/mbed into bridadan-remove_gcc_cr 2018-10-11 13:18:49 -05:00
jeromecoutant 3385e0ef7b DISCO_F413ZH : explicit WIFI pins name 2018-10-11 18:32:43 +02:00
jeromecoutant 922cc2b8a7 DISCO_F413ZH : set default Wifi module SPI state to inactive 2018-10-11 18:31:51 +02:00
TomoYamanaka 470f9bc375 Improve frequency setting proc of Renesas SPI driver
If the specified frequency exceeds the upper limit and lower limit at SPI driver, an error is output, but this does not match policy with other renesas drivers. Thus I revises the processing as follows.
- If "hz" is maximum over, it is rounded by the maximum value.
- If "hz" is minimum under, it is rounded by the minimum value.
2018-10-11 20:51:20 +09:00
TomoYamanaka 182a3a886f Improve ARMCC linker script for Renesas boards
For Arm toolchain build, Mbed 2(classic) programs occur an unexpected error if there is "#include "mem_XXXX.h"" in the script file.
It seems that the linker script can't find the include file because "mem_XXXX.h" file is not in the same path with the linker script.
(Refer to Issue #6975.)
To address this issue, I remove inclusion processing and define the related macros at ARMCC linker script file.
2018-10-11 16:51:06 +09:00
Cruz Monrreal ebff1e553b
Merge pull request #8213 from jeromecoutant/PR_RTC_F1
STM32F1 RTC : save values in register
2018-10-10 15:46:26 -05:00
Cruz Monrreal 9f98d39d1f
Merge pull request #8122 from thesupershan/master
LPC1768 us_ticker.c timer choice
2018-10-10 11:07:26 -05:00
Deepika 37bfc9e5e3 Reposition heap at the end of RAM to be 4K aligned
HEAP memory should be 4K aligned for GCC newlib, with ISR stack at the end of
RAM memory we loose 3K of RAM memory. This fix is for device with <16K RAM to
use RAM entirely.
2018-10-10 10:10:43 -05:00
Cruz Monrreal 73f1d4cabd
Merge pull request #8186 from deepikabhavnani/freescale_align_fix
Freescale/NXP: Fix alignment of execute region to 8byte boundary
2018-10-10 08:43:51 -05:00
Cruz Monrreal ab064df2fa
Merge pull request #8024 from deepikabhavnani/fix_align
Fix alignment of execute region to 8byte boundary
2018-10-10 08:41:40 -05:00
Cruz Monrreal 4903f324a1
Merge pull request #8013 from deepikabhavnani/stm_fix_align
STM32: Fix alignment of execute region to 8byte boundary
2018-10-10 08:40:55 -05:00
Offir Kochalsky dc4557939f Remove DISCO-L476VG-IOT01A board from QSPI test (IOTSTOR-666 Issue) 2018-10-10 16:36:40 +03:00
Yossi Levy 473f8d3f94 Fixing the order of component if more than one is included for a target.
Revert deprecation of FlashIAPBlockDevice 2 argument constructor has this was a breaking change. This follows a similar change in the external flashiap-driver repo.
2018-10-10 12:32:08 +03:00
Deepika bf1a2c8485 [ST]: Fix alignment of execute region to 8-byte boundary in ARM linker files
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files should strictly align to 8-byte boundary
2018-10-09 14:47:14 -05:00
Martin Kojtal 7c1cdc85ed
Merge pull request #8225 from juhoeskeli/IAR_STM32F412xG
Adjust stack & heap for IAR on STM32F412xG
2018-10-09 10:34:25 -05:00
Martin Kojtal 17762b4998
Merge pull request #8263 from juhoeskeli/flash_api_stm32l4
STM32L4: clear error programming flags before erase & program operations
2018-10-09 10:33:50 -05:00
Martin Kojtal 18d613111f
Merge pull request #8286 from jeromecoutant/PR_RTCWRITE
STM32 RTC : write RTC time while LPTICKER is enabled
2018-10-09 10:33:37 -05:00
Deepika 08051f5c23 SiLabs: Fix alignment of execute region to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
2018-10-09 10:15:07 -05:00
Deepika 4566241849 Ublox: Fix alignment of execute region to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
2018-10-09 10:15:07 -05:00
Deepika 1a6048f9c6 Realtek: Fix alignment of execute region to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
2018-10-09 10:15:07 -05:00
Deepika 05fe53a2c5 Wiznet: Fix alignment of execute region to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
2018-10-09 10:15:07 -05:00
Deepika 2d95fcb9cf Onsemi: Fix alignment of execute region to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
2018-10-09 10:15:07 -05:00
Deepika 26dc7bd562 Analog Devices: Fix alignment of execute region to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
2018-10-09 10:15:07 -05:00
Deepika d120222b6c Renesas: Fix alignment of execute region to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
2018-10-09 10:15:07 -05:00
Deepika 2a8ae84cb1 ARM: Fix alignment of execute region to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
2018-10-09 10:15:07 -05:00
Deepika a6997ab970 Maxim: Fix alignment of execute region to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
2018-10-09 10:15:07 -05:00
Deepika 5a25fd9ff3 Atmel: Fix alignment of execute region to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
2018-10-09 10:15:07 -05:00
Deepika 8c17ff6168 Toshiba: Fix alignment of execute region to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
2018-10-09 10:15:07 -05:00
Deepika 61404e62d8 Nordic: Fix alignment of execute region to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
2018-10-09 10:15:07 -05:00
Deepika e1ecce85ba Nuvoton: Fix alignment of execute region to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
2018-10-09 10:15:07 -05:00
Offir Kochalsky 52dc2e58ff Added more boards with QSPI component default 2018-10-09 15:37:31 +03:00
Offir Kochalsky a60552c07d Return to 1-1-1 mode prior to setting QUAD enable 2018-10-09 15:17:52 +03:00
maclobdell 008fa6e87f K66F has an SD Card on board. Configure it as the default block device storage. 2018-10-08 22:46:29 -05:00
Deepika f24ac501a8 Set main thread stack size as 3K for constrained targets 2018-10-08 13:27:35 -05:00
Cruz Monrreal b7cf1abf81
Merge pull request #8039 from c1728p9/stack_size_framework
Add framework for configuring boot stack size
2018-10-08 10:26:16 -05:00
Cruz Monrreal 9472814583
Merge pull request #8325 from ganesh-ramachandran/m3h6_pinmap_usticker-free
Fix for pinmap & usticker free() in TMPM3H6
2018-10-08 10:25:07 -05:00
Cruz Monrreal 8fd99449c3
Merge pull request #8280 from bcostm/fix_i2c_stop
STM32: Fix I2C stop condition
2018-10-08 10:23:38 -05:00
Cruz Monrreal 8aa65faf6a
Merge pull request #8239 from ganesh-ramachandran/m46b_pwmout_serial-fuart
Fix for pwmout & serial fuart in TMPM46B
2018-10-08 10:16:07 -05:00
Cruz Monrreal b81c8a99d7
Merge pull request #8193 from OpenNuvoton/nuvoton_m2351_license
M2351: Add license file for default secure library/executable
2018-10-08 10:14:05 -05:00
Cruz Monrreal 5a1c49fa6d
Merge pull request #8168 from jeromecoutant/PR_ADC_DISCOL496
DISCO_L496AG : enable ADC
2018-10-08 10:10:44 -05:00
Cruz Monrreal 866018b22d
Merge pull request #8149 from ganesh-ramachandran/m066_usticker-new_feature
Add usticker feature to TMPM066
2018-10-08 10:09:33 -05:00
Cruz Monrreal f5cfdfafb3
Merge pull request #8072 from TomoYamanaka/improve_flashiap
Renesas : Improve Flash iap driver
2018-10-08 10:08:47 -05:00
Cruz Monrreal 2b3f5bd486
Merge pull request #8061 from naveenkaje/push_uart_flow_control_fix
NRF52: Ensure that we configure hardware after flow control changes
2018-10-08 10:08:03 -05:00
Cruz Monrreal ebb0d02fad
Merge pull request #7861 from ashok-rao/BL652_FlowControl_fix
Removing default flow control for MTB_LAIRD_BL652
2018-10-08 10:05:13 -05:00
Anna Bridge c8734cf62a
Merge pull request #8252 from juhoeskeli/stm32f207_IAR
Adjust heap size on stm32f207
2018-10-08 12:36:53 +01:00
Martin Kojtal 365d61e4a9
Merge pull request #7304 from cedrickkukela-cd/MTS_DRAGONFLY_L471QG_pull_request_feature_changes
Add MTS dragonfly, MTS dragonfly l471
2018-10-08 11:06:23 +02:00
Martin Kojtal 3df898daae
Merge pull request #8266 from M-ichae-l/realtek-rtl8195am-Add-MCU_target-updates
Realtek-rtl8195am: Add MCU_ target
2018-10-06 07:54:17 +02:00
Martin Kojtal 4fbd39c74e
Merge pull request #8108 from c1728p9/systick_rename
Rename device option STCLK_OFF_DURING_SLEEP
2018-10-06 07:46:49 +02:00
Martin Kojtal baada0e783
Merge pull request #8242 from jeromecoutant/PR_STM32_LPTICKER
STM32 LPTICKER : Fix tickless and LPTICKER_DELAY_TICKS
2018-10-05 22:23:09 +02:00
Martin Kojtal 0b1bc876ac
Merge pull request #8103 from jeromecoutant/PR_L0_ADC
STM32 L0 ADC internal channel fix
2018-10-05 22:22:32 +02:00
Martin Kojtal 72fa1e0e8f
Merge pull request #8119 from jeromecoutant/PR_L4_ADC
STM32L496 : wrong ADC init
2018-10-05 19:53:25 +02:00
Deepika f549f14a0a Set ISR stack and heap sizes for low end devices
Set the ISR stack to be 1KB. https://github.com/ARMmbed/mbed-os/pull/7238
Set the heap size to 3KB(2KB + overhead + spare) so that atleast 2KB free ram is
available for testing.
With dynamic heap size, explicit size is not required. IAR 7.8 supports
static heap, hence the change is needed in IAR linker files.
2018-10-05 12:09:46 -05:00
Martin Kojtal f7f6d4d2d8
Merge pull request #7585 from bcostm/dev_NUCLEO_L4R5ZI
NUCLEO_L4R5ZI: add new platform
2018-10-05 14:53:11 +02:00
Amanda Butler cd996cd4c8
Copy edit REAMDE.md
Copy edit file, mostly for active voice and consistent spelling.
2018-10-04 16:55:36 -05:00
jeromecoutant 83caa049ca STM32 RTC : write RTC time while LPTICKER is enabled
This fix avoid a long waiting loop in rtc_write function,
  which was not acceptable in TICKLESS context.

Implementation comments added.

Global variable name has been updated for easier maintenance:
- LPTICKER_counter is the U32 continuous tick counter
- LPTICKER_RTC_time is the RTC time used to get the time difference
   between rtc_read_lp() calls
2018-10-04 15:30:49 +02:00
Martin Kojtal 7a057d7ec8
Merge pull request #8085 from jeromecoutant/PR_RTC_LSI
STM32 RTC : start LSI clock (for targets without LSE)
2018-10-04 13:37:53 +02:00
Ganesh Ramachandran 7dba836719 Fix for pinmap & usticker free() to TMPM3H6
Implemented usticker free()
Fix pinmap data overwriting to same port pins
2018-10-04 16:44:55 +05:30
Mahesh Mahadevan 8822774fbf MCUXpresso: Add Flash support for KL43Z, KL82Z, KW41Z, K22F
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-10-02 20:09:23 -05:00
Naveen Kaje 72abe51713 NRF52: setup the UART_RTS pin during startup to enable console RX
While investigating the RX issue on NRF52_DK after SDK 14 updates,
it is observed that the RX FIFO doesn't get filled up, when the
flow control is disabled. Hence the readable never returns true.
If using Serial interface, the stdio file handles (0, 1, 2) get opened.
This results in configuring the flow control for STDIO, and it is observed
that the RX FIFO gets filled.

However, if RawSerial is used, the STDIO file handles
don't get opened. During the debug process it was observed that if the
flow control is configured once and then set to disabled, RX worked
as expected.

Alternative to this approach is that user application specifically
enables flow control as done in mbed's Greentea test suite. See https://goo.gl/r8nBYH

See https://goo.gl/8VB2qg step 14 for _initio's description.
See test code to reproduce the issue and test fix here: https://goo.gl/AQU1xG

Description
The change in behavior with NRF52's UART RX is documented here. #6891
This change is a fix for the above issue.
2018-10-02 14:13:03 -05:00
Martin Kojtal 8b623156e5
Merge pull request #7932 from wajahat-ublox/PC2_AnalogIn
ublox c030: Add PC2 pin to ADC pin map
2018-10-02 21:12:31 +02:00
Leon Lindenfelser 9f9a85830f Configure IAR stack size to 1KB 2018-10-02 13:34:16 -05:00
Brian Daniels ef03dbd79d Removing GCC_CR from target supported_toolchains 2018-10-02 10:44:56 -05:00
Juho Eskeli f7a030ef7c Remove redundant error flag clearing operation 2018-10-02 09:18:03 +03:00
Martin Kojtal 232543ac4b
Merge pull request #7813 from MSiglreithmaierRB/os_sleep_stm32l4
STM32L4: Fix sleep implementation
2018-10-01 17:24:12 +02:00
Martin Kojtal 6ec90d1224
Merge pull request #8134 from jeromecoutant/PR_L1_ADC
STM32L1 ADC update for internal channels
2018-10-01 11:48:44 +02:00
Martin Kojtal 59ce41f255
Merge pull request #8049 from OpenNuvoton/nuvoton_fix_hal_sleep
Nuvoton: Fix mbed_hal-sleep test failed
2018-10-01 11:48:25 +02:00
Martin Kojtal 3b17888fe0
Merge pull request #8048 from naveenkaje/upstream_based_uart_fix_for_assert_test
NRF52: serial_api: Use polling for putc
2018-10-01 11:47:31 +02:00
Martin Kojtal c48c2ec89f
Merge pull request #7998 from NXPmicro/MIMXRT1050_Add_RTC
MIMXRT1050_EVK: Add RTC support
2018-10-01 11:47:10 +02:00
Martin Kojtal 0ded1fa0d7
Merge pull request #7957 from andrewleech/nrf_override_ram_linker
nRF5x: pass ram linker start/length from config system
2018-10-01 11:45:55 +02:00
Martin Kojtal b1011bf12e
Merge pull request #7896 from alrodlim/master
Fix pin names of MIMXRT1050 I2C pins
2018-10-01 11:43:43 +02:00
TomoYamanaka cb087ed63a Revise the value of return value of flash_get_page_size()
Currently the return value of flash_get_page_size() is 1 since the min size per one writing is 1 byte by Flash spec.
However, I noticed that this value causes a enormous write time When writing large data such as FW update.
So I revised this value to 8 byte by considering the writing time, memory alignment and memory hole.
2018-09-29 05:22:37 +09:00
bcostm 9cade872db STM32: Fix I2C stop condition
Need to ensure the transmission has been started before sending a STOP condition.

Issue found on the NUCLEO_H743ZI due certainly to the high-speed clock used.

But this is normally needed also on all STM32 devices using the I2C peripheral version 2.
2018-09-28 14:49:17 +02:00
ccli8 96ce8ae6e3 [M2351] Add README.md for secure library/executable 2018-09-28 11:48:10 +08:00
ccli8 744f150402 [M2351] Add license file for secure library/executable 2018-09-28 11:47:50 +08:00
jeromecoutant af4841df0d STM32 LPTICKER : set default LPTICKER_DELAY_TICKS to 1
For both implementation, RTC and LPTIM, there is some delay in the
set_interrupt function due to HW constraints.

Value has been set to 4 for STM32L0,
because SystemClock is slower than other families.
2018-09-27 14:42:56 +02:00
jeromecoutant 9bc2e5a5ad STM32 LPTICKER with RTC : Fix tickless and lp wrapper
When both tickless and LPTICKER_DELAY_TICKS are enabled some ST
devices randomly get stuck sleeping forever. This is because the
wake up time passed to the rtc is ignored if the previous match is
about to occur. This causes the device to get stuck in sleep.

This patch prevents matches from getting dropped by the rtc by
deactivating the rtc wake up timer before setting a new value.

Events leading up to this failure for the RTC:

-1st call to lp_ticker_set_interrupt
-delay until ticker interrupt is about to fire
-2nd call to lp_ticker_set_interrupt
-interrupt for 1st call fires and match time for 2nd call is dropped
-LowPowerTickerWrapper gets ticker interrupt but treats it as a
 spurious interrupt and drops it since it comes in too early
-device enters sleep without a wakeup source and locks up
2018-09-27 14:31:36 +02:00
jeromecoutant b1d23e5ec5 STM32 LPTICKER with LPTIM : Fix tickless and lp wrapper
This fixes issue with mbed_hal/lp_ticker/lp_ticker_early_match_race_test
2018-09-27 14:30:00 +02:00
Eman869 c68e7c61ed
Check LPUART clock source in STOP mode
Check LPUART clock source before enable it in STOP mode, only LSE could be enabled in STOP mode.
2018-09-27 19:12:42 +08:00
bcostm 909ce3590a NUCLEO_L4R5ZI: set IAR linker stack size to 1KB 2018-09-27 12:03:08 +02:00
bcostm 5b4ff94bff NUCLEO_L4R5ZI: change _ALTx pins 2018-09-27 12:03:07 +02:00
bcostm ee5aff7e18 NUCLEO_L4R5ZI: remove PWM_5 pins as already used by us_ticker 2018-09-27 12:03:07 +02:00
bcostm a644ddd2e7 NUCLEO_L4R5ZI: enable bootloader 2018-09-27 12:03:07 +02:00
bcostm 3a722358b1 NUCLEO_L4R5ZI: add missing timer freeze macro 2018-09-27 12:03:07 +02:00
bcostm dc5746e3ec NUCLEO_L4R5ZI: update targets.json 2018-09-27 12:03:07 +02:00
bcostm abca890d8e NUCLEO_L4R5ZI: update mbed_rtx.h 2018-09-27 12:03:07 +02:00
bcostm ef33ff5524 NUCLEO_L4R5ZI: add all board files 2018-09-27 12:03:07 +02:00
zzw 9d5ebf778c Merge branch 'realtek-rtl8195am-Add-MCU_target-update' of https://github.com/M-ichae-l/mbed-os into realtek-rtl8195am-Add-MCU_target-update
1, edit "targets.json" to let "REALTEK_RTL8195AM" target inherit from "MCU_RTL8195A"
2, change file structures for folder "Target_Realtek"
3, add "PeripheralPins.h" and "PeripheralPins.c"
2018-09-27 17:45:10 +08:00
Leon Lindenfelser 7d89a02e48 Remove LOWPOWERTIMER as it has been replaced by LPTICKER 2018-09-26 15:39:43 -05:00
Leon Lindenfelser a80b2369c3 Decrease heap size in IAR linker so tests compile and use SRAM2 for IAR and GCC 2018-09-26 15:39:42 -05:00
Leon Lindenfelser 5ff0eb9d92 Rebase and changes for Dragonfly nano support 2018-09-26 15:39:42 -05:00
Leon Lindenfelser 31d04b05b7 Rebased on master mbed-os 9/7/18
This required replacing hal_tick.h with us_ticker_data.h
2018-09-26 15:37:33 -05:00
Leon Lindenfelser 3bb8543e5b Remove commented out code 2018-09-26 15:37:33 -05:00
Leon Lindenfelser 55bcf93574 Fixed spacing/tabs and clean up targets.json 2018-09-26 15:37:33 -05:00
Leon Lindenfelser fad95e9a7d Fix rev D radio init/power/reset and add back bootloader capability 2018-09-26 15:37:33 -05:00
cedrick kukela 2886ea0ad8 target changes 2018-09-26 15:37:33 -05:00
cedrick kukela 463182d372 REV D change for modem on 2018-09-26 15:37:33 -05:00
cedrick kukela 1064994095 Rev c pin name fix 2018-09-26 15:37:33 -05:00
cedrick kukela 7f29f837d1 remove blanks 2018-09-26 15:37:33 -05:00
cedrick kukela 56fa71cbd3 delete file 2018-09-26 15:37:33 -05:00
cedrick kukela 50254bcc61 change startup and s file names to match target 2018-09-26 15:37:33 -05:00
cedrick kukela 5e1bb381cd fixing onboard modem init bug on mts dragonfly l471 2018-09-26 15:37:32 -05:00
cedrick kukela 28f6b5787a target fix 2018-09-26 15:37:32 -05:00
cedrick kukela e2e5d9ed43 Ublox and PinName fixes 2018-09-26 15:37:32 -05:00
cedrick kukela c18eef804e adding TARGET MTS_DRAGONFLY_L471QG 2018-09-26 15:37:32 -05:00
Juho Eskeli 3a6b52fd15 Clear error programming flags before erase & program operations 2018-09-26 22:58:49 +03:00
Cruz Monrreal b3fe04f68a
Merge pull request #8099 from NXPmicro/Fix_MXRT_PWM
MIMXRT1050_EVK: Fix the PWM Hal driver
2018-09-26 11:38:56 -05:00
Martin Kojtal eaa5102358
Merge pull request #8014 from M-ichae-l/realtek-rtl8195am-lib-updates
realtek rtl8195am lib updates
2018-09-26 13:09:28 +02:00
Juho Eskeli f8c8c3cf68 Reduce heap size on stm32f207 2018-09-26 10:07:45 +03:00
Markus Siglreithmaier ea6c886d22 STM32L4: Use HAL layer functions for sleep implementation 2018-09-26 08:54:13 +02:00
Cruz Monrreal 815683c2bd
Merge pull request #7941 from OpenNuvoton/nuvoton_fix_gpio_mode_mapping
Nuvoton: Fix GPIO mode mapping
2018-09-25 13:15:09 -05:00
jeromecoutant e8d32ca0f9 STM32F1 RTC : save values in register
Date is managed only by SW
  within CUBE functions HAL_RTC_GetDate and HAL_RTC_SetDate.
They are then replaced by functions that saved counters in HW registers.
RTC_ReadTimeCounter and RTC_WriteTimeCounter are then added to the ST API.
2018-09-25 13:45:59 +02:00
Martin Kojtal 65a0a1aecd
Merge pull request #8131 from jeromecoutant/PR_F3_ADC
STM32F3 correct analogin_read
2018-09-25 13:24:03 +02:00
Martin Kojtal 396f7e39fa
Merge pull request #8037 from mattbrown015/stm32_gpio_irq_shared_vector
STM32: Fix disabling of IRQs shared by multiple events
2018-09-25 13:18:02 +02:00
Ganesh Ramachandran 9215b9d264 Fixed pwmout & serial fuart
pwmout:
Used SystemCoreClock

Serial fuart:
SERIAL_5 & SERIAL_3 have same CTS pin (PA7), only function register is different (4 & 2).
pinmap_peripheral() will always return first match from the map.
Hence changed as, if SERIAL_5 is used, then pinmap_peripheral() should return SERIAL_5 (function register 2 to be set).
2018-09-25 13:29:12 +05:30
Ganesh Ramachandran 9474603791 Added usticker feature 2018-09-25 12:51:08 +05:30
TomoYamanaka b01cdcba5a Modify typo of return value at mbed_get_a9_tick_irqn(). 2018-09-25 14:07:59 +09:00
TomoYamanaka 48038e4dcc Change MTU2 channel number for LPTicker of GR-LYCHEE
MTU2(Multi function Timer pulse Unit 2) can create the low freaquency.
Currently GR-LYCHEE uses MTU2 channel 3 for LPTicker, but I noticed that a part of it is used by another function.
Thus, I changed MTU2 channel number for LPTicker to 2.
2018-09-25 13:53:49 +09:00
Cruz Monrreal 7ca85f9688
Merge pull request #8009 from NXPmicro/LPC1768_RTC
LPC1768: Enable RTC
2018-09-24 10:44:29 -05:00
alrodlim 7d9263d2ef Move I2C pins definition so that A4 and A5 are defined before using them 2018-09-24 09:46:11 -05:00
Juho Eskeli d0ac092e68 Adjust stack & heap for IAR on STM32F412xG 2018-09-24 11:27:42 +03:00
Martin Kojtal b5ee0c0e27
Merge pull request #8026 from SiliconLabs/bugfix/gpcrc
Fix for HW CRC calculations on Silicon Labs targets
2018-09-24 10:22:13 +02:00
Martin Kojtal 9d78650fcc
Merge pull request #7989 from OpenNuvoton/nuvoton_fix_m2351_stdiouart
M2351: Fix STDIO_UART error
2018-09-24 09:06:52 +02:00
Steven 0f879adccd Apply @kjbracey-arm's comments 2018-09-22 20:40:32 +02:00
Cruz Monrreal 5eb314f65f
Merge pull request #8164 from OpenNuvoton/nuvoton_iot_m487
Support Nuvoton's new target NUMAKER_IOT_M487
2018-09-21 21:31:22 -05:00
Cruz Monrreal caa4279244
Merge pull request #8023 from SiliconLabs/hotfix/nanostack-default-interface
Hotfix for PR #7778 on Silicon Labs targets
2018-09-21 12:50:43 -05:00
Martin Kojtal ab882c3416
Merge pull request #8030 from OpenNuvoton/nuvoton_fix_common_tickers_fail
Nuvoton: Fix Greentea test common_tickers failed
2018-09-21 14:55:28 +02:00
Martin Kojtal 54afd1cd92
Merge pull request #8187 from bcostm/fix_serial_lse
STM32: fix wrong LSE config in serial_baud function
2018-09-21 12:54:01 +02:00
Martin Kojtal 6a34251b07
Merge pull request #7925 from maciejbocianski/qspi_hal_test_refactoring
Qspi hal test refactoring/update
2018-09-21 09:40:10 +02:00
Cruz Monrreal 7d54df66b1
Merge pull request #7993 from evva-sfw/hotfix/efm32_hal_pwmout_set_period_fix
Fix EFM32 pwmout hal function pwmout_period
2018-09-20 13:42:04 -05:00
Cruz Monrreal 9f3437aaec
Merge pull request #7987 from OpenNuvoton/nuvoton_m2351_v1.3
M2351: Update to NuMaker-PFM-M2351 V1.3 board
2018-09-20 13:41:03 -05:00
Martin Kojtal b71f3409d7
Merge pull request #7921 from Wiznet/master
Fix Bug : IAR heap memory problem
2018-09-20 14:58:15 +02:00
TomoYamanaka d5ef4672b1 Support large Flash in Flash iap driver of Renesas
I addressed the cases Flash size is larger than 0x1000000.
2018-09-20 10:14:15 +09:00
TomoYamanaka d295eba9e5 Improve Flash iap driver of Renesas
I changed _page_program() func because "buf" which is an argument of data_send() for writing must be a RAM address in order to operate in SPI mode.
(ex: if it is ROM table data, writing will be failure.)
Also, I changed the period of interrupt disable/enable at _page_program() func and _sector_erase() func because lock period is too long.
2018-09-20 10:08:20 +09:00
bcostm 4c31be2db4 STM32: fix wrong LSE config in serial_baud function 2018-09-19 16:46:54 +02:00
Deepika c673d5344c NXP: Fix alignment of execute region to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
2018-09-19 09:45:46 -05:00
Deepika 525545c7b0 Freescale: Fix alignment of execute region to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
2018-09-19 09:35:59 -05:00
Martin Kojtal c4e0fc6d11
Merge pull request #7920 from li-ho/aducm3029_sys_return_code
Resolve duplicate ADuCM3029 system return code
2018-09-19 14:19:25 +02:00
Martin Kojtal 81d0948c09
Merge pull request #8025 from deepikabhavnani/flag_update
Align to CMSIS defines for Non-Secure
2018-09-19 14:18:41 +02:00
Steven 9a0fc98bdc Hotfix for PR #7778
TB_SENSE_12 would have been left behind by the changes in #7778. This commit implements the changes in mbed to allow targets to provide a default network interface for Silicon Labs targets.
2018-09-19 12:30:21 +02:00
Martin Kojtal 6d5cb6c69b
Merge pull request #8136 from fkjagodzinski/fix-stm-us_ticker_after_deepsleep
STM: Fix us_ticker timestamp after deep sleep
2018-09-19 12:15:10 +02:00
Andrew Leech a0d7d4eef7 nrf: allow target.mbed_ram_start and target.mbed_ram_size to override settings in linker 2018-09-19 16:13:36 +10:00
Ganesh Ramachandran cd618e640b Implemented us_ticker free() 2018-09-19 10:41:07 +05:30
Ganesh Ramachandran 7504050bb3 Added usticker feature
To enable the feature US_TICKER, file is newly implemented with Timer B, which has proper clock prescale and free running after match interrupt.
Old us_ticker driver file (Timer A) is producing up to 100us tolerance, which causes to fail US_TICKER feature.
Hence, changed the peripheral ticker A to B.
2018-09-19 10:37:23 +05:30
ccli8 9d2fcdb773 [M487] Create MCU_M480 for inheritance by M487 targets
In targets.json, create MCU_M480 for inheritance by NUMAKER_PFM_M487/NUMAKER_IOT_M487.
2018-09-19 09:02:42 +08:00
Cruz Monrreal 5391a7b6fe
Merge pull request #7700 from cesarvandevelde/bluepill-target-fix
STM32: Correct device_has_add flags for bluepill_f103c8 target, fixes #7654
2018-09-18 11:30:35 -05:00
jeromecoutant f510efff38 DISCO_L496AG : enable ADC
See User Manual, VREF+ is not connected by default

NB: Use 2.5V as reference (instead of 3.3V)
for internal channels calculation
2018-09-18 16:11:13 +02:00
Martin Kojtal 7bcb066917
Merge pull request #7856 from fredlee12001/master
Realtek: fix gpio is connected
2018-09-18 12:28:14 +02:00
Martin Kojtal 8604f80a8e
Merge pull request #8010 from NXPmicro/NXP_Fix_UART_Parity_Sel
NXP: Update serial driver's parity handling
2018-09-17 14:46:58 +02:00
Martin Kojtal b97ac0c353
Merge pull request #7787 from jeromecoutant/PR_MSI_LSE
STM32L4 : code cleanup in MSI SetSysClock
2018-09-17 14:22:29 +02:00
Filip Jagodzinski 6821556b47 STM: Fix us_ticker timestamp after deep sleep
Use the `mbed_sdk_inited` flag to correct the `HAL_GetTick()` behavior
after waking up from deep sleep mode. `ticker_read_us()` must not be
used to read us_ticker timestamp after waking up until the us_ticker
context is restored. More detailed description in issue #8117.

Fixes #8117
2018-09-14 15:44:40 +02:00
jeromecoutant f41c72ded8 STM32L1 ADC update for internal channels 2018-09-14 13:23:50 +02:00
jeromecoutant 52776a1e7b SM32F3 correct analogin_read 2018-09-14 11:41:12 +02:00
thesupershan e5000abd93 Merge pull request #1 from thesupershan/lpc1768-us-ticker
choose which lpc1768 timer to use for us_ticker.c
2018-09-13 11:56:58 -07:00
jeromecoutant 2a70879ffa STM32L496 : wrong ADC init 2018-09-13 16:31:49 +02:00
Aleshandre Diaz 190803ae6a choose which lpc1768 timer to use for us_ticker.c 2018-09-13 05:57:13 -07:00
Russ Butler ab50681c33 Rename device option STCLK_OFF_DURING_SLEEP
Rename STCLK_OFF_DURING_SLEEP to SYSTICK_CLK_OFF_DURING_SLEEP to avoid
confusion with the STmicroelectronics.
2018-09-12 14:40:25 -05:00
jeromecoutant 12522210a2 STM32L0 internal channel ADC_TEMP
Temperature measurement was not stable
2018-09-12 17:21:36 +02:00
jeromecoutant 5bbe62889a STM32L072 : ADC internal channels correction 2018-09-12 17:21:30 +02:00
Cruz Monrreal 8d9e2e5d0a
Merge pull request #7909 from KariHaapalehto/f411re_iar
Adjust STMF411xE IAR linker file to mbed-os memory needs.
2018-09-12 09:20:15 -05:00
Mahesh Mahadevan 3661dc7e71 MIMXRT1050_EVK: Fix the PWM Hal driver
1. Add Pin defines for missing PWM pins
2. Update the hal to account for the number of PWM instances
3. Fix the register reload policy
4. Configure the XBAR to put the PWM fault inputs in inactive state

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-09-12 08:52:39 -05:00
jeromecoutant 827c8bd486 STM32 RTC : remove not necessary macro
__HAL_RCC_RTC_CLKPRESCALER is called in __HAL_RCC_RTC_CONFIG
2018-09-11 14:14:19 +02:00
jeromecoutant 5c46bec4d4 STM32 RTC with LSI : stop reset registers during init 2018-09-11 14:13:43 +02:00
jeromecoutant 0fecc56e84 STM32 RTC : Start LSI clock asap 2018-09-11 14:04:03 +02:00
Naveen Kaje 9e175db443 NRF52: Ensure that we configure hardware after flow control changes
Call the routines to program the hardware to reflect the updates made to
flow control so that the object and hardware are in synch.
2018-09-10 10:47:28 -05:00
deepikabhavnani ff80e298d2 Align to CMSIS defines for Non-secure
CMSIS updated the __DOMAIN_NS define to DOMAIN_NS. Update the define
in existing code for non-secure part.
2018-09-10 09:25:27 -05:00
ccli8 6ac163088a Support Nuvoton's NuMaker-IoT-M487 board 2018-09-10 11:32:54 +08:00
ccli8 a65e3d42e5 [M2351] Update secure library/executable
1. Remove hal_sleep/hal_deepsleep from secure library
2. Add CLK_Idle_S/CLK_PowerDown_S
2018-09-10 11:09:40 +08:00
ccli8 0550de72f5 [M2351] Fix hal_deepsleep with serial_can_deep_sleep
Add secure functions CLK_PowerDown_S/CLK_Idle_S
2018-09-10 10:55:45 +08:00
ccli8 beb04a82dc [Nuvoton] Fix serial corruption due to deep sleep
Prevent deep sleep when there is still any character being transmitted on the UART.
This allows tickless to be safely enabled.
2018-09-10 10:55:44 +08:00
ccli8 310b12a235 [Nuvoton] Fix HAL sleep test failure with lp_ticker
Replace wait_us with nu_busy_wait_us in lp_ticker since wait_us is not allowed in sleep test
which would suspend us ticker layer on which wait_us relies. nu_busy_wait_us is implemented
by calling us ticker HAL API directly rather than relying on us ticker layer.
2018-09-10 10:55:44 +08:00
ccli8 26c0444cc3 [Nuvoton] Add nu_delay_cycle_x4
nu_delay_cycle_x4 is a replacement for wait_us when us ticker is not available.
2018-09-10 10:55:43 +08:00
ccli8 88b9f20ec4 [Nuvoton] Add nu_busy_wait_us
nu_busy_wait_us is a replacement for wait_us when intermediary us ticker layer is disabled.
2018-09-10 10:55:43 +08:00
ccli8 2b632b9eb0 [Nuvoton] Move nu_countdown_init/expired/free implementations to nu_timer.c from nu_timer.h 2018-09-10 10:55:42 +08:00
ccli8 ab7b93ca58 [Nuvoton] Synchronize us_ticker to lp_ticker
This is to make implementations of us_ticker/lp_ticker consistent.
2018-09-10 10:50:22 +08:00
ccli8 6639a92bcd [Nuvoton] Fix lp_ticker_free cannot pass speed test 2018-09-10 10:50:22 +08:00
ccli8 9ee83f575a [Nuvoton] Fix spurious us_ticker/lp_ticker interrupts
If us_ticker/lp_ticker is scheduled and then the interrupt is disabled, the originally scheduled
interrupt may still become pending. If this occurs, then an interrupt will fire twice on the next
call to us_ticker_set_interrupt/lp_ticker_set_interrupt - once immediately and then a second time
at the appropriate time.

This patch prevents the first interrupt by clearing interrupts in
us_ticker_set_interrupt/lp_ticker_set_interrupt before calling NVIC_EnableIRQ.
2018-09-10 10:50:21 +08:00
Naveen Kaje 28c63ec0f3 NRF52: serial_api: Use polling for putc
There are scenarios where putc is called within a critical section, e.g
to log ASSERTs in early initialization code. The interrupts being
disabled here prevents the handlers for the UARTE from executing.
This breaks the tx_in_progress flag based approach. The tx_in_progress
never gets reset. Poll on the TXDRDY instead.

It can be recreated with a simple program as shown here:

*************** Current Behavior ****************
++ MbedOS Error Info ++
Error Status: 0x80FF0100 Code: 256 Module: 255
Error Message: F

************** With Fix *************************

++ MbedOS Error Info ++
Error Status: 0x80FF0100 Code: 256 Module: 255
Error Message: Fatal Run-time error
Location: 0x2C0A9
Error Value: 0x0
Current Thread: Id: 0x20005520 Entry: 0x30EBF StackSize: 0x1000 StackMem: 0x20004520 SP: 0x20005490
For more info, visit: https://armmbed.github.io/mbedos-error/?error=0x80FF0100
-- MbedOS Error Info --
nrf failure at .\main.cpp:22
***************************************************
2018-09-09 16:33:30 -05:00
Cruz Monrreal d311a96061
Merge pull request #7950 from c1728p9/l4_malloc_fix
Fix memory allocation on STM32L4 devices
2018-09-07 22:50:05 -05:00
Cruz Monrreal 76827c3704
Merge pull request #7971 from JammuKekkonen/fix_softdevice_memory_reservation_for_nrf52dk
Fix memory reservation for Softdevice in NRF52_DK
2018-09-07 11:46:58 -05:00
Russ Butler 66cce67d38 Update the K64F to use boot stack size config
Update the K64F linker scripts to make use of the newly added stack
size target config.
2018-09-07 17:00:48 +01:00
Russ Butler 1ead033423 Add framework for configuring boot stack size
Add the target config option "boot-stack-size" which is passed to the
linker as the define "MBED_BOOT_STACK_SIZE" so the linker can
adjust the stack accordingly. On mbed 2 the boot stack becomes the
main stack after boot.  On mbed 5 the boot stack becomes the
ISR stack after boot. Because of these different uses  the stack size
for mbed 2 is set to 4K by default while on mbed 5 it is set to 1k.

Additionally, the NRF5X family requires a larger interrupt stack size
due to the softdevice so the size  is increased to 2k on mbed 5 builds.
2018-09-07 16:31:49 +01:00
mattbrown015 792cec773e STM32: Disabling of IRQs shared by multiple events
Discern if an IRQ is being shared by multiple events and only disable the IRQ if no events are using it.
2018-09-07 14:48:02 +01:00
Martin Kojtal e30435bd08
Merge pull request #7990 from maciejbocianski/qspi_small_fixes
DISCO_L475VG_IOT01A remove old QSPI pins
2018-09-07 10:47:19 +02:00
Steven 7711d4c93b Word-sized input to GPCRC is only valid for 32-bit polynomial 2018-09-07 00:19:32 +02:00
Cruz Monrreal ff1a0ede1f
Merge pull request #7995 from yossi2le/revert-pinnames-files
Reverting PinNames.h after PR #7774 changes
2018-09-06 13:20:43 -05:00
Russ Butler e084865e8e Fix comparison warning on STM32L4 devices
Cast the pointer used in l4_retarget to uint32_t before comparing it
to fix the warning:
"comparison between pointer and integer"
2018-09-06 16:07:03 +01:00
Cesar 80c9814fd0 Revert file permissions 2018-09-06 13:57:06 +02:00
Cesar b2d8b54f7d Revert file permissions 2018-09-06 12:56:13 +02:00
Kari Haapalehto 86f966fa00 Adjust STMF411xE IAR linker file to mbed-os memory needs.
Stack size decreased and heap size increased.
2018-09-06 13:34:12 +03:00
zzw ff20fc3341 "gpio_api.c" update
1, "gpio_api.c" update. fix issues for compiling the mbed-cloud-client-example
2018-09-06 14:40:06 +08:00
zzw b06553fa25 rtl8195am lib updates
1, rtl8195am lib updates. Preparation for the low power features.
2018-09-06 14:28:34 +08:00
Cruz Monrreal 201ec14d45
Merge pull request #7779 from MateuszMaz/fix_for_NRF52_pwm_issues
Fix for nrf52 pwm issues
2018-09-05 20:05:35 -05:00
Mahesh Mahadevan 16ff8e7369 NXP: Update serial driver's parity handling
This is a fix for issue 6305. This fix set the default
parity value to NONE.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-09-05 13:30:36 -05:00
Mahesh Mahadevan e09f1e2149 LPC1768: Enable RTC
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-09-05 12:21:03 -05:00
Cruz Monrreal dc45990a58
Merge pull request #7904 from NXPmicro/MIMXRT1050_Fix_Spi
MIMXRT1050_EVK: Update SPI HAL driver
2018-09-05 09:18:58 -05:00
Mahesh Mahadevan a8fca70fa9 MIMXRT1050_EVK: Add RTC support
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-09-05 08:29:37 -05:00
Yossi Levy acfda5895e Changes in PR #7774 of PinNames.h should be reverted. This commit reverts those files excpet for K82F and K64F which are left as an example 2018-09-05 14:13:05 +03:00
Michael Kaplan dd2e93fbd3 Fix EFM32 pwmout hal function pwmout_period
In pwmout_period() is a check for changed values, which is not working because of a wrongly used bitmask. This is fixed now.
2018-09-05 11:17:28 +02:00
Maciej Bocianski 050604f1b8 DISCO_L475VG_IOT01A remove old QSPI pins 2018-09-05 09:58:20 +02:00
ccli8 2da75c860c [M2351] Fix STDIO_UART error 2018-09-05 11:52:40 +08:00
ccli8 958c7fe564 [M2351] Update to NuMaker-PFM-M2351 V1.3 board
1. Update UNO pin A4/A5
2. Update UNO pin D2/D3
2018-09-04 15:19:33 +08:00
Martin Kojtal 44925d8527
Merge pull request #7579 from u-blox/ublox_odin_driver_os_5_v3.0.0_rc1
Updated ODIN drivers to v3.0.0 RC1
2018-09-03 09:25:32 +02:00
Seppo Takalo 4c105fc2d7 SDT64B is not Arduino FF. It does not define Arduino pins. 2018-09-01 12:40:38 -05:00
Seppo Takalo 3ab9c41983 WISE-1510 is not Arduino form factor 2018-09-01 12:37:46 -05:00
Seppo Takalo 710d1bb00a Enable default Mesh interface on KW24D
This device still requires MCR20A driver to be in build tree
and this patch https://github.com/ARMmbed/mcr20a-rf-driver/pull/18
2018-09-01 12:36:27 -05:00
Cruz Monrreal 993c897b55
Merge pull request #7774 from yossi2le/sd-spif-to-mbed-os
Add default block device support (SD, SPIF and FLASHIAP)
2018-09-01 11:15:13 -05:00
Russ Butler e2d003a420 Fix memory allocation on STM32L4 devices
Depending on initial size allocated on STM32L4 devices with
TWO_RAM_REGIONS  set a crash may occur. This is because there is a
mismatch between the size newlib is expecting and the size actually
returned by _sbrk. This is because the STM32L4 implementation of _sbrk
is performing alignment internally.

This patch fixes this problem by removing the code in __wrap__sbrk
which performs the alignment.
2018-08-31 18:31:52 -05:00
Cruz Monrreal 00b7700be2
Merge pull request #7875 from c1728p9/feature_CMSIS_5_0b521765
Update CMSIS to 5.4.0
2018-08-31 11:31:37 -05:00
Cesar f91bba9803 Updated pinmap to fix CAN and enable UART hardware flow control 2018-08-31 17:17:29 +02:00
Cesar c10907288d Corrected device_has_add flags for bluepill_f103c8 target 2018-08-31 17:17:29 +02:00
Jammu Kekkonen 1a9999708e Fix memory reservation for Softdevice in NRF52_DK 2018-08-31 14:13:55 +03:00
Maciej Bocianski 3a64383de5 fix qspi address sending for nrf52
fix address sending in qspi_command_transfer
now address is send MSB first
2018-08-31 10:48:37 +02:00
Ammad Rehmat b934632653 Access Point API 2018-08-31 11:33:30 +05:00
ccli8 55328ebdd5 [Nuvoton] Fix pin mode mapping between input pull mode/direction and I/O mode
1. Modify PinMode enum to fully support GPIO I/O modes.
2. Translate input pull mode/direction to I/O mode, where H/W doesn't support
   separate configuration for input pull mode/direction.
3. Allow for configuring I/O mode in addition to input pull mode.
2018-08-31 10:06:30 +08:00
Cruz Monrreal 06a98e7dcf
Merge pull request #7778 from SeppoTakalo/provide_default_mesh
Fix MeshInterface::get_default_instance()
2018-08-30 16:11:00 -05:00
Wajahat Abbas a93ff7c931 Added PC2 pin to ADC pin map 2018-08-30 15:19:50 +05:00
Seppo Takalo 4989650854 Don't provide default interface on NCS36510, won't fit testcases on IAR 2018-08-30 11:04:25 +03:00
Martin Kojtal 56117a86c8
Merge pull request #7871 from juhoeskeli/NUCLEO_F207ZG_LINKER_MCC
Updated linker files (GCC_ARM, ARM, IAR) for NUCLEO_F207ZG and enabled bootloader functionality
2018-08-30 09:49:17 +02:00
justinkim 251ab0173d Stack size change to 1K in IAR Linker Script. 2018-08-30 08:41:12 +09:00
Yossi Levy ed8e170d15 Moving SD, SPIF and FLASHIAP into mbedos and refactoring features storage directory structure. 2018-08-29 12:01:11 +03:00
justinkim 3f4d30de56 Fix Bug : IAR heap memory problem 2018-08-29 14:20:30 +09:00
Edmund Hsu b57f90241e Apply consistent system return code to adi_system_EnableRetention() 2018-08-29 13:42:16 +10:00
Edmund Hsu ae492d9c4a Add consistent ADuCM3029 System return codes and remove duplicate codes 2018-08-29 13:38:30 +10:00
Martin Kojtal 16d23702bf
Merge pull request #7873 from 0xc0170/fix_realtek_ipv6
realtek: fix #7829 - remove dhcps files
2018-08-28 14:37:46 +02:00
Seppo Takalo 9836b9bd6a Provide default mesh driver on NCS36510 2018-08-28 11:02:58 +03:00
Juho Eskeli d5b374b327 Correct comment about stack size in IAR linker file 2018-08-28 08:44:08 +03:00
Juho Eskeli 5cc06238ea Enable bootloader for NUCLEO_F207ZG 2018-08-28 08:44:08 +03:00
Juho Eskeli 22137b45dd Update NUCLEO_F207ZG linker files 2018-08-28 08:44:08 +03:00
Mahesh Mahadevan 2bc140e978 MIMXRT1050_EVK: Update SPI HAL driver
Use a different SDK API to write to the SPI Bus

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-08-27 14:20:49 -05:00
Cruz Monrreal 91354184dc
Merge pull request #7825 from SiliconLabs/siliconlabs-qspi
Silicon Labs QSPI HAL implementation
2018-08-27 13:51:38 -05:00
alrodlim 90689c3191 fixed pin names of I2C pins 2018-08-27 07:29:07 -05:00
Martin Kojtal a24cecfc94
Merge pull request #7805 from jamesbeyond/fm_test
Skip Greentea tests for Mbed OS code coverage on Fast Models
2018-08-27 10:39:43 +02:00
Martin Kojtal ce28c91405
Merge pull request #7534 from bentcooke/mote_L152_en_os5
enable MOTE_L152 for OS5
2018-08-27 10:27:36 +02:00
Steven Cooreman 55c6dade3d Apply changes corresponding to #7817
QSPI standard pin names were changed after the QSPI feature PR.
2018-08-27 10:10:18 +02:00
Steven e0d033bdd1 Allow unaligned input/output for QSPI
The code is written such that access to the data input/output happens word-by-word, and that means unaligned access is fine (though with a performance loss) on Cortex-M3/M4 devices.
2018-08-27 10:03:08 +02:00
Steven 845a5beb30 Initial commit of Silicon Labs QSPI HAL implementation
* For EFM32GG11, since that is the only Silicon Labs target with QSPI per today
* Verified working using the on-board flash and tests-mbed_hal-qspi
2018-08-27 10:03:08 +02:00
Russ Butler 22ebf69dea Revert "EFM32: Use SECURE_ACCESS to access the ROM table"
This reverts commit 1b0922e97b.
2018-08-25 20:40:35 -05:00
Russ Butler 4ff5ea40dd Revert uVisor changes for K64F
Revert the changes made in the commit:
1c2a7d8842
Added the commit: Access MCG and SIM through secure access
2018-08-25 20:40:31 -05:00
Cruz Monrreal 2f8e679183
Merge pull request #7592 from orenc17/remove_uvisor
Remove uVisor from mbed-os
2018-08-25 19:52:24 -05:00
Cruz Monrreal 7531b31c01
Merge pull request #7751 from mikaleppanen/realtek_emac_interf
Realtek RTL8195A wifi interface to inherit EMAC interface
2018-08-24 19:30:39 -05:00
Martin Kojtal 31a6fb49bd
Merge pull request #7817 from maciejbocianski/qspi_pinnames
standardise QSPI pin names
2018-08-24 21:12:25 +02:00
Martin Kojtal 2d330533a4
Merge pull request #7652 from andrewleech/nrf5x_config_lfclk
NRF5x: Fix config of LFCLK source / settings.
2018-08-24 13:05:24 +02:00
Maciej Bocianski 5195c820e6 standardise QSPI pin names 2018-08-24 12:09:51 +02:00
Martin Kojtal 812c6d5c88
Merge pull request #7783 from maciejbocianski/feature-qspi_merging
merge QSPI feature branch
2018-08-24 10:50:18 +02:00
Martin Kojtal ab029b5f65 realtek: fix #7829 - remove dhcps files 2018-08-23 16:48:00 +01:00
Cruz Monrreal cb8d09a88a
Merge pull request #7843 from codeauroraforum/MXRT_Fix_I2C_Byte_Transfer
MIMXRT1050: Fix I2C Byte transfer functions
2018-08-23 10:05:08 -05:00
Fred.Li 84eda278a5 Fix link issue for mbed-cloud-client-example with ARM toolchain. 2018-08-23 17:25:07 +08:00
ben 32647e6888 enable MOTE_L152 for OS5 2018-08-22 11:49:25 -05:00
Ashok Rao 19a571c911 Removing default flow control for BL652 2018-08-22 16:50:22 +01:00
Oren Cohen 787317b7eb Remove uVisor from mbed-os 2018-08-22 16:36:59 +03:00
Maciej Bocianski 3bf9df7b56 target DISCO_F413ZH: add QSPI flash pin names 2018-08-22 15:02:13 +02:00
adustm 6095ccf1b4 Add reset internal state before call to HAL_QspiInit function 2018-08-22 15:02:11 +02:00
adustm 7dda4e4fc6 Implement qspi_free function 2018-08-22 15:02:10 +02:00
adustm 5c26e15cd3 Fix support of max flash size 2018-08-22 15:02:09 +02:00
jeromecoutant 43258a8ff4 STM32 : add all QSPI pins in available targets 2018-08-22 15:02:08 +02:00
Maciej Bocianski 1534426b7e nrf52x: fix QSPI enable flag
QSPI feature was mistakenly moved form target nrf52840 to nrf52832
while rebasing. This change fixes it
2018-08-22 15:02:07 +02:00
Maciej Bocianski 8b36d6b39a NRF5: fix qspi R/W opcodes mapping 2018-08-22 15:02:05 +02:00
Maciej Bocianski c2cc559aa7 NRF5: fix qspi custom command sending 2018-08-22 15:02:05 +02:00
Maciej Bocianski 67798d6eb2 STM: add qspi pin names for DISCO_L475VG_IOT01A 2018-08-22 15:02:04 +02:00
Maciej Bocianski 42935bbdc0 STM qspi: temporary fix for qspi_free return value 2018-08-22 15:02:03 +02:00
Maciej Bocianski 1f4cc95f25 fix qspi command transfer for NORDIC
Add address unpacking support.
Only used in erase commands
2018-08-22 15:02:03 +02:00
adustm 2f06423a89 Add support for QSPI on DISCO_L476VG 2018-08-22 15:02:01 +02:00
adustm c00e49fcf2 Enable QSPI for DISCO_F746NG 2018-08-22 15:01:54 +02:00
adustm 293d1bda42 Add MBED_WEAK for pins 2018-08-22 15:00:22 +02:00
adustm 9b4b28fc3f Support maximum flash size : 4Gbytes 2018-08-22 15:00:22 +02:00
adustm 50b8225948 Enable QSPI feature for DISCO_F413ZH platform 2018-08-22 15:00:21 +02:00
adustm c57a47e4b5 Change default FlashSize to 64Mbit = 8Mbytes = 0x800000 2018-08-22 15:00:20 +02:00
adustm 8e08740237 Fix Instruction with no data command
Adding QSPI_DATA_NONE activates the transfer
of the command inside HAL_QSPI_COMMAND function
2018-08-22 15:00:19 +02:00
adustm 05899e9c70 Fix Address.Size and AlternateByes.Size by shifting them
The ST HAL code is waiting for the correctly shifted vlue
(for a direct write into the HW register)
2018-08-22 15:00:18 +02:00
Martin Kojtal d282c81e86 QSPI: add STM32L4 support
Disco IoT board support for QSPI. As it does not have dual flash support in QSPI,
we need to fix qspi hal implementation.
2018-08-22 15:00:17 +02:00
Martin Kojtal ae7bb17eaf QSPI: add flash pins for nrf52480_dk board 2018-08-22 15:00:16 +02:00
Martin Kojtal 0f7fd757a4 QSPI: add flash pins for F469 disco board 2018-08-22 15:00:16 +02:00
Martin Kojtal c778c90184 QSPI STM32: fix default fifo and cycle
As example for DISCO F469NI defines them
2018-08-22 15:00:15 +02:00
Martin Kojtal 8783956a77 QSPI STM32: fix prepare comman - alt/address 2018-08-22 15:00:14 +02:00
Martin Kojtal fff20729be QSPI STM32: fix command transfer
use write/read from STM32 driver
2018-08-22 15:00:14 +02:00
Martin Kojtal 5038b38622 QSPI STM32: fix pin merging
hw name as input
2018-08-22 15:00:13 +02:00
Martin Kojtal 16ca742d87 QSPI STM32: fix disabled format phase 2018-08-22 15:00:12 +02:00
Martin Kojtal 2766672f64 QSPI STM32: add QSPI_x support to pinnames 2018-08-22 15:00:12 +02:00
Martin Kojtal 660d250e0d QSPI STM32: init returns error if failed to init 2018-08-22 15:00:11 +02:00
Martin Kojtal 551f044e77 QSPI STM32: add qspi_command_transfer implementation 2018-08-22 15:00:11 +02:00
Martin Kojtal 6e5b889e52 QSPI STM32: remove polling from write/read
This will be part of custom instruction transfer, the flow will be:

1. write data
2. wait for transfer to complete (poll status register from the memory device)
2018-08-22 15:00:10 +02:00
Martin Kojtal 8da072d8af QSPI STM32: set default command values to none 2018-08-22 15:00:10 +02:00
Martin Kojtal 11ae100d80 QSPI STM32: fix return value in frequency 2018-08-22 15:00:09 +02:00
Martin Kojtal 5e75b39b78 QSPI STM32: fix ssel af selection 2018-08-22 15:00:09 +02:00
Martin Kojtal 7da0ac2516 QSPI: add STM32 implementation 2018-08-22 15:00:08 +02:00
Senthil Ramakrishnan cb4308ad64 Remove changes to Nordic SDK and modify HAL to track qspi init 2018-08-22 15:00:03 +02:00
Senthil Ramakrishnan 10a6fd6549 Add support for 1_1_2 and 1_2_2 modes in HAL 2018-08-22 15:00:01 +02:00
Senthil Ramakrishnan 16d121c5d2 Review fixes and doxygen changes 2018-08-22 15:00:00 +02:00
Senthil Ramakrishnan 009cc8b474 Enabling QSPI headers in Nordic HAL implementation and fix for UART STDIO definitions 2018-08-22 14:59:59 +02:00
Senthil Ramakrishnan 2df58e2d25 Modify QSPI HAL API to include an API for command-transfer operations 2018-08-22 14:59:59 +02:00
Martin Kojtal d1b51b6328 QSPI: initial HAL nrf52840 version
This commit adds QSPI HAL implementation for nrf52840 MCU targets
2018-08-22 14:59:58 +02:00
Martin Kojtal d28d13cc9b
Merge pull request #7790 from jeromecoutant/PR_LPTICKER_RTC
STM32 LPTICKER : RTC wake up timer is reset before setting a new one
2018-08-22 14:04:58 +02:00
Andrew Leech 629357270e NRF5x: Fix config of LFCLK source / settings. 2018-08-22 13:55:28 +10:00
Mahesh Mahadevan f71004cf89 MIMXRT1050: Fix I2C Byte transfer functions
1. Added a flag to issue START command
2. Do not send START command inside i2c_start function as
   the LPI2C hardware will issue a STOP on reception
   of a NACK
3. Remove the i2c_address global variable, this is not
   required

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-08-21 10:25:00 -05:00
Cruz Monrreal 17a525c487
Merge pull request #7619 from u-blox/cellular_ublox_udp_tcp_imp
UBLOX cellular api's for UDP and TCP
2018-08-21 10:12:47 -05:00
Cruz Monrreal 4b5c6c8953
Merge pull request #7823 from codeauroraforum/MIMXRT1050_Fix_I2C
MIMXRT1050_EVK: Update the I2C driver
2018-08-21 09:54:36 -05:00
Cruz Monrreal a8f390ebec
Merge pull request #7798 from simosillankorva/NUCLEO_F303RE_bootloader_support
Add bootloader support for target NUCLEO_F303RE
2018-08-21 09:50:26 -05:00
Cruz Monrreal c167275c6d
Merge pull request #7775 from jeromecoutant/PR_ASSERT
STM32 wrong MBED_ASSERT use
2018-08-21 09:44:23 -05:00
Cruz Monrreal c10ad7f544
Merge pull request #7212 from davidsaada/david_flashiap_test_small_flash
FlashIAP & NVStore tests: Skip test if overwriting code in flash
2018-08-21 09:41:51 -05:00
Oren Cohen 795248bcaf Restore lp_ticker_free to previous implementation when running with uvisor
This is a temporary patch until uvisor is removed
2018-08-20 13:20:45 +03:00
Mahesh Mahadevan 64e5eb01d2 MIMXRT1050_EVK: Update the I2C driver
1. Remove the repeated_start flag and code as this is not needed
   for the LPI2C module
2. Enable the SION bit on the I2C pins
3. Enable 22K Pullup option of the I2C pins
4. Update the 0 byte write implementation to ensure the START
   command gets flushed out of the FIFO

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-08-17 15:03:35 -05:00
Qinghao Shi 485fe79a71 add __ARM_FM macro in targets.json 2018-08-17 18:01:21 +01:00
Qinghao Shi f612ea0b47 replace hard-coded vector size with macro in linker scripts 2018-08-17 17:59:17 +01:00
Cruz Monrreal f15dbf2c3d
Merge pull request #7706 from jamesbeyond/fm_mem
Refactoring memory regions definitions for Fast Models MPS2 targets
2018-08-17 11:10:36 -05:00
Cruz Monrreal 8e25d2d905
Merge pull request #7669 from SigmaDeltaTechnologiesInc/master
SDT64, 8195, 32620, 32625, 51822, 52832B added to targets
2018-08-17 11:10:12 -05:00
David Saada 62a70f461b Fix TMPM64B IAR linker file
Remove unnecessary manual inclusion of tmpm64b_fc object file in linker script
2018-08-16 21:59:44 +03:00
Simo Sillankorva c6acfd389b Change NUCLEO_F303RE IAR Linker script heap size
* Change the heap size value to be the stated 1/4 of the RAM.
2018-08-16 01:58:43 -07:00
Jiwon Yune 515e35efe9 fixed errors related to MAX32625_NO_BOOT 2018-08-16 13:53:47 +09:00
Jiwon Yune f50e7e9620 SDT8195B removed 2018-08-16 11:05:19 +09:00
Cruz Monrreal 134ff0a3a9
Merge pull request #7777 from jeromecoutant/PR_SUNDAY
STM32F1 RTC : wrong Sunday value
2018-08-15 16:15:48 -05:00
Cruz Monrreal c4e814d9cc
Merge pull request #7716 from MateuszMaz/#issue5119_pwm_fix
Fix issue #5119, changed pwmout_api.
2018-08-15 16:12:41 -05:00
Cruz Monrreal b01d0abf4c
Merge pull request #7693 from kapi90/cm3ds_gpio_api_fix
Fix for CM3DS GPIO api
2018-08-15 15:53:42 -05:00
Cruz Monrreal b4e88392dd
Merge pull request #7645 from naveenkaje/fix_nrf
nrf_drv_twi: remove redundant nrf_drv_disable call in nrf_drv_twi_uninit
2018-08-15 15:51:21 -05:00
Simo Sillankorva 83608d59ac Add bootloader support for target NUCLEO_F303RE 2018-08-15 07:30:05 -07:00
jeromecoutant c8d628baf6 STM32 : update LPTICKER_DELAY_TICKS value
- decreased to 1 for low freq targets
- removed for high freq targets
- not changed for targets with LPTIM
2018-08-14 16:54:39 +02:00
jeromecoutant a0fa0b6a5a STM32 RTC : remove compilation warning with unused variable 2018-08-14 14:00:25 +02:00
jeromecoutant 7b77e50082 STM32 LPTICKER : RTC wake up timer is reset before settign a new one 2018-08-14 13:59:48 +02:00
jeromecoutant b5c258e398 STM32L4 : code cleanup in MSI SetSysClock 2018-08-14 09:20:52 +02:00
MateuszM 2aa67b8c16 Fix for issue #7707 PwmOut inverted
since obj->sequence = &obj->pulse
and most significant bit of sequence denotes the polarity, we should set it.
2018-08-13 17:39:27 +02:00
MateuszM e1d50193b0 Fix for issue #7743 NRF52 Cannot initialize PWM
Deleted lines that caused the problem. Note that, in nrf_drv_pwm_init there are lines that check if pwm instance is already running, so we don't even need to check it in nordic_pwm_init. 
nrf_drv_uninit should be used in nordic_pwm_restart.
2018-08-13 17:29:49 +02:00
jeromecoutant e455d74f3d STM32 : Sunday value is different for STM32F1 2018-08-13 17:04:56 +02:00
Cruz Monrreal 0e68570d49
Merge pull request #7686 from KariHaapalehto/1530_led
Correct MTB_ADV_WISE_1530 led configuration
2018-08-13 09:18:27 -05:00
jeromecoutant 063cad5992 STM32L4 assert in SetSysClock replaced 2018-08-13 16:01:49 +02:00
jeromecoutant ac06d5574b STM32L1 assert in SetSysClock replaced 2018-08-13 15:56:20 +02:00
jeromecoutant 220d033468 STM32L0 assert in SetSysClock replaced 2018-08-13 15:55:51 +02:00
jeromecoutant 749343f695 STM32F7 assert in SetSysClock replaced 2018-08-13 15:55:17 +02:00
jeromecoutant b47c1ef6c4 STM32F4 assert in SetSysClock replaced 2018-08-13 15:54:51 +02:00
jeromecoutant 974141ce48 STM32F3 assert in SetSysClock replaced 2018-08-13 15:51:35 +02:00
jeromecoutant bf7dc5f8b8 STM32F2 assert in SetSysClock replaced 2018-08-13 15:48:26 +02:00
jeromecoutant dc02be705a STM32F1 assert in SetSysClock replaced 2018-08-13 15:04:02 +02:00
jeromecoutant 76356039d9 STM32F0 assert in SetSysClock replaced 2018-08-13 14:53:33 +02:00
Markus Siglreithmaier 97fef1160c STM32L4: Fix sleep implementation
Correctly detect and handle the low power run mode when entering and exiting sleep mode.

The generic `hal_sleep` implementation tries to exit LPR mode always, resulting in a spin-loop during a critical section (disabled IRQ).
The new approach returns from LPR to Run mode if enabled (LPR bit set), enters sleep, and resets to the original state on wakeup (WFI).
2018-08-13 09:21:31 +02:00
Mika Leppänen 4385361d38 Changed Realtek RTL8195A wifi interface to inherit EMAC interface
This allows connection status callback build into EMAC interface class
to work with Realtek RTL8195A wifi.
2018-08-10 10:07:16 +03:00
Cruz Monrreal 54f40a0f4f
Merge pull request #7523 from maximmbed/max32625pico-bl-updates
Add bootloader configuration parameters for MAX32625PICO
2018-08-09 19:06:30 -05:00
Cruz Monrreal 7bcbb78661
Merge pull request #7729 from davidsaada/david_fix_arm_linker_script_renesas_realtek
Rename text region in ARM linker file for Renesas & Realtek boards
2018-08-09 15:57:29 -05:00
Cruz Monrreal c52d49c67b
Merge pull request #7731 from mirelachirica/wise_1570_clock_source_back_to_HSE_XTAL
Cellular: WISE_1570's system clock back to HSE_XTAL
2018-08-09 10:18:53 -05:00
Cruz Monrreal e85acac175
Merge pull request #7717 from LMESTM/fix_checkfifo
STM32: check for UART ongoing transfers before entering deepsleep
2018-08-09 10:17:00 -05:00
MateuszM b5eb59091a fix formatting 2018-08-08 16:53:21 +02:00
Mirela Chirica 2d53282c38 Cellular: WISE_1570's system clock back to HSE_XTAL 2018-08-08 16:24:33 +03:00
Cruz Monrreal d360da9d1d
Merge pull request #7419 from codeauroraforum/Add_MXRT_Sleep_Support
MIMXRT1050EVK: Fix Sleep support
2018-08-08 07:36:24 -05:00
David Saada 84412d6493 Rename text region in ARM linker file for Renesas & Realtek boards 2018-08-08 14:56:58 +03:00
Cruz Monrreal 0eb7e7dd89
Merge pull request #7703 from li-ho/adi_tmr_api
Resolve us_ticker.c api discrepancy between EV_COG_AD4050LZ and EV_COG_AD3029LZ
2018-08-07 09:16:55 -05:00
Cruz Monrreal 54bc12f91c
Merge pull request #7643 from bcostm/fix_uart_remove_force_reset
STM32: remove uart force_reset at init
2018-08-07 09:14:20 -05:00
Laurent Meunier e12d98e1c0 Use HAL coding style for function naming 2018-08-07 13:42:46 +02:00
Laurent Meunier 402f3f1c3f STM32: check for UART ongoing transfers before entering deepsleep
As suggested by Russ Butler in mbed-os issue #7328, and until there is an
implementation of mbed-os issue #4408, we are implementing a workaround
at HAL level to check if there is any ongoing serial transfer (which happens
if HW FIFO is not yet empty).

In case a transfer is ongoing, we're not entering deep sleep and
return immediately.
2018-08-07 11:30:53 +02:00
MateuszM b5d23c3f26 Fix issue #5119, changed pwmout_api.
The period of pwm we could get was limited to 69.9 ms, because prescaler value was set once only during initialization. base->mod is a 16 bit register, to get longer period we have to slow down the clk.
2018-08-07 09:36:32 +02:00
Mahesh Mahadevan 9cf2b76db9 MXRT1050_EVK: Enable Sleep function and add SKIP_SYSCLK_INIT macro
SKIP_SYSCLK_INIT prevents reinitializing the SYS_CLK PLL used by SDRAM.
This PLL is setup during bootup by the ROM code.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-08-06 11:55:33 -05:00
Mahesh Mahadevan 74c96b6359 MXRT1050_EVK: Sleep: add pre/post processing steps
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-08-06 11:55:32 -05:00
Mahesh Mahadevan e18e0f12f4 MXRT1050_EVK: Ensure certain low power function are linked to internal memory
Low power functions related to powering off FLEXSPI and SDRAM needs
to be copied to internal memory

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-08-06 11:55:13 -05:00
Mahesh Mahadevan a1d8298057 MIMXRT1050_EVK: Add Low Power Manager files
This is needed to support different Low-Power modes available
in MXRT1050

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-08-06 10:36:16 -05:00
Jiwon Yune 04fc7aa36f Generic pin names added 2018-08-06 14:50:19 +01:00
Edmund Hsu 10af90ac0a Resolve adi_tmr_ConfigTimer api conflict in us_ticker.c for both EV_COG_AD4050LZ and EV_COG_AD3029LZ 2018-08-06 16:41:55 +10:00
Edmund Hsu da6c6bdc49 Resolve adi_tmr_ConfigTimer discrepancy between __ADuCM4050__ and __ADuCM3029__ 2018-08-06 16:36:36 +10:00
Edmund Hsu 6a7bfeba6d Disable unused Configuration data from compiler warning
Add __ADuCM3029__ constants
2018-08-06 16:32:18 +10:00
Edmund Hsu 20de3366ae Add C++ linkage for adi_tmr.h 2018-08-06 16:25:32 +10:00
Edmund Hsu 9579440ce7 Add __ADUCM4050__ and __ADUCM3029__ to include MCU specific configurations 2018-08-06 16:23:25 +10:00
Qinghao Shi f2aae22f92 Refactoring memory regions definitions for MPS2_M0 targets
* align MPS2_M0 FVP target with other MPS2 targets
* moved memory_zones.h
* chnage the flash_api.c where referencing the old memory_zones
* modify mbed_rtx.h to use the memory_zones definations as INITIAL_SP
* all linker scripts reference the definitions from memory_zones.h
* tool chains use predefined 1K as ISR Stack size
* ARM Complier 5 and GCC will auto calculated heap size
* IAR use predefined 2MiB as heap size
2018-08-06 01:48:53 +01:00
Qinghao Shi 6f92504467 Refactoring memory regions definitions for MPS2_M0P targets
* added memory_zones.h
* all linker scripts reference the definitions from memory_zones.h
* tool chains use predefined 1K as ISR Stack size
* ARM Complier 5 and GCC will auto calculated heap size
* IAR use predefined 2MiB as heap size
2018-08-06 01:43:45 +01:00
Qinghao Shi 8fc384296e Refactoring memory regions definitions for MPS2_M7 targets
* added memory_zones.h
* all linker scripts reference the definitions from memory_zones.h
* tool chains use predefined 1K as ISR Stack size
* ARM Complier 5 and GCC will auto calculated heap size
* IAR use predefined 2MiB as heap size
2018-08-06 01:42:33 +01:00
Qinghao Shi 7159329efc Refactoring memory regions definitions for MPS2_M4 targets
* added memory_zones.h
* all linker scripts reference the definitions from memory_zones.h
* tool chains use predefined 1K as ISR Stack size
* ARM Complier 5 and GCC will auto calculated heap size
* IAR use predefined 2MiB as heap size
2018-08-06 01:42:15 +01:00
Qinghao Shi a9f44812ca Refactoring memory regions definitions for MPS2_M3 targets
* added memory_zones.h
* all linker scripts reference the definitions from memory_zones.h
* tool chains use predefined 1K as ISR Stack size
* ARM Complier 5 and GCC will auto calculated heap size
* IAR use predefined 2MiB as heap size
2018-08-06 01:41:35 +01:00
Bence Kaposzta f335fc10a6 Fix for CM3DS GPIO api 2018-08-03 15:10:49 +02:00
Kari Haapalehto 96457ab1e0 mbed-os-example_blinky didn't work with wise-1530, so MTB_ADV_WISE_1530
led configuration have been updated.
Also minor update to MTB_MXCHIP_EMW3166 led configuration, led3 is now
defined but not connected.
2018-08-03 10:29:13 +03:00
Cruz Monrreal ae40a09036
Merge pull request #7508 from mprse/ticker_free
Ticker free() - requirements, pseudo code, tests, implementation
2018-08-02 23:05:14 -05:00
Cruz Monrreal 1023280bd9
Merge pull request #7676 from OpenNuvoton/nuvoton_organize_file_struct
Nuvoton: Organize file structure
2018-08-02 10:13:36 -05:00
Jiwon Yune 0046800c09 SDT64B in targets.json simplified 2018-08-02 22:34:14 +09:00
Przemyslaw Stekiel ace821017f Add implementation of ticker_free() function to CI boards.
This PR provides implementation of ticker_free() function for the following boards:
ARCH_PRO
EV_COG_AD3029LZ
EV_COG_AD4050LZ
K22F
K64F
K82F
KW24D
KW41Z
LPC546XX
NRF51_DK
NRF52_DK
NUCLEO_F207ZG
NUCLEO_F401RE
NUCLEO_F429ZI
NUCLEO_F746ZG
REALTEK_RTL8195AM
2018-08-02 09:48:10 +02:00
TomoYamanaka 04fcd33f15 Renesas : Improve Flash iap
I modified the _page_program() because when the request of the size exceeding the maximum size(256 byte) per one writing of Flash recieved, it was not able to loop the writing with sifting the address every 256 byte.

Also I modified the return value of flash_get_page_size() because I found that the minimum size per one writing of Flash is 1 byte by reviewing Flash spec.
"FLASH_PAGE_SIZE" macro's value is remain 256, it doesn't be used at flash_get_page_size(), used at _page_program() for refferencing of the maximum page size.
2018-08-02 13:48:56 +09:00
Cruz Monrreal f9862b84e5
Merge pull request #7668 from bcostm/fix_cleanup_f7_hal_inittick
STM32F7: remove HAL_InitTick() declaration in us_ticker_data.h files
2018-08-01 21:42:22 -05:00
Martin Kojtal b74a1ddf0d
Merge pull request #7552 from TomoYamanaka/feature-lp-ticker
Renesas: Add LPTICKER
2018-08-01 15:01:30 +02:00
Martin Kojtal 9df48f561b
Merge pull request #7606 from bcostm/PULL_REQUEST_CUBE_UPDATE_F1_V1.6.1
STM32F1: update to CubeF1 V1.6.1
2018-08-01 15:00:21 +02:00
Martin Kojtal 2ec99158ef
Merge pull request #7642 from ashok-rao/SPI_CS_fix
Changing default SPI CS pin to SD card on MTB
2018-08-01 14:57:26 +02:00
Martin Kojtal c6aeaf0e52
Merge pull request #7658 from KariHaapalehto/update_wiced
Add default interface for wiced WiFi.
2018-08-01 14:55:53 +02:00
ccli8 6909159420 [Nuvoton] Organize file structure
This re-organization is to avoid duplicates regarding targets of the same MCU series.
2018-08-01 18:00:16 +08:00
Jiwon Yune 209a9dcc94 SDT52832B added 2018-08-01 18:21:45 +09:00
Jiwon Yune 784d17f68b SDT51822B added 2018-08-01 18:20:22 +09:00
Jiwon Yune 0634be8b5f SDT32625B added 2018-08-01 18:18:31 +09:00
Jiwon Yune df3afa7b57 SDT32620B added 2018-08-01 18:17:16 +09:00
Jiwon Yune 4a06f59de0 SDT8195B added 2018-08-01 18:15:46 +09:00
Jiwon Yune e5877910d2 SDT64B added 2018-08-01 18:13:33 +09:00
bcostm 2c96c5d270 STM32F7: remove HAL_InitTick() declaration in us_ticker_data.h files 2018-08-01 09:56:39 +02:00
Cruz Monrreal 63f62165d8
Merge pull request #7565 from OpenNuvoton/nuc472_emac_rst
Nuvoton: Fix NUC472 SD-Host HW IP reset definition
2018-07-31 11:44:01 -05:00
Cruz Monrreal 642fb9cc2c
Merge pull request #7622 from nismad01/myfix
MPS2 platform: Enable interrupt on rx for UART
2018-07-31 11:39:50 -05:00
Cruz Monrreal d65abb662f
Merge pull request #7289 from mikaleppanen/odin_iar_heap_inc
On STM32F439xI IAR linker file decreased stack size and increased heap
2018-07-31 11:36:52 -05:00
Cruz Monrreal cf84b05473
Merge pull request #6985 from OpenNuvoton/nuvoton_fix_rtosless_heap
Fix heap base/limit error with ARM_LIB_STACK/ARM_LIB_HEAP in RTOS-less
2018-07-31 11:36:42 -05:00
Kari Haapalehto 83c8571e68 WiFiInterface::get_target_default_instance() added to TARGET_WICED. 2018-07-31 15:54:20 +03:00
TomoYamanaka 87496df078 Add the clear process of "inited" flag in lp_ticker_free()
I added "lp_ticker_inited = 0" in lp_ticker_free() of lp_ticker.c, so
re-initialization will work.
2018-07-31 19:22:04 +09:00
TomoYamanaka 52cbc33d44 Implementation of LPTICKER feature for Renesas mbed boards
Although other venders implement this feature by using RTC, in my H/W(RZ_A1), I cannot use RTC because it does not satisfy the spec of LP Ticker (ms order and low frequency between 8 KHz and 64 KHz).
Therefore I implemented this feature by creating 1024 division by MTU2(Multi function Timer pulse Unit 2) in order to satisfy this spec.
As a result of investigating, the most unaffected channel among MTU2 placed on GR-PEACH and GR-LYCHEE was channel 3, so I use channel 3 for this feature.

- mbed_drv_cfg.h
  I added a macro of MTU2 channel to this file for commonalizing code for GR-PEACH and GR-LYCHEE, and referenced it's macro at us_ticker.c.
- targets.json
  I added a macro for enabling LP Ticker.
- mtu2.c mtu2.h
  I defined fuction of MTU2's clock supply and stop.
  Because MTU2 is utilized by pwm driver too, those function were referenced at lp_ticker driver and pwm driver.

- lp_ticker.c lp_ticker_init()
  In order to satisfy the LP Ticker spec, I implemented by creating 1024 division by MTU2.
  When an interrupt is required, it will be set with ticker_set_interrupt().

- lp_ticker.c lp_ticker_free()
  This function stops the counting and powerdown the lp_ticker.

- lp_ticker.c lp_read()
  This function returns the timer counter of MTU2.

- lp_ticker.c lp_ticker_set_interrupt()
  In order to satisfy specifications, I implemented lp_ticker_set_interrupt() function.

- lp_ticker.c lp_ticker_fire_interrupt()
  In order to satisfy spec, I implemented lp_ticker_fire_interrupt() function.
  Also I added GIC_EnableIRQ for allowing the interrupt at end of function.

- lp_ticker.c lp_ticker_get_info()
  To satisfy the spec, I implemented lp_ticker_get_info() function. The value of freq includes rounding off.
2018-07-31 19:22:03 +09:00
mudassar-ublox ffb4f926e9 Artistic style applied and updated power function 2018-07-30 19:41:02 +05:00
Naveen Kaje db91e7ed02 nrf_drv_twi: remove redundant nrf_drv_disable call in nrf_drv_twi_uninit
i2c_api implementation for NRF52 does a disable() followed by uninit().
The uniinit() implementation in NRF drivers layer makes another call to
disable. This throws off the state of the I2C instance leading to an
assert. Since the disable is only invoked from the I2C API layer for
Nordic, remove this redundant call.

Signed-off-by: Naveen Kaje <Naveen.Kaje@arm.com>
2018-07-30 09:18:43 -05:00
bcostm 9598dd9f12 STM32: remove uart force_reset at init 2018-07-30 14:52:31 +02:00
Ashok Rao 8c07fcd09f Changing default SPI CS pin to SD card on MTB 2018-07-30 12:23:37 +01:00
Nis Madsen 5567ac3be6 MPS2 platform: Enable interrupt on rx for UART 2018-07-27 14:11:27 +02:00
mudassar-ublox a8abeccdac UBLOX cellular api's for UDP and TCP 2018-07-26 19:20:38 +05:00
bcostm b47e599281 F1 ST CUBE V1.6.1: add I2C patches 2018-07-26 15:44:31 +02:00
ccli8 313f322cf7 [Nuvoton] Replace __wrap__sbrk with overriding _sbrk
With _sbrk being weak, we can override it directly rather than #if to support heap with
two-region model.
2018-07-26 15:47:25 +08:00
bcostm 8ce35ba845 F1 ST CUBE V1.6.1
- stm32f1xx hal V1.1.2
2018-07-25 14:20:11 +02:00
Martin Kojtal 7adfcbef71
Merge pull request #7551 from M-ichae-l/realtek-rtl8195am-remove-DEVICE_EMAC
realtek rtl8195am remove DEVICE_EMAC
2018-07-25 14:18:57 +02:00
ccli8 caf06e83c1 [Nuvoton] Fix __user_setup_stackheap and ARM_LIB_STACK/ARM_LIB_HEAP cannot co-exist in RTOS-less build 2018-07-25 17:19:09 +08:00
Przemyslaw Stekiel c0ee843d63 Add lp/us ticker_free() functions stub.
This patch adds only empty stubs of `us_ticker_free()` and `lp_ticker_free()` for all boards where these functions are not implemented.
2018-07-25 08:58:38 +02:00
ccli8 d6ae30a728 [Nuvoton] Merge multiple ARM/ARMC6 sys.cpp into one 2018-07-25 10:04:31 +08:00
Cruz Monrreal e4108b5842
Merge pull request #7554 from jamesbeyond/fm_flash
Enable HAL Flash API on Fast Models MPS2 targets
2018-07-24 11:47:00 -05:00
Cruz Monrreal 5d5ca62a5e
Merge pull request #7553 from bcostm/fix_L496_sct
STM32L496: fix RAM size in ARM scatter file
2018-07-23 10:14:05 -05:00
Cruz Monrreal 0c2ffe5e58
Merge pull request #7519 from Wiznet/master
Wiznet: fix us_ticker & gpio bug
2018-07-23 10:13:10 -05:00
Cruz Monrreal 21dbbc5e8b
Merge pull request #7510 from mattbrown015/fix_stm32_gpio_irq_deepsleep
STM32: Improve GPIO IRQ edge detection when waking from deepsleep
2018-07-23 10:12:49 -05:00
Cruz Monrreal 057138c2a0
Merge pull request #7536 from ganesh-ramachandran/master
Add Support for Toshiba TMPM3H6
2018-07-20 12:38:25 -05:00
Cruz Monrreal bb7b97cadc
Merge pull request #7491 from evva-sfw/feature/EFM32_make_PeripheralPins_overridable
EFM32: fix weak PeripheralPins configuration
2018-07-20 08:01:39 -05:00
cyliangtw 240619745d Fixed NUC472 SD & EMAC IP reset define 2018-07-20 18:23:41 +08:00
Cruz Monrreal 541fc1f28b
Merge pull request #7539 from jeromecoutant/PR_LL_API
STM32F2/F4/F7 : LL API is now available for IRQ
2018-07-19 20:43:28 -05:00
Cruz Monrreal 218811024f
Merge pull request #7479 from SiliconLabs/feature/crc
Silicon Labs: Add support for hardware CRC
2018-07-19 13:06:42 -05:00
Qinghao Shi f207944341 enable HAL FLASH API on Fast Models MPS2 targets 2018-07-19 14:41:21 +01:00
bcostm bf8587ed50 STM32L496: fix RAM size in ARM scatter file 2018-07-19 14:02:05 +02:00
Ganesh Ramachandran 8673286100 Resolved conflict in targets/targets.json 2018-07-19 16:32:51 +05:30
Ganesh Ramachandran bfcfe9cc4b Added Support for Toshiba TMPM3H6 2018-07-19 16:31:11 +05:30
zzw b6a67c103b realtek rtl8195am remove DEVICE_EMAC
1, remove DEVICE_EMAC for wifi feature
2018-07-19 18:07:18 +08:00
Cruz Monrreal dd6482b955
Merge pull request #7504 from TacoGrandeTX/feature_itm_fix
Feature itm fix
2018-07-18 09:01:13 -05:00
Cruz Monrreal db9a0e8b72
Merge pull request #7533 from marcuschangarm/fix-nrf52832-iar
Fix linker script for NRF52832/IAR
2018-07-18 08:56:44 -05:00
Cruz Monrreal e9e1ff997d
Merge pull request #7302 from OpenNuvoton/nuvoton_m2351_v1.1
Support Nuvoton's NUMAKER_PFM_M2351 target
2018-07-18 08:49:55 -05:00
jeromecoutant 59fd0c0cce STM32F2/F4/F7 : LL API is now available 2018-07-18 15:17:46 +02:00
Marcus Chang 9a073c0ae4 Fix linker script for NRF52832/IAR
IAR linker script was using memory settings from the NRF52840 and
not the NRF52832.
2018-07-17 12:43:23 -07:00
PHST 804edd578e Place "MBED_WEAK" for IAR-Toolchain before the type. 2018-07-17 08:12:41 +02:00
Keyur Hariya ed94e6aa35 Add bootloader configuration parameters for MAX32625PICO and rework targets.json 2018-07-16 18:26:51 -05:00
PHST de266d827e Added missing include. 2018-07-16 19:28:54 +02:00
PHST 1658349965 Replace __attribute__((weak)) with MBED_WEAK 2018-07-16 15:38:25 +02:00
PHST a8dcf52971 Make PeripheralPins.c configuration tables weakly defined to be overridable for target EFM32GG11. 2018-07-16 12:35:44 +02:00
PHST 95d78df962 EFM32 Make PeripheralPins.c configuration tables weakly defined to be overridable.
See issue "https://github.com/ARMmbed/mbed-os/issues/7424#issuecomment-404233377"
2018-07-16 11:48:53 +02:00
Steven Cooreman 86491627bf Add implementation for CRC API 2018-07-16 11:08:45 +02:00
justinkim 8b5485664d fix timer Interrupt callback function bug 2018-07-16 14:44:15 +09:00
justinkim 65601525d6 add Systick configuration function in Init function 2018-07-16 14:43:45 +09:00
justinkim 3b412128af fix GPIO bug & typo
initialization bug
2018-07-16 14:42:48 +09:00
justinkim 6e86402d8a add GPIO Pad Type Define & fix typo 2018-07-16 14:41:19 +09:00
Deepika 455f1fd440 [M2351] Support only ARMC6 toolchain
Support for GCC_ARM/IAR toolchains are TODO.
2018-07-16 10:15:36 +08:00
Cruz Monrreal 38744b9e68
Merge pull request #7498 from bcostm/fix_hsi_lse_lpuart
STM32: enable HSI/LSE clocks for LPUART
2018-07-14 13:33:35 -05:00
Cruz Monrreal 671b3c875e
Merge pull request #7507 from jeromecoutant/PR_LPTIM
STM32 LPTICKER with LPTIM minor update
2018-07-14 06:29:36 -05:00
Cruz Monrreal 602b0cea09
Merge pull request #7079 from SiliconLabs/feature/EFM32GG11-OS5.9
Add support for EFM32GG11
2018-07-13 17:33:34 -05:00
Cruz Monrreal cc8651e45c
Merge pull request #7505 from naveenkaje/pushbranch
Fix linker script for NRF52840/ARM
2018-07-13 13:30:25 -05:00
Cruz Monrreal 531ee3c5d4
Merge pull request #7461 from 0xc0170/fix_raytac_removal
Raytac: target removal
2018-07-13 11:46:58 -05:00
Deepika 2bbe043793 [M2351] Adding missing ENDP for ARM 2018-07-13 10:56:45 -05:00
mattbrown015 7ef70223fb Improve GPIO IRQ edge detection when waking from deepsleep 2018-07-13 16:02:31 +01:00
Cruz Monrreal 1145d6bb3c
Merge pull request #7489 from mirelachirica/wise_1570_hsi_source_clock
Cellular: HSI set to be source clock for WISE_1570
2018-07-13 09:12:22 -05:00
jeromecoutant 8a0b83233a STM32 LPTICKER with LPTIM minor update
Code cleaning (L0 Cube update, comment precision)
2018-07-13 10:03:31 +02:00
Naveen Kaje ed251020b6 NRF52832 linker script: formatting fix 2018-07-12 15:19:13 -05:00
Naveen Kaje 192eb28814 Fix linker script for NRF52840/ARM 2018-07-12 15:19:13 -05:00
RFulchiero 0198481f8f Improved formatting for preprocessor conditionals. 2018-07-12 13:30:36 -05:00
Marcus Chang 10b90edea3 Fix ITM on NRF52 series
The ITM must be initialized before the SoftDevice, but due to the
lazy initialization in C++ on (at least) GCC the ITM init call
might happen too late.

This commit moves the initialization code into the NRF52 system
startup file.
2018-07-12 13:29:24 -05:00
Cruz Monrreal f4c936f455
Merge pull request #7486 from marcuschangarm/fix-nrf52-iar
Fix linker script for NRF52840/IAR
2018-07-12 10:09:12 -05:00
Cruz Monrreal 6300d8b5e4
Merge pull request #7487 from marcuschangarm/fix-nrf52-serial
Allow STDIO pins to be NC in NRF52 series
2018-07-12 10:05:08 -05:00
bcostm 665de33cc6 stm32 lpuart: enable lse and hsi if not done 2018-07-12 15:58:02 +02:00
ccli8 e61c5146c6 [M2351] Fix binary-compatible across compilers in secure functions
1. Rename m2351_stddriver_sup.h/c to stddriver_secure.h/.c for naming consistency
2. Add hal_secure.h to include hal-exported secure functions
3. Change return/argument type in secure functions:
   (1) Change int to int32_t
   (2) Change PinName to int32_t
   (3) Change time_t to int64_t
4. Update secure lib/bin accordingly
2018-07-12 18:01:41 +08:00
ccli8 6bf8e191af [M2351] Support configurable for partitioning flash/SRAM 2018-07-12 18:01:39 +08:00
ccli8 778aa1e766 [M2351] Place default secure binary/library 2018-07-12 18:01:38 +08:00
ccli8 31bf7bf342 [M2351] Fix include file name error on case-sensitive system 2018-07-12 18:01:36 +08:00
ccli8 d350f45b4b [M2351] Synchronize lp_ticker code to us_ticker
This is to make us_ticker/lp_ticker code consistent.
2018-07-12 18:01:35 +08:00
ccli8 688029a511 [M2351] Remove special handling for dummy interrupt in lp_ticker
It is because dummy interrupt is very rare or pending time caused by it
is very short.
2018-07-12 18:01:34 +08:00
ccli8 124b4ad557 [M2351] Remove NUMAKER_PFM_M2351_S/_NS targets 2018-07-12 18:01:33 +08:00
ccli8 c382e9642e [M2351] Upgrade chip version to B from A
There is a reset halt issue with PLL in A version.
To switch back to A version for some reason, define NU_CHIP_MAJOR to 1.
2018-07-12 17:52:10 +08:00
ccli8 c725f188ec [M2351] Change pinout to meet NuMaker-PFM-M2351 V1.1 2018-07-12 17:52:09 +08:00
ccli8 93ee13adbe [M2351] Change secure flash/SRAM to 256KB/32KB as default
This is to compilant with CMSIS pack.
2018-07-12 17:52:08 +08:00
ccli8 c3c661da8d [M2351] Change secure/non-secure stack/heap size
1. Change RTOS-less main stack/RTOS ISR stack size to 2KiB
2. Change secure/non-secure heap size to 16KiB/32KiB for IAR
2018-07-12 17:52:07 +08:00
ccli8 04f723755b [M2351] Meet new RTC HAL spec (Mbed OS 5.9)
1. Power down RTC access from CPU domain in rtc_free. After rtc_free, RTC gets
   inaccessible from CPU domain but keeps counting.
2. Fix RTC cannot cross reset cycle.
2018-07-12 17:52:06 +08:00
ccli8 6729b65236 [M2351] Meet new lp_ticker HAL spec (Mbed OS 5.9)
1. Add LPTICKER in device_has option of targets.json file.
2. Disable interrupt in lp_ticker_init
3. Add lp_ticker_free
4. Enable interrupt in lp_ticker_set_interrupt/lp_ticker_fire_interrupt
5. Disable interupt in ISR
2018-07-12 17:52:05 +08:00
ccli8 9cbc8b21ee [M2351] Meet new us_ticker HAL spec (Mbed OS 5.9)
1. Add USTICKER in device_has option of targets.json file.
2. Disable interrupt in us_ticker_init
3. Add us_ticker_free
4. Enable interrupt in us_ticker_set_interrupt/us_ticker_fire_interrupt
5. Disable interrupt in ISR
2018-07-12 17:52:03 +08:00
ccli8 de83cb2892 [M2351] Add secure gateway functions SYS_LockReg_S/SYS_UnlockReg_S 2018-07-12 17:52:02 +08:00
ccli8 990665512d [M2351] Add SD pinmap 2018-07-12 17:52:01 +08:00
ccli8 1b9fa07b6f [M2351] Default MBED_TZ_DEFAULT_ACCESS to 1 to control secure SYS/CLK regions from non-secure threads
To initialize/uninitialize H/W module, we need to control secure SYS/CLK regions through secure functions.
For a new thread to call these secure functions, we need to allocate secure context for it.
2018-07-12 17:52:00 +08:00
ccli8 89d32227a0 [M2351] Replace __attribute__((cmse_nonsecure_entry)) with compiler agnostic __NONSECURE_ENTRY 2018-07-12 17:51:59 +08:00
ccli8 767e74b1db [M2351] Support TrustZone and bootloader for IAR 2018-07-12 17:51:58 +08:00
ccli8 8f1623f717 [M2351] Add consistency check for CRYPTO/CRPT's secure attribute and TRNG/Mbed TLS H/W 2018-07-12 17:51:55 +08:00
ccli8 2854b57091 [M2351] Remove dead code with '#if 0' in SPI 2018-07-12 17:51:54 +08:00
ccli8 d3c64785c7 [M2351] Add GPIO debounce configuration in targets.json 2018-07-12 17:51:53 +08:00