Commit Graph

19411 Commits (1e625e2a54ba6f62f9ab50e3037354e32b51ce40)

Author SHA1 Message Date
Deepika 9cbde92bf1 ARM: Fix alignment of execute region to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
2018-10-19 11:46:55 +01:00
Deepika d97b960964 Maxim: Fix alignment of execute region to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
2018-10-19 11:46:55 +01:00
Deepika cc12ada5cd Atmel: Fix alignment of execute region to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
2018-10-19 11:46:55 +01:00
Deepika a71dc828b9 Toshiba: Fix alignment of execute region to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
2018-10-19 11:46:55 +01:00
Deepika ae87e368d2 Nordic: Fix alignment of execute region to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
2018-10-19 11:46:55 +01:00
Deepika 68c7665826 Nuvoton: Fix alignment of execute region to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
2018-10-19 11:46:55 +01:00
Deepika 776b97a993 SiLabs: Fix alignment of execute region to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
2018-10-19 11:46:55 +01:00
Martin Kojtal e2e25e9e8b travis: add MBED BOT to the astyle job 2018-10-19 11:46:55 +01:00
TomoYamanaka 0721a76e32 Improve the config adjustment script for ENTROPY_NV_SEED
Although "nv_seed" is one of "entropy", it doesn't included to the "!defined" lineup in the following config file.
Therefore, when MBEDTLS_ENTROPY_NV_SEED is defined, it is accidently invoked "mbedtls/config-no-entropy.h".
mbed-os\features\mbedtls\inc\mbedtls\config.h
I think that correct processing should go to line 47, not line 40.
2018-10-19 11:46:55 +01:00
Filip Jagodzinski d1b66665df Tests: SleepManager: Fix sleep_auto test
Use us & lp tickers directly, without the common ticker layer.
2018-10-19 11:46:55 +01:00
Filip Jagodzinski 24767e48f1 Tests: Sleep: Extract test utility functions
Move a few of utility functions so other tests can use them.
2018-10-19 11:46:55 +01:00
Filip Jagodzinski b385dc2648 Tests: SleepManager: Update test_check() test
Increase delta to 500 us. This value is still short enough to detect
incorrect behavior of the sleep_manager_can_deep_sleep_test_check() fun,
but allows the targets with low LP timer accuracy to pass, i.e.
NUCLEO_F429ZI.
2018-10-19 11:46:55 +01:00
Filip Jagodzinski aa09d7bd57 Tests: SleepManager: Fix test suite setup
Use ticker init functions from upper HAL layer to allow proper handling
of ticker overflows.
2018-10-19 11:46:55 +01:00
Filip Jagodzinski a55ee97c2a Tests: SleepManager: Add test for new check() fun
sleep_manager_can_deep_sleep_test_check() is intended to be used in test
code.
2018-10-19 11:46:55 +01:00
Filip Jagodzinski 375f746413 HAL: SleepManager: Update header file
Move sleep manager API into its own doxygen group.
Add defined behavior section and links to tests.
2018-10-19 11:46:55 +01:00
Filip Jagodzinski dd710fade6 Tests: SleepManager: update concurrent test docs 2018-10-19 11:46:55 +01:00
Filip Jagodzinski 67638a039d Tests: SleepManager: extend test suite
New test cases:
* "deep sleep lock/unlock"
* "deep sleep unbalanced unlock"
* "deep sleep locked USHRT_MAX times"
* "deep sleep locked more than USHRT_MAX times"
* "sleep_auto calls sleep/deep sleep based on lock"
2018-10-19 11:46:55 +01:00
Seppo Takalo 7a07bc88e7 Guard Atmel RF driver build by DEVICE_I2C
This module uses AT24MAC chip which is in I2C bus, so it requires
device to support I2C
2018-10-19 11:46:55 +01:00
Andrew Leech 19cd207c21 nrf_ble: Expose configuration of max number of characteristics and descriptors 2018-10-19 11:46:55 +01:00
Jarkko Paso 4c63e4adda platform timer: Call timer start in enable
This timer was never started and therefore read_us returned always 0 causing bad timings.
2018-10-19 11:46:55 +01:00
Juho Eskeli 6b0133d4b7 Adjust stack & heap for IAR on STM32F412xG 2018-10-19 11:46:55 +01:00
Jarno Lamsa 6844a054a3 mcr20a use core_util_critical_section functions 2018-10-19 11:46:55 +01:00
Juho Eskeli b3a69c54c7 Remove redundant error flag clearing operation 2018-10-19 11:46:55 +01:00
Juho Eskeli e9f845bb7a Clear error programming flags before erase & program operations 2018-10-19 11:46:55 +01:00
jeromecoutant 95c46b5d21 STM32 RTC : write RTC time while LPTICKER is enabled
This fix avoid a long waiting loop in rtc_write function,
  which was not acceptable in TICKLESS context.

