Commit Graph

12520 Commits (f44d0fb443bf09da9c2dba08f1af0eeaaf44f104)

Author SHA1 Message Date
Roberto Spelta f44d0fb443 modification to .ld to improve memory 2017-10-20 16:18:29 +01:00
Roberto Spelta 2f4f0b85ac copy of L476RG ld file 2017-10-20 16:18:29 +01:00
Roberto Spelta 54452b5feb peripherals pins adaptation 2017-10-20 16:18:29 +01:00
Roberto Spelta 2209e01515 copy of L476RG target 2017-10-20 16:18:29 +01:00
Roberto Spelta 857f30b778 added SILICA_SENSOR_NODE in target.json 2017-10-20 16:18:29 +01:00
Maciej Bocianski 0ab1272c7d Basic test refactoring 2017-10-20 16:18:29 +01:00
Jimmy Brisson e56bb681b6 Remove debug print from memap IAR impl 2017-10-20 16:18:29 +01:00
Christopher Haster 3ab2f85262 Fix behaviour of empty .mbedignore
Should ignore nothing, currently ignores everything
An empty .mbedignore is easy to create when tinkering with a local repo
2017-10-20 16:18:29 +01:00
Kevin Gilbert fceea7a597 Add additional information on the block parameter in the HeapBlockDevice ctor 2017-10-20 16:18:29 +01:00
Alexander Zilberkant b855fde736 uVisor: Upgrade to v0.31.0 2017-10-20 16:18:29 +01:00
Kevin Gilbert 06bd5297af Add erase to example
Use defined blocksize constant
2017-10-20 16:18:29 +01:00
Kevin Gilbert 6f9a6787af Update HeapBlockDevice example in header file to compile 2017-10-20 16:18:29 +01:00
Laurent MEUNIER 7cde58db70 STM32: RTC: Call irq_handler whenever interrupt fires
lp_ticker driver is the known registered user of RTC handler API.

In case, a lp_ticker is set in the past, the lp_ticker_fire_interrupt
will be called which itself sets the RTC interrupt as pending by calling
NVIC_SetPendingIRQ(RTC_WKUP_IRQn). This all happens without actual
programing of the RTC wake-up.

As a result the RTC HW and corresponding HAL layer doesn't expect an
interrupt to happen and will not call HAL_RTCEx_WakeUpTimerEventCallback.

To sove this situation, we will not use HAL_RTCEx_WakeUpTimerEventCallback
weak definition but rather call handler whenever an RTC interrupt fires.
2017-10-20 16:18:29 +01:00
bcostm 4215a38de3 NUCLEO_L011K4: add ALT pins + cleanup 2017-10-20 16:18:29 +01:00
bcostm f47600c746 NUCLEO_F042K6: add ALT pins + cleanup 2017-10-20 16:18:29 +01:00
bcostm 84c8244e2e NUCLEO_L432KC: add ALT pins + cleanup 2017-10-20 16:18:29 +01:00
bcostm 05433d3ab7 NUCLEO_L031K6: add ALT pins + cleanup 2017-10-20 16:18:29 +01:00
bcostm 82b36f5ca6 NUCLEO_F303K8: add ALT pins + cleanup 2017-10-20 16:18:29 +01:00
andreas.larsson b33ad2714d Updated u-blox ODIN-W2 binaries to 2.2 rc1 2017-10-20 16:18:29 +01:00
bcostm 817cead74d Initialize State variable 2017-10-20 16:18:28 +01:00
bcostm 7f31c76b2b STM32 RTC: initializes structures 2017-10-20 16:18:28 +01:00
Russ Butler 9583fff8a7 Add error if OS tickrate is changed
The current mbed-os drivers rely on a tickrate of 1ms for timing.
This means that if OS_TICK_FREQ is set to any value other than 1000
then mbed-os driver will no longer delay for the correct amount of
time. To prevent this from happening this patch triggers a compile
time error if a tickrate other than 1m is used.
2017-10-20 16:18:28 +01:00
bcostm 215eddcf39 fix init struct analogout 2017-10-20 16:18:28 +01:00
Seppo Takalo d3f9dd3913 Enable MPL by default for 6LoWPAN-ND.
In Thread network, MPL is already enabled so this causes
both to behave similarly.
2017-10-20 16:18:28 +01:00
Kevin Bracey 62b5b443b0 lwIP: Add memory configs to JSON
We currently set the lwIP pbuf pool size small - to 5 x 576-byte
buffers.

This is insufficient to hold a single DTLS handshake flight, so can
cause cloud client connections to fail. STM-based platforms are failing
handshake because of this. (K64F works because it doesn't use the pbuf
pool for reception, but lwIP does recommend drivers use the pbuf pool).

Not changing the default memory sizes here, as intended for a patch
release, but adding mbed configuration options to allow the numbers to
be adjusted for memory tuning in an application.

In a future minor revision, I would recommend increasing the default
PBUF_POOL_SIZE - we are well below lwIP's out-of-the-box default - and
offsetting by a reduction in MEM_SIZE for the drivers that don't use
PBUF_RAM.
2017-10-20 16:18:28 +01:00
Kevin Gilbert 10b7613b03 Remove -p as an argument flag for profile 2017-10-20 16:18:28 +01:00
Kevin Gilbert 3c3e2800b8 Add profile argument to mbed-os example build tools to allow non-default build profiles to be passed in 2017-10-20 16:18:28 +01:00
Pavel Sorejs 0b5043ea5b Add bootloaderd support to NUCLEO_F446RE target 2017-10-20 16:18:28 +01:00
adbridge 4892b5476e Move to using command strings rather than command lists.
Previously the script used
cmd =['git','checkout', branch]
syntax. This does not work well cross platform. The solution it to
actually use strings. E.g.
cmd = "git checkout " + branch
2017-10-20 16:18:28 +01:00
adbridge 4c40c248c0 Fix the prepare_branch function
Currently when checking if the destination branch already exists the
command 'git branch' is used. This only returns local branches. What is
actually required is the list of remote branches. This can be obtained
by the command 'git branch -r' and filtering the result.
2017-10-20 16:18:28 +01:00
Seppe Stas 575c0645e7 Fix analogin scaling for EFM32 target
Fixes #5115.

