Commit Graph

11690 Commits (a4782b5c57468c5eb04547360d0d3c30c7e3e12c)

Author SHA1 Message Date
Laurent MEUNIER f939edc323 STM32: Raise error in case of spurious interrupt
In case we've run through the entire GPIOs loop, withouth finding a
matching interrupt, we're in the case of a spurious interrupt, let's
raise an error to track it down.
2017-07-28 14:46:14 +01:00
Laurent MEUNIER b9a4ae2d04 STM32 Fuly disable GPIO irq settings
When disabling GPIO irq, also the falling / rising edge settings need
to be reset (EXTI_RTSR and EXTI_FTSR registers).

If not reset, the same EXTI line can be later enabled again with a wrong
Rising / Falling configuration. This was especially seen and reported in
ci-test tests-api-interruptin on NUCLEO_F446RE target where DIO2=PA_10 and
DIO6=PB_10 were successively tested: as they are sharing the same EXTI_LINE
(EXTI_10), this resulted in calling the irq_handler with wrong
IRQ_FALL/IRQ_RAISE parameter and donothing being called in loop.
2017-07-28 14:46:14 +01:00
Brad Perry 5c74203b10 Fixing the problem where the CAN is initialized to the wrong frequency at startup regardless of the value set in the constructor. Issue #3863 2017-07-28 14:46:14 +01:00
Chris 901246173f Tidy from rebase 2017-07-28 14:46:14 +01:00
Chris c8b0692fbb Code tidy 2017-07-28 14:46:14 +01:00
Chris 8c3a5fd17b Incorrect comments removed. 2017-07-28 14:46:13 +01:00
Chris a2852e7b91 GCC Bootloader support 2017-07-28 14:46:13 +01:00
Chris adb6246336 IAR Bootloader support 2017-07-28 14:46:13 +01:00
Chris b5ce1d2325 uArm Bootloader support 2017-07-28 14:46:13 +01:00
Chris 9ee4ab49e7 Formatting tidy up. 2017-07-28 14:46:13 +01:00
Chris df779909e1 added missing FLASH_FLAG_OPTVERR 2017-07-28 14:46:13 +01:00
Chris db5f6790fe clear additional flags on erase to prevent errors 2017-07-28 14:46:13 +01:00
Chris 4b4c70fdcd GCC_ARM VTOR fixed, doesnt fit in the bootloader region though.. 2017-07-28 14:46:13 +01:00
Chris 229e19f4be VTOR bootloader aware Attempt to add flash API but not working properly 2017-07-28 14:46:13 +01:00
Chris 7e1ce93f3d added flash algorithm 2017-07-28 14:46:13 +01:00
Chris 5e23ff2809 initial commit of xDot bootloader 2017-07-28 14:46:12 +01:00
Bartek Szatkowski 36d28e8de2 RTOS: Thread: Rework and extend test suite 2017-07-28 14:46:12 +01:00
Bartek Szatkowski ccc757847b RTOS: Thread: Update thread state docs 2017-07-28 14:46:12 +01:00
Bartek Szatkowski 8b3a6d6fd1 RTOS: Thread: Fix how free stack is calculated 2017-07-28 14:46:12 +01:00
Bartek Szatkowski c6ebb108e6 RTOS: Thread: Fix return value for signal_wait
Signal wait was always returning success even in case of error.
2017-07-28 14:46:12 +01:00
Bartek Szatkowski 66072996c4 RTOS: Thread: Update docs; make singal_clr static as it's affects running thread 2017-07-28 14:46:12 +01:00
Martin Kojtal ed9d1da9dd Merge pull request #4760 from ARMmbed/release-candidate
Release candidate for mbed-os-5.5.3
2017-07-17 13:21:06 +01:00
Martin Kojtal 364f4a3478 ncs36510: us ticker improvements
Do not ticker read in ISR, use reminder to schedule the next interrupt, this should make ticker much faster.

read - disable Timer0 while reading it, if ISR is pending just reread the time again via read() function

