Commit Graph

1279 Commits (3e63c20bba2a01acdb8ca674eb63e9f6ce8fa48e)

Author SHA1 Message Date
bcostm 3e63c20bba Add DISCO_L475VG_IOT in mbed_rtx.h 2017-06-20 17:13:41 +01:00
bcostm c1eda08508 Add DISCO_L475VG_IOT specific files 2017-06-20 17:13:40 +01:00
Vincent Coubard d4d21435f8 NRF52840: Adjust idle thread stack size.
A stack size of 256 bytes is not enough on the NRF52840, this patch
changes it to a size of 512 bytes.
2017-06-20 17:13:37 +01:00
Laurent MEUNIER 4529757b2d NUCLEO_L476RG: FLASH size of 1MB, not 2MB
MBED_APP_SIZE was erroneously defined to 2MB for this target,
while it's only 1MB.
2017-06-20 17:13:36 +01:00
Laurent MEUNIER 2d4d542e4d NUCLEO_L476RG: GCC_ARM ld file fix
Following
Merge pull request #4063 from LMESTM/17q2_L4_bootloader
the NUCLEO_L476RG binairies could not boot anymore.

The change done in #4063 was derived from work on NUCLEO_L429ZI target
which supports uvisor. The VECTORS defintiion is introduced as part of
uvisor support and requires further changes in ld file which were missing.
As uvisor is not considered yet, we remove VECTORS for now and will
introduce only when needed.
2017-06-20 17:13:36 +01:00
Laurent MEUNIER da7e882c13 STM32: Put some serial code in common between families 2017-06-20 17:13:35 +01:00
Laurent MEUNIER cc7772e2e1 STM32: serial: clear Overrun flag if it is set when checking if readable
Note that this could have side effects on the application as it would
not be aware that data has been missed. This may be later solved by
adding an error management parameter to the Serial API in mbed.

The advantage is that the serial link can work again.
2017-06-20 17:13:34 +01:00
Andreas Larsson a24a5d7fb6 Moved ODIN target files into STM32F439xI folder to avoid duplicate code 2017-06-20 17:13:34 +01:00
mattot01 64d3fd464b Enable IAR and GCC_ARM compiler for CM3DS MPS2
1. Add startup code and linker script for IAR and
   GCC_ARM compilers.
2. Enable IAR and GCC_ARM compilers in targets.json.

Change-Id: I742a89ae73a4e5ede980a8af0821c3f0e5a461ef
Signed-off-by: Mate Toth-Pal <mate.toth-pal@arm.com>
2017-06-20 17:13:32 +01:00
Tamas Ban 29520eaaa4 Implement RTC(Real Time Clock) API on CM3DS target
- Modify CMSDK_CM3DS.h: add register interface
- Modify targets.json: add RTC as available device to CM3DS
- Create rtc_api.c: implement mandatory API functions

Change-Id: I14bc1074a9ac0d5e4cbada46d3c90ca82c1e28b0
Signed-off-by: Tamas Ban <Tamas.Ban@arm.com>
2017-06-20 17:13:32 +01:00
gabker01 98a04727eb Ethernet driver for MPS2
Refactor SMSC9220 Ethernet controller driver

Change-Id: I75c3c42d5675441de1292100a54c50d990070c6f
Signed-off-by: Gabor Kertesz <gabor.kertesz@arm.com>
2017-06-20 17:13:32 +01:00
gabker01 9b890198dd Implement low-level Ethernet interface for lwIP
Based on lwip_ethernetif.c skeleton file,
use init, receive and transfer
functionality of SMSC9220 Ethernet driver
for the lightweight IP stack.

Receive mechanism is interrupt driven.

HW buffer sizes:
Tx = 4608 bytes (MTU)
Rx = 10560 bytes

lwIP fine tuning:
mbed-os/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/opt.h