`analogin_read_u16` returns a value in the range `0x0000 - 0xFFF0`
since the resolution of the ADC is 12 bits. However, in
`analogin_read` this value gets divided by `0xFFFF` assuming the range
is `0x0000-0xFFFF`. This causes a small error in the value returned by
`AnalogIn::read` for the EFM32 target.
2017-10-20 16:18:28 +01:00
Przemyslaw Stekiel 6e0cd31525 Add Low Power Timer test. 2017-10-20 16:18:28 +01:00
Kevin Bracey 30e8e9d5b1 Make poll() use wait(1) rather than yield()
Spinning while polling is overly CPU intensive, and inconsistent with
the current blocking behaviour of UARTSerial.

Change to use Thread::wait(1) to match UARTSerial.
2017-10-20 16:18:28 +01:00
Kevin Bracey 25400d5730 Avoid wait_ms() spin
System's wait_ms() spins to achieve a precise delay - we don't want this.
Call Thread::wait directly.
2017-10-20 16:18:28 +01:00
Andrzej Puzdrowski 075993e009 fix bug: I2C timeout due the clos strething by slave on nRFx SoC
Change implementation of timeout to one that is using us_ticker hal.
Timeout is now configurable by I2C_TIMEOUT_VALUE_US macro and this
value will be imported if will be defined externaly.
2017-10-20 16:18:28 +01:00
Martin Kojtal 1f258ce367 Test: deepsleep() API replacement
Use sleep() as entry function + check to be certain we
are entering deepsleep when required by test (should be allowed)
2017-10-20 16:18:28 +01:00
Vincent Coubard 3e3b70ed83 NRF52840: add the device configuration STCLK_OFF_DURING_SLEEP 2017-10-20 16:18:28 +01:00
Vincent Coubard a3ef05dd31 Fix typo in DELTA_DFBM_NQ620 target
Replace `device_has_had` by `device_has_add`
2017-10-20 16:18:28 +01:00
Vincent Coubard 76deb7ee21 Sleep: Disallow sleep for targets turning of the systick clock at sleep entry.
When the RTOS is present and the tickless mode is not implemented, it is
expected that the next tick issued by the Systick timer will wake up the MCU.
However nothing prevents an implementation of the ARM architecture to gate the
systick clock signal upon sleep entry.

Therefore on those targets sleep shall be prohibited if the RTOS is present and the
tickless mode is not implemented.

To ease life of porters , a new option has been added in the device add list:
STCLK_OF_DURING_SLEEP. This option expose that the target turn of the systick
clock during sleep.

Targets which exhibit such behavior shall add this define in their device_has list.
2017-10-20 16:18:28 +01:00
Przemyslaw Stekiel 1c376d6475 Add test for Timer class. 2017-10-20 16:18:28 +01:00
Rob Meades 006ca97478 Enable crypto HW acceleration for STM32F437xG platforms (i.e. ublox C030 family). 2017-10-20 16:18:28 +01:00
Shrikant Tudavekar d1e46c1035 fix echo test handshake and reduce uart load
1) if we receive more than one __sync, previous handshake would consider
it as echo_count and try to decode the value. Now we skip superfluous __sync.

2) reduce the uart load produced by the test, as we are heavily running tests in
parallel and not one-to-one this update was required.
2017-10-20 16:18:28 +01:00
Akos Kiss f926eb430d Fix documentation of BLE GattCharacteristic
The constructor doc incorrectly suggested that only short (16-bit)
UUIDs were accepted. The same doc also referred to properties
instead of characteristics. (And to "value length", which seemed to
be completely out of place in the context of the current code.)
2017-10-20 16:18:27 +01:00
Tony Wu b235e0a256 rtl8195am - fix ARMC6 guards
Fix ARMC6 guard typo introduced in commit 4f3f0cc9cc (Make Realtek link)

While at it, remove redundant ISR_STACK_SIZE assignment for ARMCC.

Signed-off-by: Tony Wu <tonywu@realtek.com>
2017-10-20 16:18:27 +01:00
Tony Wu 10f94e972a rtl8195am - remove obsolete configs
The following configs were no longer necessary for RTX5.
    OS_TASKCNT
    OS_MAINSTKSIZE
    OS_CLOCK

Signed-off-by: Tony Wu <tonywu@realtek.com>
2017-10-20 16:18:27 +01:00
andreas.larsson 3b45287824 Moved STDIO_UART defines to targets.json for UBLOX_EVK_ODIN_W2 instead of hardcoded. 2017-10-20 16:18:27 +01:00
Seppo Takalo 609cd3bb88 Add license texts 2017-10-20 16:18:27 +01:00
Seppo Takalo 1d8249133d Add Doxygen documentation for testcases. 2017-10-20 16:18:27 +01:00
Seppo Takalo ee9d04e248 Fix builds for targets without wifi or without mbed_app.json 2017-10-20 16:18:27 +01:00
Seppo Takalo 8cb7c14f90 Update help text 2017-10-20 16:18:27 +01:00