Implementation comments added.

Global variable name has been updated for easier maintenance:
- LPTICKER_counter is the U32 continuous tick counter
- LPTICKER_RTC_time is the RTC time used to get the time difference
   between rtc_read_lp() calls
2018-10-19 11:46:55 +01:00
Yossi Levy 8f95eb5d8c Adding back blockdevice example after removing it for PR #7774. Target should be K64F 2018-10-19 11:46:55 +01:00
Jimmy Brisson a191140852 Tools: Fix Python3 + firmware header traeback
### Description

Traceback:
```
Merging Regions
  Filling region bootloader with mbed-cloud-client-example/mbed-os/features/FEATURE_BOOTLOADER/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/TARGET_FRDM/mbed-bootloader-k64f-block_device-sotp-v3_4_0.bin
  Padding region bootloader with 0x9a4 bytes
Traceback (most recent call last):
  File "mbed-cloud-client-example/mbed-os/tools/make.py", line 293, in <module>
    ignore=options.ignore
  File "mbed-cloud-client-example/mbed-os/tools/build_api.py", line 548, in build_project
    merge_region_list(region_list, res, notify)
  File "mbed-cloud-client-example/mbed-os/tools/build_api.py", line 423, in merge_region_list
    _fill_header(region_list, region).tofile(header_filename, format='hex')
  File "mbed-cloud-client-example/mbed-os/tools/build_api.py", line 380, in _fill_header
    header.puts(start, struct.pack(fmt, time()))
struct.error: required argument is not an integer
```

reason: `time()` returns a float. So the fix is to force it to be an `int`.

### Pull request type

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Breaking change
2018-10-19 11:46:55 +01:00
Ganesh Ramachandran b3d935c169 Fix for pinmap & usticker free() to TMPM3H6
Implemented usticker free()
Fix pinmap data overwriting to same port pins
2018-10-19 11:46:55 +01:00
Kimmo Vaisanen 5e105ddb7b Cellular: Fix ATHandler_stub compiler warnings 2018-10-19 11:46:55 +01:00
Kimmo Vaisanen bff5c3be86 Cellular: Fix AT_CellularStack unittest
Missing CellularSocket constructor caused uninitialized values to be used.

Also changed comparision macros to ASSERT_EQ as suggested by GoogleTest guide.
2018-10-19 11:46:55 +01:00
bcostm 34530633e2 STM32: Fix I2C stop condition
Need to ensure the transmission has been started before sending a STOP condition.

Issue found on the NUCLEO_H743ZI due certainly to the high-speed clock used.

But this is normally needed also on all STM32 devices using the I2C peripheral version 2.
2018-10-19 11:46:55 +01:00
Jimmy Brisson b44bf98b77 tools: Make "file" key in notifications consistant
### Description

2 calls to `notify.cc_verbose` used the a FileRef object in place of
the file's name. Other calls to `notify.cc_info` would use just the
file name. This PR changes these 2 calls to be consistant with the rest.

### Pull request type

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Breaking change
2018-10-19 11:46:55 +01:00
Jimmy Brisson 00f93471f3 tools, NRF51-post-build: Use paths to hex files
### Description

The NRF51 post build hook finds it's hex files using the Resources
object. This PR fixes the corner case where the hex files within a
project have a name!=path (This really only happens online).

