Commit Graph

4056 Commits (dc47e708b6db74fb99ecdedfde8224c810b904f5)

Author SHA1 Message Date
jeromecoutant dc47e708b6 STM32 RTC update for easy maintenance 2018-12-27 22:25:58 -06:00
bcostm 6ff271b322 STM32L4 TRNG:Remove trng clock setting for L4 devices
This will be done in the system_clock.c file instead.
2018-12-27 22:25:58 -06:00
Russ Butler 59a59eb450 Fix rare NRF52 serial TX lockup
When using UARTSerial sending data over the uart follows the sequence
below:
<-TX done ISR runs and sets a software interrupt to pending
<-Software interrupt fires:
    -disables TX done interrupt
    -calls UARTSerial TX handler which sends bytes until the uart
     buffer filled (writeable returns false). Sending a byte
     re-enables the TX done interrupt continuing the cycle

Due to this sequence, if the UARTSerial TX handler does not send a byte
then the transmit state machine mentioned above will get stuck with
the TX done interrupt disabled. The events causing this failure:
<-TX done ISR runs and sets a software interrupt to pending
<-Software interrupt fires:
    -disables TX done interrupt
    -calls UARTSerial TX handler:
        -checks writeable which is true and sends a byte
            <- interrupted by a higher priority interrrupt
            <- TX done ISR runs, setting software interrupt to
               pending again
        -checks writeable which is true and sends a second byte
    -Software interrupt finishes
<-Software interrupt fires:
    -disables TX done interrupt
    -calls UARTSerial TX handler:
        -checks writeable which is false and DOES NOT SEND A BYTE
    -Software interrupt finishes, the TX interrupt is still disabled
*-Byte gets sent but TX done ISR does not fire

This patch prevents the TX lockup by removing the code in the
software interrupt which disables the TX done interrupt. Disabling the
TX done interrupt at this point is not necessary so this code is safe
to remove.
2018-12-27 22:25:57 -06:00
Wilfried Chauveau 97c629ca66 fix according to @ashok-rao's review 2018-12-27 22:25:56 -06:00
Wilfried Chauveau 7817bf1902 fix copyrights 2018-12-27 22:25:56 -06:00
Wilfried Chauveau e9f4be3525 Add the port for the ACONNO ACN52832 module on MTB's form factor 2018-12-27 22:25:56 -06:00
ccli8 45052e74eb Fix time to init/deinit stdio_uart
With support for checking H/W UART initialized or not, we can simplify stdio management:
1. When serial_init(&stdio_uart) calls in, just set the 'stdio_uart_inited' flag.
2. When serial_free(&stdio_uart) calls in, just clear the 'stdio_uart_inited' flag.
Except above, we needn't make special handling with 'stdio_uart'.
2018-12-27 22:25:56 -06:00
ccli8 2952a794ee Check configuration option for default UART baudrate setting 2018-12-27 22:25:56 -06:00
ccli8 4e94694b5f Avoid re-configuring UART in serial_init() for the same H/W UART
The same H/W UART may be shared by multiple serial_t objects. This fix tries to avoid
re-configuring the same H/W UART in serial_init() when there are multiple serial_t
objects constructed. To re-configure UART, call serial_baud() and serial_format()
explicitly. This can avoid confusion when e.g. a newly constructed serial_t object
changes baudrate unexpectedly in serial_init().
2018-12-27 22:25:56 -06:00
ccli8 3e43755d32 Remove unused pin_tx/pin_rx fields from serial_s struct 2018-12-27 22:25:56 -06:00
TomoYamanaka 91de358aa4 Renesas : Add the setting of SD as components 2018-12-27 22:25:56 -06:00
Kari Haapalehto 232b6b71b4 TARGET_WICED updated. Connection status issue corrected. If the link layer status changes, the connection status callback is now called correctly.
mbedtls headers from library are removed and the mbed-os one's are used.
2018-12-27 22:25:55 -06:00
Mahesh Mahadevan cffee2634d 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-12-27 22:25:55 -06:00
Mahesh Mahadevan a57b8b1b27 LPC546XX: Fix build failure due to incorrect merge
Commit ab84d2bf33 missed including
qspi_device.h file

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-12-27 22:25:55 -06:00
ccli8 8f32203603 Fix license description for analog-out HAL files
1. Fix copyright year
2. Add SPDX
2018-12-27 22:25:55 -06:00
ccli8 ba2174878e Support DAC 2018-12-27 22:25:54 -06:00
jeromecoutant 8d89854589 STM32 readme md file 2018-12-27 22:25:54 -06:00
jeromecoutant 3918c96b18 STM32 remove html release notes files 2018-12-27 22:25:54 -06:00
Przemyslaw Stekiel fa5e853917 TARGET_MCUXpresso_MCUS: fix lp ticker init function
In case when lp ticker is already initialized the ticker interrupt should be disabled.
2018-12-27 22:25:54 -06:00
jeromecoutant 114c917a4d STM32 : Add default deep sleep latency of 3 ms 2018-12-27 22:25:54 -06:00
jeromecoutant 9fea2fb1d8 STM32 LPTICKER with LPTIM optimisation 2018-12-27 22:25:54 -06:00
Jimmy Brisson 6ea826f0ae Enable stats reporting with a flag in targets.json
### Description

PR #8607 will cause problems for the NRF52832 and the NRF52840
in the online compiler starting with 5.10.2. This PR prevents this problem
by using a toggle in `targets.json` to enable these new defines for every
target except for the NRF52832 and NRF52840.

