Commit Graph

8096 Commits (e012185602e5d725369aac0e66b92484fd5de304)

Author SHA1 Message Date
Martin Kojtal 21a2123aad Merge pull request #2669 from andreaslarssonublox/updated_master
Target - Add u-blox C029 target
2016-09-14 10:35:22 +01:00
Martin Kojtal e014b0f502 Merge pull request #2522 from svastm/cthunk_cm7
Add CThunk for CM7
2016-09-14 08:19:08 +01:00
TsungtaWu b032587ddb make "macros_add" as a single line
make "macros_add" as a single line
2016-09-14 14:01:57 +08:00
TsungtaWu 6b98a59752 Merge remote-tracking branch 'refs/remotes/ARMmbed/master' 2016-09-14 13:49:31 +08:00
Jimmy Brisson e939133355 Add a inc_repos option to the exporters 2016-09-13 17:09:15 -05:00
Russ Butler bb0ba95259 Add device_has to all nrf51 devices
Move common device_has attributes into MCU_NRF51 and
MCU_NRF51_UNIFIED. This ensures all nrf51 devices have the correct
features enabled. Any devices that want to explicitly disable features
should use device_has_remove.
2016-09-13 16:55:37 -05:00
Sarah Marsh 8670598115 Abstract check_executable added 2016-09-13 16:26:58 -05:00
Russ Butler 8447843c68 Fix error handling when thread cannot be created
Update the Thread::start function to gracefully handle the failed
creation of a thread when there are no TCBs left. This patch does
the following:
1. Set memory handles to NULL after free to prevent double free
2. Post to the release semaphore so anything that tries to join this
    thread will join immediately
3. Remove dead return path since the new operator should never
    return NULL (it should trap instead)
2016-09-13 15:53:19 -05:00
Russ Butler 9e4a479794 Add prefix to mark cmsis_os functions as private
Add a leading underscore to give an indication that the new cmsis_os
API functions are not official.
2016-09-13 15:53:17 -05:00
Russ Butler 1921b1aa96 Add stack metrics to greentea
Update greentea to report thread information when a thread exits or
is terminated and when testing completes. Also move metrics into
a dedicated greentea file.
2016-09-13 15:52:18 -05:00
Russ Butler 1041904914 Turn on stack init so stack usage is correct
Initialize stack memory since this is required for stack metrics to
work.
2016-09-13 15:52:08 -05:00
Sarah Marsh ab92a5ace2 Toolchain check generic in mbedToolchain 2016-09-13 13:59:11 -05:00
Russ Butler 6fd9154d75 Add task terminate hook
Add an RTX hook which gets called when a thread terminates. Add
the function Thread::attach_terminate_hook() to allow users to attach
a hook to this event at runtime.
2016-09-13 12:59:05 -05:00
Russ Butler c319296692 Add RTX API to report stack usage
Add the function osThreadGetInfo to allow various Thread information
to be queried.  This includes stack size and maximum stack usage among
other things.

Note - for Cortex-A devices the worst case stack usage is not
available.
2016-09-13 12:58:57 -05:00
Simon Hughes 5e22db842f This commit includes the following CFSTORE/Flash-Journal/Storage updates and fixes:
- flash-journal basicAPI fix for ARM toolchain
- Updated storage-abstraction with version 0.4.7
  (commit c7c4a8c52298bbc006a6f53a059fb2599cad73cc).
- https://github.com/ARMmbed/storage-volume-manager at version v0.2.10.
- https://github.com/ARMmbed/mtd-k64f v0.4.2 version of flash.c (imported as storage_driver.c).
- update to CFSTORE to use the storage-volume-manager API to initialize volume manager and
  add a volume for CFSTORE to use.
- https://github.com/ARMmbed/flash-journal at version v0.5.3
  (commit 4c58165e2fa02c6ed2b9d166a9c96967e81f458f) including readFrom() support.
- Taking flash-journal-strategy-sequential v0.6.7 strategy.c
  (commit b11a718761aa9f33679956968a21aaef9179bde1).
- GCC_ARM, ARM and IAR compiler warning fixes for new versions of flash-journal code.
- Fix storage-volume-manager test cases for concurrent access from 2 volumes to use
  addresses within the 512-1024kB address range, which is within the cfstore added volume.
- Fix cfstore/storage-volume-manager IAR warnings when building with verbose flag.
2016-09-13 18:16:56 +01:00
Sarah Marsh 8b74c5b3c7 Docstrings. Empty executable search path handling. 2016-09-13 12:06:01 -05:00
svastm af0f7e3376 Change cthunk implementation + cm7 support
- Add support of cortex-M7 for cthunk.
- Change the cthunk trampoline implementation to safer and quicker
solutions:
 * thumb2, the behaviour was undefined. new implementation use now 2
instructions
 * thumb, The new implementation use 3 instructions instead of 6.
2016-09-13 15:45:58 +02:00
Bogdan Marinescu 8852b2edec Removed hidden argument to set_targets_json_location
The previous code used a variable that was internal to the Target class.
This commit removes the argument to `set_targets_json_location`
completely, which forces Target to use the default locatio internally.
2016-09-13 16:45:32 +03:00
Martin Kojtal 24e1218da7 Merge pull request #2648 from jeromecoutant/PR_8K_RAM
Disable RTOS tests for STM32 8K targets
2016-09-13 14:21:49 +01:00
Bogdan Marinescu d7899b4b2b Removed custom targets from config system
Custom targets were the origin of a number of issues with the mbed
tools, so it was decided that they need to be removed. This PR does just
that (and moves the "custom_targets" part of the config system tests
into a separate, per-test "targets.json" file to preserve the test
functionality).
2016-09-13 15:54:44 +03:00
Andrzej Puzdrowski e67117b8ea introduce the SDK nRF5 Peer manager into BLE security features
PM will be used for SoftDevices s13x, otherwise DM will be used.