### Pull request type

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Breaking change
2018-10-19 11:46:55 +01:00
Mirela Chirica 8346498a28 Cellular: Fix greentea network set credentials test case 2018-10-19 11:46:55 +01:00
Seppo Takalo 2ca0f74a21 Fix WIFI_CONNECT_PARAMS_CHANNEL_FAIL testcase.
Test case was assuming that secure and unsecure SSID were on different
channels.
This is not a requirement and it should be OK to run on same channel.

Fixed the testcase by using +1 on channel number to get a wrong channel.
2018-10-19 11:46:55 +01:00
Ganesh Ramachandran 334dab3463 Fixed pwmout & serial fuart
pwmout:
Used SystemCoreClock

Serial fuart:
SERIAL_5 & SERIAL_3 have same CTS pin (PA7), only function register is different (4 & 2).
pinmap_peripheral() will always return first match from the map.
Hence changed as, if SERIAL_5 is used, then pinmap_peripheral() should return SERIAL_5 (function register 2 to be set).
2018-10-19 11:46:55 +01:00
Veijo Pesonen 976c54b498 Drops removed mbedgt-netsocket cases from test specification 2018-10-19 11:46:55 +01:00
Veijo Pesonen 80fc1462eb Makes mbedgt-network-wifi case to skip channel number check
2.4GHz and 5GHz channels might be using the same SSID. Wifi scan
might also fail occasionally to find secure- and unsecure channels
on same scan so lets not assume that we'll find both.
2018-10-19 11:46:55 +01:00
Veijo Pesonen 584f54fee4 Makes mbedgt-netsocket cases to accept port 0 as destination 2018-10-19 11:46:55 +01:00
Amanda Butler 2cd2292451 Copy edit REAMDE.md
Copy edit file, mostly for active voice and consistent spelling.
2018-10-19 11:46:55 +01:00
ccli8 ab3fb4357e Add README.md for secure library/executable 2018-10-19 11:46:55 +01:00
ccli8 cfa654ee82 Add license file for secure library/executable 2018-10-19 11:46:55 +01:00
Kimmo Vaisanen f16cdf45d9 Add missing SIM PIN configuration item 2018-10-19 11:46:55 +01:00
Russ Butler 2a1560143c Fix the CMSIS macro ARM_MPU_RASR
The update to CMSIS 5.4.0 broke the macro ARM_MPU_RASR. This patch
pulls in the upstream fix from CMSIS:
2ead2adffb (diff-e4bfba5228373d368ac2543d6e5bd4d0)
2018-10-19 11:46:55 +01:00
bcostm 9adc6635a0 STM32: add missing IAR exporters 2018-10-19 11:46:55 +01:00
jeromecoutant 32830342f5 DISCO_L496AG : enable ADC
See User Manual, VREF+ is not connected by default

NB: Use 2.5V as reference (instead of 3.3V)
for internal channels calculation
2018-10-19 11:46:55 +01:00
Jammu Kekkonen c70943b544 Change update file format to binary to all targets
- Change the default file format to binary for all targets, even though some targets need hex as app format, updater always needs bin for now
- Unify the file name generation from generator side and usage side for the update bin
2018-10-19 11:46:55 +01:00
Ganesh Ramachandran 41875b25e0 Implemented us_ticker free() 2018-10-19 11:46:55 +01:00
Ganesh Ramachandran 1fdf672e19 Added usticker feature
To enable the feature US_TICKER, file is newly implemented with Timer B, which has proper clock prescale and free running after match interrupt.
Old us_ticker driver file (Timer A) is producing up to 100us tolerance, which causes to fail US_TICKER feature.
Hence, changed the peripheral ticker A to B.
2018-10-19 11:46:55 +01:00
TomoYamanaka 9894c50d71 Revise the value of return value of flash_get_page_size()
Currently the return value of flash_get_page_size() is 1 since the min size per one writing is 1 byte by Flash spec.
However, I noticed that this value causes a enormous write time When writing large data such as FW update.
So I revised this value to 8 byte by considering the writing time, memory alignment and memory hole.
2018-10-19 11:46:55 +01:00