### Pull request type

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Docs update
    [ ] Test update
    [ ] Breaking change
2018-12-13 15:33:38 +00:00
Russ Butler e09493e067 Disable MPU RT1050 due to memory map
Disable the MPU on the RT1050 since this target has a memory map that
is incompatible with the default MPU driver.
2018-12-13 15:33:38 +00:00
Russ Butler 165af448fc Revert "Turn off MPU on targets failing OOB"
The cause of the pelion-enablement test failures for Nuvoton boards
is not caused by or related to the MPU so this patch re-enables the
MPU for these boards.

The cause of the  pelion-enablement test failures for the
UBLOX_C030_U201 has been identified and corrected so this patch
re-enables the MPU for this board.

This reverts commit b217c5fe4d.
2018-12-11 16:14:50 -06:00
Leszek Rusinowicz 784c80f9e9 FUTURE_SEQUANA deep sleep fixes: - fixed feature rename (from DEVICE_LOWPOWERTIMER to DEVICE_LPTICKER) in all missed places - disabled power manager callback for serial driver 2018-12-11 16:14:49 -06:00
Leszek Rusinowicz b66ebb7fa8 FUTURE_SEQUANA SPI fixes: - fix to allow using only a subset of pins for SPI communication - added missing conter increment in spi_master_block_write() 2018-12-11 16:14:49 -06:00
Juho Eskeli 53ed9ba8bb Revert "Merge pull request #8922 from juhoeskeli/wise_1570_mpu_disable"
This reverts commit f82014e1af, reversing
changes made to 6749a8a321.
2018-12-11 16:14:47 -06:00
Qinghao Shi 7e8187b1df fix uninitialized handler pointer in ethernet driver 2018-12-11 16:14:47 -06:00
Russ Butler bca9f63c0e Turn off MPU on targets failing OOB
Turn off MPU for the UBLOX_C030 and MCU_M480 and all targets derived
from these. When the MPU is enabled on these platforms they do not
pass the pelion-enablement tests. Once the root cause is determined
and fixed the MPU can be re-enabled for these targets.
2018-12-11 16:14:47 -06:00
Oren Cohen 8ee3b1d74b Prebuilt images 2018-12-11 16:14:46 -06:00
Oren Cohen 5bff3ad9af Prepare postbuild for prebuilt images 2018-12-11 16:14:46 -06:00
Oren Cohen 412bfcf036 fix for flash iap test 2018-12-11 16:14:46 -06:00
Oren Cohen 1efee65a58 Fix initial_sp on psa sequana 2018-12-11 16:14:45 -06:00
Oren Cohen dc71ec4a81 License 2018-12-11 16:14:45 -06:00
Oren Cohen b4a77f6ead Add FUTURE_SEQUANA_PSA target
* Modify linker scripts to be compatible with bootloader and PSA
* Add memory protection
* Modify original post-build step to allow link with PSA binaries
* Config kvstore for ITS on FUTURE_SEQUANA_PSA
* Enable PSA-Crypto on PSoC6 with NVSeed
2018-12-11 16:14:45 -06:00
Russ Butler 26f842ea9d Turn off MPU for PSOC 6
Turn off  the MPU for the PSOC 6 since it has a non-standard memory
map. This fixes crashes on boot for this target.
2018-12-05 11:09:50 +00:00
Russ Butler 6e99157279 Add rather than override PSOC 6 macros
Use "macros_add" rather than "marcos" so any macros defined by
MCU_PSOC6 are not overwritten.
2018-12-05 11:09:50 +00:00
Juho Eskeli 6e4104bced Disable MPU code until target properly supported 2018-12-05 11:09:50 +00:00
Juho Eskeli a7b96454d7 MTB_ADV_WISE_1570: disable MPU code until target properly supported 2018-12-05 11:09:50 +00:00
Vincent Coubard 93d8c71b73 NORDIC: Fix labels in target.
Somehow during the rebase, both have been inverted.
2018-11-28 11:28:34 +00:00
Vincent Coubard 837ba72cc1 NRF51: Add label to compile BLE softdevice implementation. 2018-11-28 10:26:14 +00:00
Donatien Garnier 89aabaec0d Fix some rebasing quirks 2018-11-28 10:26:14 +00:00
Steve Cartmell 4f7dcf4d34 refactor(pan-cordio): Make nordic softdevice the default link layer 2018-11-28 10:26:14 +00:00
Steve Cartmell 12fdab312e feat(pan-cordio): Add nordic softdevice sources back into repository 2018-11-28 10:26:14 +00:00
Steve Cartmell 0f4ded19ac feat(pan-cordio): Replace NRF51 softdevice BLE stack with cordio 2018-11-28 10:19:08 +00:00
Steve Cartmell c3e611399f fix(pan-cordio): Fix incorrectly adding macros to NRF52_DK target 2018-11-28 10:19:08 +00:00
Steve Cartmell 93267699b8 fix(pan-nordic): Fix memory allocation sizes to resolve NRF52832 issues 2018-11-28 10:19:08 +00:00
Steve Cartmell 815d0d5efc feat(pan-cordio): Add cordio-ll libraries and NORDIC implementation 2018-11-28 10:19:08 +00:00
Steve Cartmell 299ae1d9c6 fix(pan-cordio): Override WSF handler size in a platform specific manner 2018-11-28 10:19:08 +00:00
Martin Kojtal 52822cb8af
Merge pull request #8871 from c1728p9/mpu
MPU API (Reopened)
2018-11-28 10:28:32 +01:00