Bartosz Szatkowski
39a1b39ce1
Bump number of ARMC mutexes to fix PAL test failure
2017-05-30 18:55:56 +01:00
Yuguo Zou
f03509c6cb
Add up OS_MUTEX_NUM for ARMCC compiler
...
CI shield test (SPI test) may need 7 mutexes
2017-05-30 18:55:56 +01:00
Bartek Szatkowski
80cb65e094
Add more verbose RTOS error messages
2017-05-30 18:55:56 +01:00
Bartek Szatkowski
a8229b5351
Make sure all RTOS attribute structures are 0-ed before use
2017-05-30 18:55:56 +01:00
Bartek Szatkowski
85cc9c8381
Remove deprecated RTX4 config options
2017-05-30 18:55:55 +01:00
Bartek Szatkowski
0064df1ce6
Add name parameter for C++ mutex wrapper
2017-05-30 18:55:55 +01:00
Bartek Szatkowski
e66f9ee818
Fix IAR coding style and thread/mutex namingin mbed_boot.c
2017-05-30 18:55:55 +01:00
Bartek Szatkowski
b01f13d1a0
Make sure all system threads and mutexes have clear names
2017-05-30 18:55:55 +01:00
Bartek Szatkowski
05548e786d
Rename directories rtx->rtx4 rtx2->rtx5
2017-05-30 18:55:55 +01:00
Bartek Szatkowski
535ee8ba25
Make stack sizes configurable by the app
...
Application can overwrite stack sizes by defining main-stack-size and
thread-stack-size in mbed_app.json
2017-05-30 18:55:55 +01:00
andreas.larsson
abcae6f01e
Updated driver binaries for feature_cmsis5 as v2.0 rc1
2017-05-30 18:55:55 +01:00
Bartek Szatkowski
f194ea7be9
Remove redefinitions of register macros from target code
2017-05-30 18:55:53 +01:00
Jaeden Amero
0016bd4639
uVisor: Re-import RTX5-capable uVisor
...
Use a newer version of uVisor that doesn't change the box main thread
function type. Previously, we required all box main thread definitions
to change from taking a `const void *` to a `void *` when moving to
RTX5. We now are backwards compatibile.
2017-05-30 18:55:53 +01:00
Jaeden Amero
6be9e47a07
uVisor: Import RTX5-capable uVisor
...
Imported from 20170407_v7-M tag, commit e33f2739e961 "Make function in
transition macro match target".
2017-05-30 18:55:53 +01:00
Bartek Szatkowski
b793a3fb89
Update codebase for CMSIS5/RTX5
...
Update all of mbed-os to use RTX5.
2017-05-30 18:55:52 +01:00
Bartek Szatkowski
b97ffe8fdc
CMSIS5: Replace target defined NVIC_Set/GetVector with CMSIS implementation
2017-05-30 18:55:51 +01:00
Bartek Szatkowski
7b022f8785
Modify CMSIS 5 so it is suitable for mbed-os
...
Make changes to the files taken from RTX5/CMSIS5 so they work
with mbed-os and uvisor.
2017-05-30 18:53:38 +01:00
Jaeden Amero
7ae2e6e9ec
RTX5: uVisor: Use OsEventObserver
2017-05-30 18:53:38 +01:00
Jaeden Amero
24c60f6cc7
RTX5: uVisor: Extend thread control block with context
...
OsEventObserver objects expect a context to be maintained per thread on
their behalf. Add this context to the thread control block and extend
the thread creation functions with the ability to supply a context.
2017-05-30 18:53:38 +01:00
Jaeden Amero
756e0cae99
RTX5: uVisor: Add OsEventObserver
...
Add the OsEventObserver mechanism. A client interested in receiving
notifications on certain OS events can register to receive notifications
with osRegisterForOsEvents. This is useful for clients like the secure
memory allocator, which observes thread switching events in order to
swap in and out different memory allocator objects.
2017-05-30 18:53:38 +01:00
Jaeden Amero
25021f271a
RTX5: uVisor: Defer to uVisor for SVCall priority
...
Only set the SVCall priority if uVisor is not present. If uVisor is
present, keep using whatever priorities it has already set up.
2017-05-30 18:53:37 +01:00
Bartek Szatkowski
a9a29a4529
Pull in CMSIS 5 files
...
Pull in unmodified CMSIS5 files from the repository
https://github.com/ARM-software/CMSIS_5.git from the commit
c1b4232f4a98275dd79ebc99cf9b5da5053def4d.
The files were copied as shown below with source->dest_dir.
CMSIS_5/CMSIS/Core/Include/core_*.h -> mbed-os/cmsis/
CMSIS_5/CMSIS/Core_A/Include/core_*.h -> mbed-os/cmsis/
CMSIS_5/CMSIS/DSP/Include/arm_math.h -> mbed-os/cmsis/
CMSIS_5/CMSIS/Core/Include/tz_context.h -> mbed-os/cmsis/
CMSIS_5/CMSIS/Core/Include/cmsis_compiler.h -> mbed-os/cmsis/TARGET_CORTEX_M/
CMSIS_5/CMSIS/Core/Include/cmsis_arm*.h -> mbed-os/cmsis/TARGET_CORTEX_M/TOOLCHAIN_ARM/
CMSIS_5/CMSIS/Core/Include/cmsis_gcc*.h -> mbed-os/cmsis/TARGET_CORTEX_M/TOOLCHAIN_GCC/
CMSIS_5/CMSIS/Core_A/Include/cmsis_compiler.h -> mbed-os/cmsis/TARGET_CORTEX_A/
CMSIS_5/CMSIS/Core_A/Include/cmsis_arm*.h -> mbed-os/cmsis/TARGET_CORTEX_A/TOOLCHAIN_ARM/
CMSIS_5/CMSIS/RTOS2/RTX/Library/cmsis_os1.c -> mbed-os/rtos/rtx/
CMSIS_5/CMSIS/RTOS2/Include/cmsis_os2.h -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/
CMSIS_5/CMSIS/RTOS2/RTX/Config/* -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/
CMSIS_5/CMSIS/RTOS2/RTX/Include1/* -> mbed-os/rtos/rtx/
CMSIS_5/CMSIS/RTOS2/RTX/Include/* -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/
CMSIS_5/CMSIS/RTOS2/RTX/Source/rtx_* -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/
CMSIS_5/CMSIS/RTOS2/RTX/Source/core_cm.h -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/
CMSIS_5/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/TARGET_M0/TOOLCHAIN_ARM/
CMSIS_5/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.s -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/TARGET_M0/TOOLCHAIN_GCC/
CMSIS_5/CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/TARGET_M0/TOOLCHAIN_IAR/
CMSIS_5/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/TARGET_M0P/TOOLCHAIN_ARM/
CMSIS_5/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.s -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/TARGET_M0P/TOOLCHAIN_GCC/
CMSIS_5/CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/TARGET_M0P/TOOLCHAIN_IAR/
CMSIS_5/CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/TARGET_M3/TOOLCHAIN_ARM/
CMSIS_5/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.s -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/TARGET_M3/TOOLCHAIN_GCC/
CMSIS_5/CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/TARGET_M3/TOOLCHAIN_IAR/
CMSIS_5/CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/TARGET_RTOS_M4_M7/TOOLCHAIN_ARM/
CMSIS_5/CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.s -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/TARGET_RTOS_M4_M7/TOOLCHAIN_GCC/
CMSIS_5/CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/TARGET_RTOS_M4_M7/TOOLCHAIN_IAR/
2017-05-30 18:53:37 +01:00
Russ Butler
fd233778db
Remove RTOS and CMSIS files
...
Remove the RTOS and CMSIS files in preperation for CMSIS 5. Note that
the RTOS heap ad stack test is left since this is still applicable to
RTX5. This file can be found here:
rtos\rtx\TARGET_CORTEX_M\TESTS\memory\heap_and_stack\main.cpp
2017-05-30 18:53:37 +01:00
Francisco J. Manno
5e98da14d3
STM32s Serial does not properly handle parity bits
...
Reworked the serial_format() function for STM32F0x
devices to take the format in the form:
data_bits - parity - stop_bits
E.g. 8 - N - 1
where data_bits exclude the parity bit.
Added a case for 7 bits data as at least the chips
STM32F0x1/STM32F0x2/STM32F0x8 support 7 bits data.
Consolidated serial_format() and uart_init()
functions into a general TARGET_STM serial_api.c
file since the functions are common to all STM targets.
Fixes #4189
2017-05-30 17:17:20 +01:00
Anna Bridge
1a37ea608a
Merge pull request #4393 from 0xc0170/fix_race_test_single
...
race tests: fix unsupported condition
2017-05-30 16:59:01 +01:00
Anna Bridge
45b4d41bbd
Merge pull request #4329 from adustm/can_sync_error
...
Fix for #3863 : STM Check can sync error
2017-05-30 16:52:09 +01:00
Anna Bridge
9c6a068d48
Merge pull request #4324 from monkiineko/master
...
STM32F3: Remove dependence upon a specific flash vector table location
2017-05-30 16:50:45 +01:00
Anna Bridge
ddc015fb6e
Merge pull request #4303 from nvlsianpu/nrf52840_iar
...
enable iar exporter for nRF52840
2017-05-30 16:45:25 +01:00
Martin Kojtal
a7e48f9bce
mbed: version macros are not defined on master
...
Remove mbed OS and mbed 2 version macros. As master can break anytime (should
not break but can happen and shall be expected that there are changes that might affect the bleeding edge developers), there is no remedy for protecting
the sw via macros (either using some special versions, etc). If it is not
defined, means it is developed version of mbed OS/mbed 2 and it is up to a user
to track changes.
Any release of mbed OS 5 and mbed 2 contains these version macros. Thus won't break anything.
2017-05-30 10:45:30 +01:00
Laurent MEUNIER
eeb9672387
STM32: Check TIM_AUTORELOAD_PRELOAD_DISABLE
...
F2 family also require that TIM_AUTORELOAD_PRELOAD_DISABLE is set,
otherwise the field could have undefined value from the stacj and may
lead to undefined behavior.
The error was found using USE_FULL_ASSERT HAL option.
Rather than adding F2 to the list of family, let's set this parameter for
any family where TIM_AUTORELOAD_PRELOAD_DISABLE applies.
2017-05-29 13:48:29 +02:00
Laurent MEUNIER
8576993a1a
Introduce stm32_assert.h for MBED port
...
When we want to activate USE_FULL_ASSERT macro in STM32 CUBE, there is a
need to have the assert map to MBED.
The easiest way to have this definition in a single place for all STM32
HAL and LL files using it, is to add a specific header file where the
porting to MBED is done.
2017-05-29 13:48:29 +02:00
Laurent MEUNIER
5b510a35a6
F2 CUBE V1.6.0
...
This PR updates STM32 Cube SDK to
- HAL V1.2.1
- LL V1.2.1
- CMSIS 2.2.0
2017-05-29 13:48:29 +02:00
adustm
6770678811
Fix another typo
2017-05-29 10:24:03 +02:00
adustm
795bfd2288
Fix coding style
2017-05-29 10:24:03 +02:00
adustm
b99ccf65bd
Add timeout also on the 1st while loop
2017-05-29 10:24:03 +02:00
adustm
9a1d05551b
Optimize the use of the status value
2017-05-29 10:24:03 +02:00
adustm
897625cc96
Give access to HAL_GetTick function
2017-05-29 10:24:03 +02:00
adustm
52d38a1be0
Handle can_frequency sync error
...
add a timeout + return an error message
2017-05-29 10:24:03 +02:00
Sam Grove
3122abee84
Merge pull request #4230 from jamike/USBHostMSD_BockDevice
...
Usb host msd block device
2017-05-26 17:19:07 -05:00
Sam Grove
2561e0bff4
Merge pull request #4299 from jeromecoutant/PULL_REQUEST_CUBE_UPDATE_F4_V1.16.0
...
STM32F4 cube update from v1.12.0 to v1.16.0
2017-05-26 17:13:08 -05:00
Sam Grove
92e661b3c0
Merge pull request #4328 from nvlsianpu/remove_nrfsdk13_ble
...
Remove unwanted (and unused anymore) NRF5_SDK13 BLE port
2017-05-26 17:10:24 -05:00
Sam Grove
704ffd7010
Merge pull request #4331 from theotherjimmy/depend-on-profile
...
Have objects depend on their respective compiler invocations
2017-05-26 17:06:23 -05:00
Sam Grove
ede77621d4
Merge pull request #4332 from yogpan01/master
...
Fix for blockwise observation failure
2017-05-26 17:03:17 -05:00
Sam Grove
ef7ab92cb8
Merge pull request #4345 from ARMmbed/nanostack_update
...
Nanostack update
2017-05-26 17:01:29 -05:00
Sam Grove
2500ab03f2
Merge pull request #4351 from jeromecoutant/PULL_REQUEST_CUBE_UPDATE_L4_V1.8.0
...
STM32L4 cube update from v1.5.0 to v1.8.0
2017-05-26 16:58:37 -05:00
Sam Grove
73d1745e19
Merge pull request #4382 from AndersLundgren/patch-1
...
Update cmain.S license
2017-05-26 16:56:50 -05:00
Sam Grove
c74013e932
Merge pull request #4383 from snelson-senet/master
...
#4354 Fix MOTE_L152RC GPIO Write
2017-05-26 16:27:25 -05:00
Sam Grove
d11289b576
Merge pull request #4165 from adustm/can_init
...
fix #3863 Add an mbed API that allows the init of the CAN at the bus frequency
2017-05-26 10:45:19 -05:00
Sam Grove
58e88813a9
Merge pull request #4282 from kl-cruz/FlashAPI_nRF52840
...
Flash api nRF52840
2017-05-26 10:31:05 -05:00
Sam Grove
049402c39f
Merge pull request #4315 from theotherjimmy/thinkberg-master
...
Add support for ubirch boards
2017-05-26 10:26:40 -05:00