Change-Id: I0ea95650c65fb32cafb5c2d3dde11420c61dba66
Signed-off-by: Gabor Kertesz <gabor.kertesz@arm.com>
2017-06-20 17:13:31 +01:00
Tamas Kaman 87d4003edb Create CM3DS_MPS2 target
- Creates new target in targets.json
 - Creates device specific files under ARM_SSG/CM3DS_MPS2 directory
 - Driver layer files under CM3DS_MPS2 are based on Beid target
 - Device specific files under CM3DS_MPS2/device are based on CMSIS_5 and Beetle

Change-Id: I29ea7a7f42b11cf25b516cce4b9255ab828ca019
Signed-off-by: Tamas Kaman <Tamas.Kaman@arm.com>
Signed-off-by: Marc Moreno <marc.morenoberengue@arm.com>
2017-06-20 17:13:31 +01:00
Mahadevan Mahesh 8da1eea160 Issue#4528 K82F: Move the UART clock inititialization to board specific file
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-06-20 17:13:31 +01:00
Martin Kojtal c1e7aef71e ncs36510: timer.h rename
This fixes an issue as Timer.h is mbed file, thus if this file gets included first,
causes failures.
2017-06-15 14:58:23 +01:00
Martin Kojtal 7f76ad57f9 targets: micronfcboard should add macros, not overwrite 2017-06-15 14:58:23 +01:00
Russ Butler 7281d09257 Fix STM32 crashes on boot due to unset VTOR
Remove HAL_Init and related code from SystemInit and move it to
mbed_sdk_init. The function SystemInit is called early in the boot
sequence before RAM is initialized or the VTOR is setup, so it should
not be used to perform the HAL initialization.

