Commit Graph

3796 Commits (mbed-os-5.10)

Author SHA1 Message Date
shileiyu d61320c9ea New target UNO_91H from RDA Microelectronics. 2018-11-16 14:49:17 +00:00
Deepika 0e5d395bb2 Add library and secure application for FlashIAP change 2018-11-16 14:49:17 +00:00
Qinghao Shi 550091867b fix bug set a correct page size 2018-11-16 14:49:17 +00:00
jeromecoutant 3be93e4a56 STM32 GPIO : code cleaning 2018-11-16 14:49:17 +00:00
Adam Heinrich aeb2b2a1d9 STM32F407VG: Add FLASH support 2018-11-16 14:49:17 +00:00
Leon Lindenfelser e3ce1e1702 Update peripheral pins
1. Add missing SPI and I2C pins.
2. Remove pin definitions for pins that are no connects.
2018-11-16 14:49:17 +00:00
Qinghao Shi cf8f2b01df Cosmetic coding changes of remove white space 2018-11-16 14:49:17 +00:00
Qinghao Shi a0b29f1ac1 update GCC startup script to align with armcc and iar 2018-11-16 14:49:17 +00:00
Mahesh Mahadevan 68114ed82b 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-11-16 14:49:17 +00:00
Ganesh Ramachandran 8c2b0268ac Updated license header 2018-11-16 14:49:17 +00:00
Ganesh Ramachandran d40c357863 Added MBED_APP_START and SPI pin definitions 2018-11-16 14:49:17 +00:00
Ganesh Ramachandran 4e812f2380 Added Support for TOSHIBA TMPM3HQ 2018-11-16 14:49:17 +00:00
Bence Kaposzta 8624144759 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-11-16 14:49:17 +00:00
bcostm d5c8baa364 STM32F413ZH: fix wrong flash size for ARM compiler 2018-11-04 22:33:49 -06:00
bcostm 8731bc4080 STM32F413ZH: enable bootloader in targets.json 2018-11-04 22:33:49 -06:00
bcostm 3d70681879 STM32F413ZH: add defines for bootloader 2018-11-04 22:33:49 -06:00
micgur01 08cc9df94d code review for Update linker scripts for bootloader target L496GZ 2018-11-04 22:31:17 -06:00
micgur01 a30aef7771 code review for Update linker scripts for bootloader target L496GZ 2018-11-04 22:31:16 -06:00
micgur01 7f66158633 change mode to 664 2018-11-04 22:31:16 -06:00
micgur01 91695ab172 Update linker scripts for bootloader for L496GZ 2018-11-04 22:31:16 -06:00
Leszek Rusinowicz e87c6b3e82 Removed "intermediate" PSOC6 targets from buildable target list. 2018-11-02 19:50:03 -05:00
Leszek Rusinowicz 43f5aa96fe 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-02 19:50:03 -05:00
Leszek Rusinowicz 4a07001873 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-02 19:50:02 -05:00
Leszek Rusinowicz 9c93f3a850 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-02 19:50:02 -05:00
Leszek Rusinowicz 9e377f631f Added BLE support based on CORDIO stack. 2018-11-02 19:50:02 -05:00
Leszek Rusinowicz 24fcd69e1a 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-02 19:50:02 -05:00
Leszek Rusinowicz 5e629e428c Initial version with support for PSoC 6 CY8C63XX and both cores using updated PDL 3.0.1 beta. 2018-11-02 19:50:01 -05:00
Adrien Chardon 816d33f368 Initial support for PSoC 6. 2018-11-02 19:50:01 -05:00
bcostm def8634aea DISCO_F769NI: enable bootloader in targets.json 2018-11-02 19:50:00 -05:00
bcostm e18222d954 DISCO_F769NI: add definitions for bootloader 2018-11-02 19:50:00 -05:00
Ammad Rehmat 570329c0c2 fixes the credentials storage, copies them internally rather than just a pointer to external storage 2018-11-02 19:49:59 -05:00
Adam Heinrich c09aa6458a STM32F407VG: Add TRNG support 2018-11-02 19:49:59 -05:00
bcostm 591ff201b0 NUCLEO_L4R5ZI: fix 8-bytes data alignment 2018-11-02 19:49:58 -05:00
aqin 38260833fd BLE support added 2018-11-02 19:49:58 -05:00
Marcus Chang ae4df9171b 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-11-02 19:49:55 -05:00
Marcus Chang e2867d697d 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-11-02 19:49:55 -05:00
Russ Butler 0d882a952d 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-11-02 19:49:55 -05:00
Naveen Kaje b3b68bc995 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-11-02 19:49:54 -05:00
Mahesh Mahadevan 6922f435a1 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-11-02 19:49:53 -05:00
Mahesh Mahadevan 7f3734d051 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-11-02 19:49:53 -05:00
Mahesh Mahadevan be67ce255d 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-11-02 19:49:53 -05:00
Mahesh Mahadevan 04949045ea K82F, KL82Z: Update the QSPI SDK driver to the latest version
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-11-02 19:49:53 -05:00
Mahesh Mahadevan 41b069860c QSPI: Remove QSPI from UBRIDGE and USENSE target
This needs a device specific file

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-11-02 19:49:53 -05:00
Mahesh Mahadevan 4b34310461 MCUXpresso: Add the QSPI HAL driver
This should support QSPI on Kinetis devices

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-11-02 19:49:53 -05:00
jeromecoutant a116d59da1 STM32 RTC : Prescaler calculation issue 2018-11-02 19:49:52 -05:00
Mahesh Mahadevan 249b697743 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-11-02 19:49:52 -05:00
Mac Lobdell 7b8286fa3e Ensure storage feature is not added to K66F 2018-11-02 19:49:52 -05:00
maclobdell fa28d2e08e K66F has an SD Card on board. Configure it as the default block device storage. 2018-11-02 19:49:52 -05:00
Naveen Kaje d1a9ec7e59 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-11-02 19:49:51 -05:00
Naveen Kaje 0483eae559 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-11-02 19:49:51 -05:00