Martin Kojtal
e6565a4486
Merge pull request #14031 from arduino/blockdevices_namespaces
...
BlockDevices: specify mbed namespace where needed
2021-02-04 20:08:07 +00:00
Martin Kojtal
fef6a6a9aa
Merge pull request #14199 from rwalton-arm/dev/rwalton-arm/refactor-st-mbed-targets
...
Refactor ST Mbed targets to be CMake buildsystem targets
2021-02-04 19:45:57 +00:00
Robert Walton
d9e184b6c6
cmake: Refactor ST targets
...
Refactor all ST targets to be CMake buildsystem targets. This removes
the need for checking MBED_TARGET_LABELS repeatedly and allows us to be
more flexible in the way we include MBED_TARGET source in the build.
A side effect of this is it will allow us to support custom targets
without breaking the build for 'standard' targets, as we use CMake's
standard mechanism for adding build rules to the build system, rather
than implementing our own layer of logic to exclude files not needed for
the target being built. Using this approach, if an MBED_TARGET is not
linked to using `target_link_libraries` its source files will not be
added to the build. This means custom target source can be added to the
user's application CMakeLists.txt without polluting the build system
when trying to compile for a standard MBED_TARGET.
2021-02-04 15:26:36 +00:00
Robert Walton
0e491cc0cf
cmake: Refactor mbed_set_mbed_target_linker_script
...
Move the mbed_set_mbed_target_linker_script function into its own file
and make it set the linkerscript on the target passed in, rather than
setting the linkerscript on the top level mbed-core target. We use
CMake's automatic forwarding of usage requirements to forward the linker
script to the top level target.
This commit also adds a condition to check whether the MBED_TARGET is a
CMake buildsystem target. If it is we will just link to it in the
idiomatic CMake way, if it's not then we use the 'old' mechanism of
setting the linkerscript for the mbed-core target. This check will be
useful when we refactor MBED_TARGETS to be CMake buildsystem targets as
it will allow us to do the refactoring incrementally.
2021-02-04 15:26:33 +00:00
Robert Walton
8f47212085
cmake: Remove whitespace from mbed-os/CMakeLists.txt
2021-02-04 15:23:49 +00:00
Martin Kojtal
7135c6545a
Merge pull request #14215 from flippy84/master
...
STM: Fix Hal_GetTick wrap around errors
2021-02-03 14:17:59 +00:00
Martin Kojtal
78bbe274f1
Merge pull request #14203 from kylejansen/sdpk1-usb
...
Adding USB HS Support to the SDP-K1
2021-02-03 14:17:43 +00:00
Martin Kojtal
733975220d
Merge pull request #14228 from ARMmbed/rename_greentea_test_macro
...
CMake: rename greentea test macro
2021-02-03 14:17:20 +00:00
Martin Kojtal
24f035ef3e
Merge pull request #14204 from multiplemonomials/cmake-exe-suffix
...
Set executable suffix in CMake
2021-02-03 14:17:00 +00:00
Martin Kojtal
6dd44e7ec7
Merge pull request #14190 from 0xc0170/fix_ns_cores
...
CMake cores: fix NS cores
2021-02-03 10:17:21 +00:00
Martin Kojtal
d48cc295f2
Merge pull request #14213 from 0xc0170/dev_add_cortexm55
...
Add cortex-m55 to CMake support
2021-02-03 09:39:32 +00:00
Martin Kojtal
f7ed864e8d
Merge pull request #13979 from taunomagnusson/master
...
Support for ST STM32 NUCLEO-G431KB Development Board
2021-02-03 09:37:14 +00:00
Martin Kojtal
40cd33001d
Merge pull request #14195 from jeromecoutant/PR_LORA_BARE
...
LoraRadio test update for baremetal support
2021-02-03 09:31:41 +00:00
Martin Kojtal
5e1d13886c
Merge pull request #14202 from paul-szczepanek-arm/fix-stop-advert
...
BLE: return OK when stopping advertising set that is not active
2021-02-03 09:31:24 +00:00
Martin Kojtal
8a788c9a55
Merge pull request #14212 from adbridge/master
...
Expose the public Stream API
2021-02-03 09:31:03 +00:00
Andreas Carlsson
38b9e8ee5f
STM: prevent task switch errors in HAL_GetTick
2021-02-03 09:42:15 +01:00
Rajkumar Kanagaraj
6824b14e48
CMake: rename greentea test macro
2021-02-02 07:43:40 -08:00
Martin Kojtal
2e964006b7
Merge pull request #14196 from 0xc0170/fix-cores-gcc
...
CMake cores: fix cpu/fpu flags
2021-02-02 14:18:13 +00:00
Martin Kojtal
276e835e4b
Merge pull request #14181 from hugueskamba/hk_cmake_greentea_mbedtls
...
CMake: Add support for Mbed TLS Greentea tests
2021-02-02 14:17:18 +00:00
Martin Kojtal
ba6f566bd8
Merge pull request #14201 from ladislas/ladislas-update-python-intelhex
...
Update maximum version of intelhex to 2.3.0
2021-02-02 13:08:29 +00:00
Oliver Wildtgrube
6b0215c687
fix namespaces for MBED_NO_GLOBAL_USING_DIRECTIVE feature
...
added namespaces in various files
2021-02-02 12:49:11 +01:00
Martino Facchin
8ca0e9f161
BlockDevices: specify mbed namespace where needed
2021-02-02 12:49:09 +01:00
Jamie Smith
d9819a72d1
Bring back CMAKE_EXECUTABLE_SUFFIX in map filename, with a vengeance!
2021-02-01 19:40:41 -08:00
Martin Kojtal
956b19775c
Merge pull request #14197 from paul-szczepanek-arm/gtest
...
Upgrade gtest to 1.10
2021-02-01 10:44:11 +00:00
Martin Kojtal
04100a14c2
Merge pull request #14092 from hugueskamba/hk_nfc_m24sr_support
...
NFC: Add support for M24SR driver
2021-02-01 09:39:26 +00:00
Jamie Smith
7f2abe6673
Add newline
2021-01-29 09:00:35 -08:00
Martin Kojtal
09e0ffda6e
CMake rtos: add M55 to irq handlers, use m33 handlers = the same
2021-01-29 14:23:01 +00:00
Martin Kojtal
0bcd1f770f
Add cortex-m55 to CMake support
2021-01-28 16:46:18 +00:00
adbridge
9b04617d04
Expose the public Stream API
...
Stream.h contains a public API which is not currently exposed via
mbed.h (when it should be). This commit fixes this.
2021-01-28 16:34:15 +00:00
Jamie Smith
52565ae6e2
Remove CMAKE_EXECUTABLE_SUFFIX where it doesn't belong.
2021-01-27 15:56:36 -08:00
Jamie Smith
068358d8d6
Set executable suffix in CMake
2021-01-27 15:53:56 -08:00
Ladislas de Toldi
7983d81b73
Update minimum version of intelhex to 2.3.0
2021-01-27 18:01:49 +01:00
kylejansen
c401b61c09
Adding USB HS Support to the SDP-K1
2021-01-27 16:50:37 +00:00
Paul Szczepanek
bd5f437896
return OK when stopping advertising that is not active
2021-01-27 16:32:57 +00:00
Paul Szczepanek
1fd8818dcd
update version in readme
2021-01-27 12:48:57 +00:00
Martin Kojtal
0a990e702a
CMake cores: align fpu settings
...
Move the fpu settings across all cores so they are aligned.
Some cores did not have fpu set for ARMClang. I matched here both toolchains to set up
the fpu the same (Only exception is soft vs hard - that is separate issue I would not like to touch
in this series).
2021-01-27 12:30:21 +00:00
Martin Kojtal
8e2c9575be
CMake cores: remove dsp as it is on by default
2021-01-27 12:20:48 +00:00
Martin Kojtal
5d8d2bae76
CMake cores: fix dsp for M33FE (enabling it)
...
I realized we specified nodsp for M33 core but had march for FE parts enabled with dsp.
This fixes it.
M33F has no dsp. M33FE cores have dsp enabled.
2021-01-27 10:30:28 +00:00
Martin Kojtal
15acc009a0
CMake cores: remove march, not needed if we use mcpu
2021-01-27 10:25:48 +00:00
Paul Szczepanek
2fe6c7aa52
upgrade gtest to 1.10
2021-01-26 17:25:44 +00:00
Martin Kojtal
30065905b8
CMake cores: fix cpu flag
...
Couple of cores did not have common flag `--mcpu` set
2021-01-26 14:13:19 +00:00
jeromecoutant
dd602689d2
LoraRadio test update for baremetal support
2021-01-26 14:47:56 +01:00
Hugues Kamba
d0076a9e61
NFC: Add support for M24SR driver
...
The repository https://github.com/ARMmbed/mbed-nfc-m24sr
is no longer required to build applications that require
this driver.
2021-01-26 10:33:06 +00:00
Tauno Magnusson
dc969ba1d9
After checking other parts of the code (trng_api.c and a few other board platforms (NUCLEO_F413ZH, ...)) it appears that even though the reset value defaults correctly it may be good practice to keep the HAL_RCCEx_PeriphCLKConfig statement that selects the HSI48CLK as source for USB/RNG.
2021-01-26 03:51:49 +01:00
Tauno Magnusson
21176e903a
Removed the HAL_RCCEx_PeriphCLKConfig statement that was selecting the HSI48 CLK for USB. Assumption is that the STM32G4 reset value (defaults to HSI48 selected for USB) is preserved throughout Mbed initialization.
2021-01-26 03:27:37 +01:00
Tauno Magnusson
80f0a378fb
Updated to enable HSI48 Clock also for USBDEVICE define in targets.json. Also added so that the CK48 Clock Mux selects HSI48 for both RNG and USB. Without these the RNG/USB will be clocked at PLLQ (170 MHz) and not work.
2021-01-26 02:51:03 +01:00
Tauno Magnusson
99d21b6a92
Fixed whitespaces (a tab that should be spaces)
2021-01-26 01:21:46 +01:00
mbedmain
0c6753bb82
Update Mbed version block
2021-01-25 14:58:06 +00:00
Martin Kojtal
343b19f9b2
Merge pull request #14180 from hugueskamba/hk_cmake_cypress_missing_file
...
Cypress: Fix CYTFM_064B0S2_4343W CMake build
2021-01-25 14:43:36 +00:00
Martin Kojtal
747de9f849
CMake cores: fix NS cores
...
Set DOMAIN_NS=1 only for _NS cores. We had it otherway around.
I verified one non NS target that was failing to build, plus also checked the old tools
that had this definitions:
```
91: "Cortex-M23-NS": ["__CORTEX_M23", "ARM_MATH_ARMV8MBL", "DOMAIN_NS=1",
92 "__CMSIS_RTOS", "__MBED_CMSIS_RTOS_CM"],
93 "Cortex-M23": ["__CORTEX_M23", "ARM_MATH_ARMV8MBL", "__CMSIS_RTOS",
94 "__MBED_CMSIS_RTOS_CM"],
```
2021-01-25 12:21:40 +00:00