This fixes crashes due the vector table being used before it has been
relocated.
2017-06-15 14:58:22 +01:00
Yuguo Zou 34e299a9cf Resolve Realtek device small code space issue
switch on TCM section usage, this should give user code more codespace.
2017-06-11 09:48:46 +01:00
Mahadevan Mahesh 719f5a6aa5 Flash API support using the MCUXpresso drivers
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-06-11 09:48:45 +01:00
Aksel Skauge Mellbye 7717af9e29 Add flash API support 2017-06-11 09:48:37 +01:00
Kevin Gilbert aed4543ecd Original pull request had added these checks to a deleted file. Replicating that change to allow builds on the NRF52840_DK (see original PR #4088 to see the explanation for the removal of spi async) 2017-06-11 09:48:36 +01:00
Andrzej Puzdrowski c479a6a025 disbale SPIM which fix block device 2017-06-11 09:48:36 +01:00
Andrzej Puzdrowski 9d096176ec Rebase of 7e8cfa8076
[NRF52840]: fix SdBlockDevice capability device by disabling SPI_ASYNC mode.
2017-06-11 09:48:35 +01:00
Laurent MEUNIER f7119af2aa STM32 L4: Flash API typo 2017-06-11 09:48:35 +01:00
Laurent MEUNIER d903955760 Removing duplicate defines
Those defines are already available in STM32 L4 SDK and don't need to
be (re)defined here.
2017-06-11 09:48:34 +01:00
Laurent MEUNIER b5c3801730 Fix L432KC compilation error 2017-06-11 09:48:34 +01:00
Laurent MEUNIER d2354e2c1f Activate FLASH on STM32 L4 targets 2017-06-11 09:48:34 +01:00
Laurent MEUNIER 08b8b63f2c STM32L4 : add Flash API support 2017-06-11 09:48:33 +01:00
Aksel Skauge Mellbye 6f2cbf25ed Fix bug with SPI MISO and CS handling 2017-06-11 09:48:33 +01:00
Aksel Skauge Mellbye ca90cc1563 Add bootloader support
* Make memory sections configurable in linker files
* Dynamically determine vector location in flash for NVIC relocation
* Advertise bootloader support in targets.json
2017-06-11 09:48:33 +01:00
Jimmy Brisson 191ea7580c Correctly name rom.a 2017-06-11 09:48:31 +01:00
Sam Grove 78e149c161 Add virtual nvic support to OC_MBUINO (LPC11U24 based) 2017-06-11 09:48:30 +01:00
Russ Butler e155d1a830 Define CMSIS_VECTAB_VIRTUAL for M0 targets
Define CMSIS_VECTAB_VIRTUAL for the M0 targets which have a
corresponding driver. The only M0 target missing this is the LPC4330_M0
which is not part of the 2 or 5 release.
2017-06-11 09:48:30 +01:00
Russ Butler d5320977ff Restore cmsis_nvic for Cortex-M0 targets
Restore cmsis_nvic (cmsis_nvic.c and cmsis_nvic.h) files for the
implementations which use a mechanism other than the VTOR to set
interrupts. These are vendor specific and were done for M0 devices
which do not have a VTOR.

Note - There were two cmsis_nvic files which did not use the VTOR that
which not restored in this patch. This is because these targets were
not M0 devices and could use the new unified implementation instead.
These files are:
targets\TARGET_ARM_SSG\TARGET_MPS2\TARGET_MPS2_M0P\device\cmsis_nvic.c
targets\TARGET_ONSEMI\TARGET_NCS36510\device\cmsis_nvic.c

Note - cmsis_nvic.c and cmsis_nvic.h were initial removed in
(and restored from) the commit:
b97ffe8fdc -
"CMSIS5: Replace target defined NVIC_Set/GetVector with CMSIS implementation"
2017-06-11 09:48:30 +01:00
Russ Butler 44bb5bec0b Change NUCLEO_L031K6 to M0+
Change the core type of the NUCLEO_L031K6 from an M0 to an M0+
so NVIC_SetVector works correctly.
2017-06-11 09:48:29 +01:00
Aksel Skauge Mellbye ceecd123f8 Enable dynamic heap with ARMCC
When using ARM Compiler 5, the RTX config hard-coded the heap and stack
sizes to specific values. This prevented the RTX HAL from dynamically
allocating unused memory as heap space.

Specifically, the HEAP_START define prevents this logic in RTX_CM_lib.h
from activating. The rest of the defines are also set in that header,
and should be removed from here.
2017-06-11 09:48:26 +01:00
Mahadevan Mahesh 745a1ed17d Fix comments in KW41Z hardware entropy driver
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-06-11 09:48:26 +01:00
Mahadevan Mahesh a86ea3d520 Add TRNG support for KW41Z
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-06-11 09:48:26 +01:00
Andreas Larsson 7a6dba69eb Fixed wrong stack size start 2017-06-11 09:48:25 +01:00
Andreas Larsson cb08d6f14c Fixed comment, 439ZI to more generic 439xI 2017-06-11 09:48:25 +01:00
Andreas Larsson a8c5e71897 Fixed comment alignments 2017-06-11 09:48:25 +01:00
Andreas Larsson 656b9b0f70 Added MBED_APP_START and MBED_APP_SIZE used by the app when a boot loader is present 2017-06-11 09:48:24 +01:00
Andreas Larsson aa6aa82471 Rebase of: 2d2f0a0b5c
Added missing bootloader_supported for NUCLEO_F439ZI
2017-06-11 09:48:24 +01:00
Aksel Skauge Mellbye c9b8bee5ad Bugfixes to using bootloader with Series 1 devices. 2017-06-11 09:48:23 +01:00
Aksel Skauge Mellbye 7550f62777 Fix compile warnings and ticker test failure
* Using PinName as bitfield doesn't work without warnings, since NC
  needs all 32 bits to be represented.
* lp_ticker should not be freed when interrupt is disabled, since this
  will kill the timebase.
2017-06-11 09:48:23 +01:00
Andrzej Puzdrowski 98bb2472fd change: trng_get_bytes returns at last one random byte. 2017-06-11 09:48:22 +01:00
Andrzej Puzdrowski 75bfbcf056 fix non-blocking mode of TRNG driver improve coding style. 2017-06-11 09:48:22 +01:00
kl-cruz b26fcf489c Fixed length in trng in every mode 2017-06-11 09:48:22 +01:00
kl-cruz 045718c9c2 added trng implementation for nrf52840 2017-06-11 09:48:21 +01:00
Steven Cooreman 80ad824e7d Add behavior to throw away collected entropy on occurrence of a noise alarm. 2017-06-11 09:48:21 +01:00