Commit Graph

13810 Commits (a2bc20f78cb1855cce7a895881f706c548312dd4)

Author SHA1 Message Date
Marcus Chang a2bc20f78c Make NRF52 flash work with SoftDevice
How you write and ersae the flash on the NRF52 changes depending on
whether the SoftDevice is enabled or not.

This change does a runtime check before erasing and writing, and
then chooses the correct function to perform the action.
2018-02-23 17:08:31 -06:00
jeromecoutant f6d1258d21 NETSOCKET pressure tests configuration 2018-02-23 17:08:31 -06:00
Christopher Haster 73e87a2f43 littlefs: Fix incorrect lookahead population before ack
Rather than tracking all in-flight blocks blocks during a lookahead,
littlefs uses an ack scheme to mark the first allocated block that
hasn't reached the disk yet. littlefs assumes all blocks since the
last ack are bad or in-flight, and uses this to know when it's out
of storage.

However, these unacked allocations were still being populated in the
lookahead buffer. If the whole block device fits in the lookahead
buffer, _and_ littlefs managed to scan around the whole storage while
an unacked block was still in-flight, it would assume the block was
free and misallocate it.

The fix is to only fill the lookahead buffer up to the last ack.
The internal free structure was restructured to simplify the runtime
calculation of lookahead size.
2018-02-23 17:08:31 -06:00
Przemyslaw Stekiel eb4a7bcc40 K64F lp ticker driver - calculation bug fix.
Delta calculation from lp_ticker_set_interrupt() function:
delta_us = timestamp > now_us ? timestamp - now_us : (uint32_t)((uint64_t)timestamp + 0xFFFFFFFF - now_us);

Lets assume that timestam == now_us.
Expected delta value should be 0 and in this current version is 0xFFFFFFFF.

The following condition:
timestamp > now_us
should have the following form:
timestamp >= now_us

Additionally modified us ticker driver to provide the same logic.
2018-02-23 17:08:31 -06:00
jeromecoutant ac196f1ea2 STM32 STDIO pin redefinition
wiki page https://os.mbed.com/teams/ST/wiki/STDIO updated
2018-02-23 17:08:31 -06:00
ccli8 778143f467 Refine internal_mpi_write_eccreg in ECP alter. 2018-02-23 17:08:31 -06:00
ccli8 e9be37db4b Refine crypto_zeroize/crypto_zeroize32 2018-02-23 17:08:31 -06:00
ccli8 4b33c9343b Support internal self-test for ECP alter. 2018-02-23 17:08:31 -06:00
ccli8 6c962c7c21 Remove mbedtls_internal_ecp_mul in ECP alter.
MbedTLS doesn't support point multiplication for MBEDTLS_ECP_INTERNAL_ALT acceleration configuration.
2018-02-23 17:08:31 -06:00
ccli8 d53641b564 Remove mbedtls prefix for internal functions in ECP alter. 2018-02-23 17:08:31 -06:00
ccli8 8c18a906bc Check divisor is not zero in MODOP_DIV operation in ECP alter. 2018-02-23 17:08:31 -06:00
ccli8 0de10b010d Refine code in ECP alter.
1. Add comment for unnecessary parameter 'n' in mbedtls_internal_run_eccop
2. Fix warning message with goto which causes `bypass initialization`
3. Fix comment
2018-02-23 17:08:31 -06:00
ccli8 1c01ea93da Fix warning in crypto 2018-02-23 17:08:30 -06:00
ccli8 0eb60860f6 Support ECP H/W accelerator 2018-02-23 17:08:30 -06:00
Cruz Monrreal II‰ ed6a8d8b7d Added missing bracket. 2018-02-23 17:08:30 -06:00
Cruz Monrreal II 2c1a79609c Modified 'apt-get update' to loop until successful 2018-02-23 17:08:30 -06:00
Jimmy Brisson c8305a84f4 Correct sector scraping in arm-pack-manager 2018-02-23 17:08:30 -06:00
Jimmy Brisson 35f3332933 Avoid blowing away .mbedignore files in exporters 2018-02-23 17:08:30 -06:00
PHST d5708db984 Simplify and Improve error/warning parser for arm_gcc 2018-02-23 17:08:30 -06:00
Andrew Leech 9163150e0b Avoid importing <memory> as this causes a typedef conflict on `error_t` whien compiling with gcc "-std=gnu++11" or above 2018-02-23 17:08:30 -06:00
Bilal 8f1dc9095d Formatting change - II 2018-02-23 17:08:30 -06:00
Bilal f855ef4c81 Formatting change 2018-02-23 17:08:30 -06:00
Bilal 43a0b8fbf1 Replacing i2c_xxxx(...) calls to reduce binary size and avoid any RTOS waits 2018-02-23 17:08:30 -06:00
Przemyslaw Stekiel 9ea3d2fb65 tests-events-timing - print debug info only in case of failure.
In the 'Testing accuracy of equeue semaphore' test case result is printed out in each loop iteration.
Since debug prints should not exist in the final test version I suggest to print information only in case of failure.
Additionally time needed to print single info is equal to ~25 ms (K64F/GCC_ARM). The while loop is designed to execute until 20000 ms elapses, so this print has also impact on number of times the loop is executed (number of semaphore accuracy checks).
2018-02-23 17:08:30 -06:00
Christopher Haster 9b80763dc3 equeue: Added note about using global event queues in irq 2018-02-23 17:08:30 -06:00
Christopher Haster 10c9712576 equeue: Added test for non-RTOS compilation regressions 2018-02-23 17:08:30 -06:00
Christopher Haster 47d7fc1b6d equeue: Removed RTOS dependencies when RTOS not present 2018-02-23 17:08:30 -06:00
ccli8 6dd4cf0b6d Rework us_ticker and lp_ticker
The rework includes the following:
1. Remove ticker overflow handling because upper layer (mbed_ticker_api.c) has done with it.
   This makes us_ticker/lp_ticker implementation more succinct and avoids potential error.
