Commit Graph

5947 Commits (96787cd79e0f1c93433d7af3333f1520d8b5e032)

Author SHA1 Message Date
adustm dbb99d4eee NUCLEO_F746ZG] add this board to rtos 1-8 tests 2016-05-13 10:59:59 +02:00
Martin Kojtal 6483faedd2 Merge pull request #1734 from svastm/fix_adc_f746zg
[STM32F7] Fix end of conversion
2016-05-13 09:09:49 +01:00
svastm 62aca7515d [STM32F7] Fix end of analogin conversion 2016-05-12 10:09:54 +02:00
neilt6 a2bfca7527 [RTOS] Fixed osThreadGetState()
Fixed regression that caused terminated threads to return an erroneous
state value instead of "inactive".
2016-05-11 16:06:24 -06:00
Martin Kojtal 3210b40a91 Merge pull request #1729 from mbedmicro/release
mbed lib v120
2016-05-11 11:13:02 -05:00
0xc0170 3d988623d4 mbed lib revision - 120 2016-05-10 10:21:13 -05:00
0xc0170 1290925ad1 Build release - RZ_A1H iar removal
There are issues with cmsis API, which were not ported to IAR.
2016-05-10 10:21:09 -05:00
Martin Kojtal be6e09bec3 Merge pull request #1725 from 0xc0170/fix_ksdk_old_macro
Target - backward compatibility KSDK 1.0 labels
2016-05-09 15:12:13 -05:00
0xc0170 5681da0845 Target - backward compatibility KSDK 1.0 labels
The extra_labels should not be removed, as it could break old sources or
mbed-lib or applications.
2016-05-09 13:44:37 -05:00
Martin Kojtal 7b4f4fc40d Merge pull request #1715 from helmut64/L4heapsize
Changed the heap size to the correct MCU heap size for SRAM1
2016-05-09 12:35:10 -05:00
Martin Kojtal a97cf280f3 Merge pull request #1713 from BartSX/stm32f4_can
[STM32F4 family] Assign CAN filter number properly
2016-05-09 12:31:39 -05:00
Martin Kojtal 8ea1244a2e Merge pull request #1712 from BartSX/iar
[STM32L4] Fix IAR section placement failed error
2016-05-09 12:30:47 -05:00
Martin Kojtal ad75bdcde3 Merge pull request #1704 from adustm/stm32f1_cube_update
[STMF1] Stm32f1_hal_cube update
2016-05-09 12:26:22 -05:00
Martin Kojtal 15cfb8fe4a Merge pull request #1718 from 0xc0170/fix_rtos_idle
gcc - use group for ld to resolve symbols from libraries
2016-05-09 12:25:54 -05:00
0xc0170 58e47dc500 gcc makefile - use group for ld to resolve symbols from libraries 2016-05-09 12:06:33 -05:00
0xc0170 8681a8d53e gcc - use group for ld to resolve symbols from libraries
This fixes problem we have seen with rtos_idle_loop. The symbols
was not resolved as order played a role in this case. Remove circular
dependencies member, as it should not be required anymore.
2016-05-09 12:02:23 -05:00
Sam Grove c5b4c543c9 Merge pull request #1720 from 0xc0170/fix_rtos_macro
RTOS - fix Cortex-M version - add macros required for new kernel
2016-05-06 13:01:33 -05:00
0xc0170 9aee702b11 RTX - pull cmsis_os into rt_Timer
This causing a warning in the rt_cmsis.c, as they use preprocessor
to redefine a type. A fix is to move the macro above, as it should not
change anything else. This should be removed, and use a cast, however I am
not fully familiar why they do this macro trick.
2016-05-06 12:27:25 -05:00
0xc0170 def841979a RTOS - fix Cortex-M version - add macros required for new kernel
2 new macros were introduced to capture changes in the kernel. We used toolchains/__init__
script to capture those, which is not in the sync with actual sources. This fix introduces
those macros in the source, rather than a script.