These 2 improvements should decrease time spent when reading/scheduling ticker
events.
2017-07-16 10:38:55 +01:00
adustm 47b81255c6 Replase CMSIS flash driver by SDK flash driver 2017-07-14 15:51:14 +01:00
adustm 03aa77a700 Allow UBLOX to use SDK flash driver 2017-07-14 15:49:07 +01:00
adustm 0b9855ebc7 Rebase: 0d1c6c2d34
This commit completely rewrote flash_api.c in a few places so kicked out changes from Master and accepted the branch changes.

F429 + F439 : changes after code review
GetSector has been rewritten
2017-07-14 15:48:51 +01:00
adustm 5b0dbbd780 Rebase of: dfd0cf63e9
fix STM32F439 flash HAL
2017-07-14 15:47:57 +01:00
adustm 5ea3730ed2 Rebase of: cb3907ef70
typo in flash_s struct
2017-07-14 15:43:56 +01:00
adbridge 6d5e15b73a Updated MBED versionning block for patch release 2017-07-14 15:13:33 +01:00
Jimmy Brisson 38e258c641 Allow custom_targets.json exporting 2017-07-14 15:13:32 +01:00
Jimmy Brisson fde073c3dc Generate exporter suppored lists when needed 2017-07-14 15:13:32 +01:00
Andrzej Puzdrowski f94ce228a7 nrf5 spi_api - coding style enhancement 2017-07-14 15:13:32 +01:00
Andrzej Puzdrowski 113b902e8e Bugfix: #4357 simultaneous using of I2C and SPI.
Use serial-box of Nordic nRF5 SDK to share resource between
SPI and I2C.
SPI is allocated from highest hw instance number resource in order
to allocate as many I2C instances as possible.
2017-07-14 15:13:32 +01:00
Kari 7559f1822e - Adjust lowpan ND interface connect timeout
Device needs to wait for connectivity:
-routers will create new network and get local connectivity
-end device will get connectivity once attached to existing network
-devices without network settings gets connectivity once
 commissioned and attached to network

Signed-off-by: Kari <kari.haapalehto@arm.com>
2017-07-14 15:13:32 +01:00
Christopher Haster 94aea467c9 fatfs: Fix unaligned access in disk_ioctl
Unlike the other disk_ioctl options, GET_SECTOR_SIZE is interpreted
as a 16-bit WORD, instead of a 32-bit DWORD. This caused an unaligned
access error on M0 platforms.
2017-07-14 15:13:32 +01:00
Chris a35baf2171 Remove volatile 2017-07-14 15:13:32 +01:00
Chris 9888d3c5fd Code tidy 2017-07-14 15:13:32 +01:00
Chris a880560977 Assembly based loop for timing test 2017-07-14 15:13:32 +01:00
Chris 9a6fb46846 Toolchain independent noinline 2017-07-14 15:13:32 +01:00
Chris e36c20ffda Fix timing issues found in "Flash - clock and cache test" ARMCC seemed to be inlining time_cpu_cycles() but with a different number of clock cycles in the loop, GCC worked fine. 2017-07-14 15:13:32 +01:00
Yuguo Zou 5ae8011857 Enable/Disable debug from argument of constructor 2017-07-14 15:13:32 +01:00
Yuguo Zou 54bf7d7bd5 mute wifi_conf messages 2017-07-14 15:13:32 +01:00
Yuguo Zou 51a7036e21 Update and mute debug messages from wifi 2017-07-14 15:13:32 +01:00
bcostm 6d0badf8f8 NUCLEO_F429ZI: comments corrections 2017-07-14 15:13:31 +01:00
bcostm 99f87ab93c DISCO_F429ZI: Typo correction 2017-07-14 15:13:31 +01:00
bcostm 1e8ba708f3 NUCLEO_F429ZI: Add alternate pins and enable all pins 2017-07-14 15:13:31 +01:00
bcostm be5ae8b409 DISCO_F429ZI: Typo corrections + add missing ALT pins 2017-07-14 15:13:31 +01:00
bcostm 4615906e4c DISCO_F429ZI: Add missing ADC alternate pins 2017-07-14 15:13:31 +01:00
bcostm 8a1821ec77 DISCO_F429ZI: Add alternate pins and enable all pins 2017-07-14 15:13:31 +01:00
bcostm 1554ea51af DISCO_F429ZI: Add 'Connected to' comment 2017-07-14 15:13:31 +01:00