2. Refine timer register access with low-power clock source
2018-02-23 17:08:30 -06:00
Brendan McDonnell 18716f1b20 remove unused variable / resolve compiler warning 2018-02-23 17:08:30 -06:00
Pavel Slama f1af895506 STM32F429ZI add SERIAL_ASYNCH 2018-02-23 17:08:30 -06:00
jeromecoutant 4cf68c5e1f STM32F4 Cube v1.19.0 update : ST CMSIS files
Previous version was v1.16.0
2018-02-23 17:08:30 -06:00
jeromecoutant cd1c958ad8 STM32F4 Cube v1.19.0 update : ST HAL files
Previous version was v1.16.0
2018-02-23 17:08:30 -06:00
jeromecoutant 468048c817 STM32F4 Cube update : file name alignment 2018-02-23 17:08:29 -06:00
deepikabhavnani ffeca09259 Added SHA record for context switch assembly files 2018-02-23 17:08:29 -06:00
Deepika e33ff50409 Pulling in CMSIS commit 05fa9d328a
Systick handler switch to secure/nonsecure issues addressed:
1. Switch to secure/nonsecure context save/restore is based on 6th bit in
LR register, correct the bug (R7 instead of LR was used for decision)
2. Prevent R7 from being corrupted in Sys_ContextSave
3. Branch when non-secure rather than secure
2018-02-23 17:08:29 -06:00
deepikabhavnani 8eac84ca80 Non Secure flag is required for pre-processing of linker file 2018-02-23 17:08:29 -06:00
deepikabhavnani 3e181422d8 RTX5: Pre-processor defines used for assembly
CMSIS repo does not support pre-processor defines, hence multiple assembly
files are added for secure/non-secure and floating point tools.

Mbed OS tools support assembly file pre-processing, but the build system
does not support multiple assembly files for each target, hence updating
the assembly files.
2018-02-23 17:08:29 -06:00
Deepika c37f25a090 Default values for Trustzone Idle/Timer thread updated
Default value for timer/idle thread trustzone identifier is 0, updated
it to 1 to allow threads to access secure functions when timer is secure device.
2018-02-23 17:08:29 -06:00
Deepika cdb2ec21c1 RTX changes pulled in from d20b8aad7f5e
RTX5: Added TrustZone Module Identifier configuration for Idle and Timer Thread
2018-02-23 17:08:29 -06:00
Jan Jongboom a15e122982 gnuarmeclipse exporter uses mBed instead of proper casing 2018-02-23 17:08:29 -06:00
Przemyslaw Stekiel e56ef99593 Fix for issue #6054 - interrupts scheduled in the past.
When ticker is not driven by the 1 MHz clock and HAL driver need to perform conversion between microseconds and ticks, then the interrupt might be scheduled in the past. For details see: https://github.com/ARMmbed/mbed-os/issues/6054.

This patch provides fix for such case. Interrupt is fired immidiatelly when last read tick is equal to the calculated tick when interrupt should be generated.
2018-02-23 17:08:29 -06:00
daid a52009c176 Prevent detect_targets.py tool script from crashing on known targets
As mut['mcu'] can be "None" on unknown targets, the detect_targets script crashes when one of these boards is connected.

This happens when "mbed-cli detect -vv" is ran when a STEVAL-3DP001V1 board is connected. Which does not provide a html file with a target_id, and thus cannot be looked up in the mbedls platform database.
http://www.st.com/en/evaluation-tools/steval-3dp001v1.html
2018-02-23 17:08:29 -06:00
Christopher Haster 4ee3043721 mbr: Added note about limitations 2018-02-23 17:08:29 -06:00
Prashant Ravi e9c6303870 Fixing coding style
Fix Details: HAL API for loguart is different that UART. Initially we
didnt have support for loguart in the mbed api. These changes have been
made to support the loguart from the mbed api by using the correct HAL
api calls
2018-02-23 17:08:29 -06:00
Prashant Ravi 83165deda3 fix for serial issue #5805 2018-02-23 17:08:29 -06:00
bcostm 90c87335ce Add missing can legacy file 2018-02-23 17:08:29 -06:00
bcostm ea00afbaad F7 ST CUBE V1.10.0 F7 HAL driver V1.2.5 2018-02-23 17:08:29 -06:00
Tero Jääskö 5860dc08e4 tools: build: fix handing of "--stats-depth"
The introduction of pretty-bar had broken the handling of
"mbed compile"'s "--stats-depth" argument. No matter what one gave
as parameter to it, the result output is just using the default 2.
Fix the logic in build_api.
2018-02-23 17:08:28 -06:00
Christopher Haster 0a85303144 mbr: Added checks for extended partitions 2018-02-23 17:08:28 -06:00
Christopher Haster aee5511276 Added test to catch multiple nested MBRs 2018-02-23 17:08:28 -06:00