We will further eliminate those macros to be used outside of RTX kernel (c++ API).
2016-05-06 11:50:21 -05:00
Martin Kojtal 84fc61c940 Merge pull request #1716 from neilt6/master
[RTOS] Improved Error Functions
2016-05-05 15:50:50 -05:00
neilt6 a484830587 [RTOS] Improved Error Functions
Added error message to sysThreadError(), and improved os_error().
2016-05-05 14:43:56 -06:00
Helmut Tschemernjak 324dd06216 Changed the heap size to the correct MCU heap size for SRAM1 2016-05-05 22:14:30 +02:00
Martin Kojtal 53b54323ba Merge pull request #1706 from LMESTM/fix_pwmout
Fix pwmout for STM32F3
2016-05-05 14:46:07 -05:00
Martin Kojtal 860fdd282b Merge pull request #1702 from 0xc0170/dev_rtos_update
rtx update to v4.79
2016-05-05 14:35:40 -05:00
0xc0170 cacf085e73 rtx - set task id prior rt_init_context
This is a bugfix, which caused LPC1549 to fail (os_error). There was a fix
introduced to rtx mbed sources. For more information:
461403989c
2016-05-05 13:49:47 -05:00
0xc0170 239c40eb62 RTX - os_error invokes mbed error() 2016-05-05 12:11:11 -05:00
0xc0170 bc270f1fe2 RTX - expose rt_tid2ptcb() function to get TCB
This enables the stack info methods to be supported for Cortex-M
targets. The rt_TypeDef required one small change - rename new structure
member as this is a reserved keyword in C++.

We need to ask for tid everytime we need to use tcb, do not expose internal
RTX details, we keep it within Thread.cpp file.
2016-05-05 12:11:09 -05:00
0xc0170 9d06547135 lwip - fix size of sys mutex for RTX 4.79
The size was increased to 4 bytes. Thanks @c1728p9 for spotting this.
2016-05-05 12:11:08 -05:00
Russ Butler ab3c1e3a16 RTX: Support stacks larger than 64k
Cherry pick commit d587474778 -
"RTX: Support stacks larger than 64k"

This allows the latest version of the RTOS to run mbed client over
ethernet without crashing.
2016-05-05 12:11:06 -05:00
Martin Kojtal 007223c954 RTX - fix missing header guards for Cortex-M4 (GCC ARM)
The HAL CM4 is valid only for FPU present. These guards were added
to mbed SDK, as there are targets Cortex-M4.
2016-05-05 12:11:04 -05:00
Martin Kojtal aa6f0b8df1 RTOS - update for RTX v4.79 for Cortex-M
Thread - stack methods are not available for now, as tcb pointer was removed from
internal structure. To obtain it, we could get it from the kernel, but this should be
reconsidered. Either RTOS should provide it, or these methods will become deprecated.
2016-05-05 12:11:02 -05:00
Martin Kojtal 9a68561b69 RTX - update to v4.79 for Cortex-M
Changes to the original kernel:

Cortex-M requires to define __CMSIS_OS_RTX, and __MBED_CMSIS_RTOS_CM. The macro __MBED_CMSIS_RTOS_CM
is mbed specific macro, to track changes to the kernel. This should keep us aware what has changed. For instance,
one breaking change was thread adding instances variable, which were not in mbed. This can be find as
it's protected via __MBED_CMSIS_RTOS_CM ifdef.

```
// added for mbed compatibility
// original RTX code
```

Startup for toolchains - mbed defines own stack pointer (set_main_stack()), therefore it should be called in the startup.
IAR added low level init calls and dynamic intialization to the IAR startup. All defined in RTX_CM_lib.h.

The timer thread has task id 0x01, main task 0x02. There are exception for main task not to check for
overflows. This is mbed specific, was reapplied from mbed code base.