Fix - security key distribution settings - Signing is not supported.

declare usage of encryption LTK and IRK if boonding enabled

deleted unused local reference to nRF5xGap class in bleGattcEventHandler.
fix PM internal bug (For gcc with -0s optimization an application fail to save a boonding data)
fuse redeclaration of PACKED macro in nRF5 SDK sources
2016-09-13 14:16:55 +02:00
Arto Kinnunen 1b46d2bbf9 Avoid type collision by renaming callback variable
Build jobs are failing due build error "arm_hal_timer.cpp:50:5:
error: reference to 'callback' is ambiguous".

Fix the build error by renaming callback to arm_hal_callback to
avoid collision with callback defined in ./mbed-os/hal/api/Callback.h
2016-09-13 15:02:43 +03:00
Andrzej Puzdrowski 55fbdd1389 Add .fs_data symbol in data section for gcc.
It is neede for folowing nRF5 SDk component:
fstorage, fds, Peer manager.
2016-09-13 14:01:30 +02:00
andreas.larsson 189d932169 Replaced usage of vendor specific register with basic registers when checking link status 2016-09-13 12:04:04 +02:00
Olaf Hagendorf 067ca8637c classic mbed: bugfix can loop test
bugfixing the can loop test which failed after PR #2504
2016-09-13 10:44:51 +02:00
bcostm fa2ae70a77 STM32F0xx - Fix problem with channel 18 not present on all F0 devices 2016-09-13 09:24:34 +02:00
bcostm bf42846e81 STM32F0xx - Add support of ADC internal channels 2016-09-13 09:24:34 +02:00
Mika Karjalainen 9061a099fb Update Jenkinsfile
* Enabled ARM toolchain
* Cleaned unncessary stages
* Stages are defined inside compile and buildTestApps functions
* Added building of mbed-os-cliapp and mbed-client-testapp
  * These will build and test the mbed-os changes with all mbed-os-cliapp and mbed-client-testapp configurations, see Jenkinsfiles in https://github.com/ARMmbed/mbed-os-cliapp and https://github.com/ARMmbed/mbed-client-testapp for specifications
2016-09-13 09:39:19 +03:00
Sam Grove dd5649d92b Merge pull request #2678 from bridadan/fix-ncs36510-linux-compile
Fixing NCS36510 compile on Linux
2016-09-13 01:03:22 -05:00
Brian Daniels a929bbb161 Fixing NCS36510 compile on Linux
There was a case sensitivity issue when compiling the NCS36510 on Linux.
This commit changes the include directive to the proper case.
2016-09-12 23:10:13 -05:00
Sarah Marsh 61dee45dca Revise checking toolchain path 2016-09-12 18:54:39 -05:00
Russ Butler ad24b7d982 Add RTX API to enumerate running threads
Add the functions osThreadsEnumStart, osThreadEnumNext and
osThreadEnumFree to allow enumeration of running threads. Protect
thread creation, thread exit and thread termination with a mutex
so threads are not created or destroyed while an enumeration is
ongoing.
2016-09-12 17:08:36 -05:00
Jimmy Brisson f48aa248b7 Correct adding repo_files 2016-09-12 16:19:55 -05:00
Marcelo Salazar 1192744a06 Minor fix to match with master 2016-09-12 20:12:54 +01:00
Marcelo Salazar ca35755167 Change default uvision exporter to uvision5
uVision4 is no longer maintained by the Keil team (support was stopped
long time ago).

This is why we need to make the uvision exporter able to generate uVision5
projects by default (which is based on software packs).

Also, adding note that the uvision4 exporter is now deprecated and will be
removed in the future.
2016-09-12 19:46:33 +01:00
Jimmy Brisson d033070425 Add a gettingstarted.html to all exporters 2016-09-12 13:17:35 -05:00
Marcos Gomes d312fe376a Updated with code style guidelines 2016-09-12 17:30:18 +01:00
Steven Cooreman f4f1f6ee59 [EFM32] Fix exporter to pull root path
Simplicity Studio exporter doesnt really support header files in the root directory (looking at you, mbed_config.h), so this is a workaround for that issue.
2016-09-12 17:23:05 +02:00
andreas.larsson dba6278dfe Aligned with STM32F429 2016-09-12 16:09:09 +02:00
svastm b5c3647e66 [STM32L0] Add tests for asynchronous serial 2016-09-12 16:04:59 +02:00
svastm 64cfee51b1 [STM32L0] Enable asynchronous serial 2016-09-12 16:04:59 +02:00
svastm 2613bc7a70 [STM32L0] Add asynchronous serial 2016-09-12 16:04:59 +02:00
andreas.larsson c3022ff456 Fixed wrong RAM start and added NVIC start. 2016-09-12 15:55:38 +02:00
andreas.larsson ca99c3325f Fixed wrong flash size. Fixed duplicate RW_IRAM1 region. 2016-09-12 15:54:19 +02:00
bcostm aa9d0dbe06 NUCLEO_F429ZI - Add SERIAL_FC macro 2016-09-12 14:18:55 +02:00
bcostm c062626c8e STM32L1xx - Fix build error 2016-09-12 13:46:39 +02:00
andreas.larsson 173486fac0 Added u-blox C029 target 2016-09-12 13:41:38 +02:00
bcostm b55ab0c81c NUCLEO_L152RE - Add SERIAL_FC macro 2016-09-12 13:37:22 +02:00
bcostm 020f4bceff STM32L1xx - Add Serial Flow Control pins 2016-09-12 13:37:22 +02:00
bcostm 2c97fea1e4 STM32F3xx - Fix build errors 2016-09-12 13:02:20 +02:00