IAR fixed SVC calls, this fix had to be reapplied (repo mbed PR 736 for more information).
2016-05-05 12:11:00 -05:00
0xc0170 8bbe0bb3ca Cortex symbols - add cmsis rtos for all cortex cores 2016-05-05 12:10:56 -05:00
Martin Kojtal fcf297438c Merge pull request #1711 from 0xc0170/fix_uvision_inc
uvision - fix INC dir
2016-05-05 11:25:52 -05:00
Bartosz Szczepanski 1244d1504f [STM32F4 family] Assign CAN filter number properly
There are 28 filter banks which are shared between CAN1 and CAN2. By default
they are divided in half:

    * CAN1 -> 0  ... 13
    * CAN2 -> 14 ... 27

that's why we need to decied which filter number has to be chosen.

Change-Id: If5f0da035c1435c61d4748b12d6617e9005cfd83
2016-05-05 11:26:39 +02:00
Bartosz Szczepanski d76bdde5a0 [STM32L4] Fix IAR section placement failed error
For some reason STACKHEAP block was placed in SRAM2 section which lead to
*Error[Lp011]: section placement failed - unable to allocate space for sections/
block* error. This patch modifies the STM32L4 linker script and places STACKHEAP
into SRAM1 section which was previously unused.

Change-Id: Ibe6ca52a9fe7af232a3eade2f6b1f2ce28c9bd49
2016-05-05 10:37:40 +02:00
0xc0170 89b6c41a1b uvision5 - add flags from uvision toolchain class
Flags should be unique, thus use list(set()) to remove duplicates
2016-05-04 16:56:43 -05:00
0xc0170 5ce3ec9619 uvision - fix INC dir
The path for INC might be with spaces, uvision does not handle it well,
thus wrapping around ""
2016-05-04 16:41:01 -05:00
Martin Kojtal 816233cf5d Merge pull request #1710 from NXPmicro/dev_ksdk_2.0
Fix build warnings
2016-05-04 16:17:07 -05:00
Mahadevan Mahesh df4c79cd74 Fix build warnings
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-05-04 15:01:24 -05:00
Martin Kojtal 8dfa3ea649 Merge pull request #1709 from 0xc0170/fix_uvision_flags_asm
uvision - fix c/asm flags
2016-05-04 12:04:51 -05:00
0xc0170 ded7d39c76 uvision - microlib fix - commands to use -D__MICROLIB
Exporters use --library_type=microlib. This will be unified soon, as currently
the templates does not support ASM macros.
2016-05-04 11:42:45 -05:00
0xc0170 5018270bb5 uvision - asm flags fix
Use deepcopy to get flags as they are shared between ARM and uARM. asm flags
for command line require c flags as it used to be.
2016-05-04 10:58:44 -05:00
0xc0170 ee00dbd9a7 uvision - fix c/asm flags
Some flags are only C specific, causes problems when there's .S file in the workspace.
For instance, -Ox is only C flag, causes a project to fail with "unrecognized option"
2016-05-04 09:45:16 -05:00
Laurent Meunier c5c95d11f3 Use runtime error detection
Rather than MBED_ASSERT, let's use error() function to detect out of range
parameters during runtime execution
2016-05-04 09:25:40 +02:00
Laurent Meunier 731148eb72 Back to 10ms period
As suggested in review comments, let's keep default 10ms period
2016-05-04 08:59:57 +02:00
Laurent Meunier c9350f8e5a Update ARDUINO test to allow period change 2016-05-03 18:05:43 +02:00
Laurent Meunier 7c657ad5c9 [STM32F3] Increase the supported period range (#1682)
Introducing the prescaler management allows a wider period range support,
from about 65ms before now up to about 32s. We're also introducing
asserts in case the period or prescaler is truncated as the HW registers
are 16 bits large.
2016-05-03 18:05:43 +02:00
Martin Kojtal 9cef243de2 Merge pull request #1700 from NXPmicro/dev_ksdk_2.0
Switch to KSDK 2.0
2016-05-02 18:13:47 -05:00
Mahadevan Mahesh fef9bc3961 USB support for KL27
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-05-02 14:52:31 -05:00