Commit Graph

12311 Commits (55b992f130b847d2851a978e55a53de7930d4be5)

Author SHA1 Message Date
Christopher Haster 55b992f130 bd: Added trim function to let filesystems give erase hints to FTLs 2017-09-24 21:34:28 +01:00
Christopher Haster 8c10a627f6 bd: Changed BlockDevice erase to default as no-op
This should help with confusion around devices that don't have
a physical erase operation, such as SD cards and spinny disks.
2017-09-24 21:34:28 +01:00
Russ Butler 614bbe7ae5 Remove direct use of us and lp ticker from tests
Remove the direct use of the microsecond and low power ticker from
the tests. This enforces that sleep mode is properly locked when
using timers. Furthermore, this prepares the codebase for new ticker
changes which allow differing clock frequencies and timer bit widths.
2017-09-24 21:34:28 +01:00
Andres Amaya Garcia 843da7b8cb mbedtls: Disable MD5, SHA1, SHA256 HW ACC for STM32F439xI
STM32F439xI-family MD5, SHA1 and SHA256 hardware acceleration
occasionally produces incorrect output (#5079).

Don't enable MD5, SHA1 and SHA256 HW acceleration on STM32F439xI-family
targets by default until issue #5079 is fixed.
2017-09-24 21:34:28 +01:00
adustm 4f423ed50f Change after code review : standardize calls among ST families Check return values in alignment with MBEDTLS error codes 2017-09-24 21:34:28 +01:00
adustm 56f5d7f70d Use new interface of mbedtls instead of deprecated functions 2017-09-24 21:34:28 +01:00
adustm 8888e3911b Fix multi context for AES CBC and ECB mode Fix mbed-os-example-tls-client use case 2017-09-24 21:34:28 +01:00
adustm 0673e24851 Enable AES_ALT mode again (remove workaround) 2017-09-24 21:34:28 +01:00
Christopher Haster f9ac4d676d Fix travis requirements install
pip requires --user flag when installing executables outside of sudo context
2017-09-24 21:34:28 +01:00
Laurent MEUNIER 7a7ccd7743 STM32: F2: put can_s struct under DEVICE_CAN option
In case of F2 devices without CAN support.
2017-09-24 21:34:28 +01:00
Laurent MEUNIER ca3a1aa66c STM32: CAN: store the mode in object context
In order to apply the same mode in case of reset, we store the current
requested mode in the HAL structure.

To make storage in a single place, we also change can_monitor to call
can_mode function as they actually acting on same registers.
2017-09-24 21:34:27 +01:00
Laurent MEUNIER 08eba6ccd9 STM32: CAN: do not overwite BTR register when setting frequency
BTR register has other bits than the ones calculated and set through
the can_speed function, so let's take care to only write to the
right registers.
2017-09-24 21:34:27 +01:00
Laurent MEUNIER a6ad257d55 STM32: CAN: restore registers after can_reset
After reset the MCR register content needs to be restored so we're
introducing the can_registers_init function to be called at the first
init stage, but also after reset. We also store the can frequency to
go through the initialisation phase again.
2017-09-24 21:34:27 +01:00
Laurent MEUNIER 9ad4a913cd STM32: Define CAN handle as part of can object
Instead of a static object, this will make driver
instantiation more robust and allow to re-use init
configuration on a need basis.

The CANName struct member is actually the CAN registers base address,
which is now available in the CanHandle.Instance field, so we don't need
CANName anymore.
2017-09-24 21:34:27 +01:00
Laurent MEUNIER eb2bb84e83 STM32: move can_s definition to common_objects.h
This will ease up further changes to the structure.
2017-09-24 21:34:27 +01:00
Tony Wu 174d53649f rtl8195am - fix us_ticker porting
commit f7bc126 (Re-work Rtl8195AM ticker) tried to address ticker drifting
issue, but in fact broke ticker functionality. This patch adjusts us_ticker
porting to unbreak it, and to fix the following tests:

mbed-os-tests-mbed_drivers-ticker
mbed-os-tests-mbed_drivers-timeout
mbed-os-tests-mbedmicro-rtos-mbed-isr
mbed-os-features-frameworks-utest-tests-unit_tests-minimal_async_scheduler
mbed-os-features-frameworks-utest-tests-unit_tests-case_control_async
mbed-os-features-frameworks-utest-tests-unit_tests-case_async_validate

Changes are:

1. Dont disable timer after every us_ticker interrupt. That basically
   breaks ticker functionality.

2. Fine-tune us to tick conversion macro. Previous conversion method
   yields 1 tick drift every 2 ms.

3. Remove special placement of ticker objects. No longer necessary.

Signed-off-by: Tony Wu <tonywu@realtek.com>
2017-09-24 21:34:27 +01:00
Arto Kinnunen d67ba714ca Fix redefinition of mbed TLS error codes
-Use guards around MBEDTLS macros.
2017-09-24 21:34:27 +01:00
Jimmy Brisson 5499db1e81 Merge pull request #5178 from ARMmbed/release-candidate
Release candidate for mbed-os-5.6.0-rc3
2017-09-23 08:10:56 -05:00
Jimmy Brisson 570a29236b Remove prefix stuff from GCC memap parser
It's just not used anymore
2017-09-22 15:15:07 +01:00
Jimmy Brisson 371212a4b9 Test the module_add function 2017-09-22 15:15:07 +01:00
Jimmy Brisson 01475cf4c2 Test GCC memap parser 2017-09-22 15:15:07 +01:00
Jimmy Brisson 2b8f993612 Test memap parsing for ARMC6 and IAR 2017-09-22 15:15:07 +01:00
Jimmy Brisson 238596f658 Parse full paths from ARM map file
Now we don't have to scan!

This is a 20% speed improvement
2017-09-22 15:15:07 +01:00
Jimmy Brisson 86b441c5a4 Display full paths in armlink output 2017-09-22 15:15:07 +01:00
Jimmy Brisson 2dbe035d0b Remove warnings for Zero sized sections
We just don't care if we don't know where they go
2017-09-22 15:15:07 +01:00
Jimmy Brisson 2e2a45a663 Parse filenames from IAR map file
Instead of scanning.

Is a 8ms/15% speedup.
2017-09-22 15:15:07 +01:00
Jimmy Brisson 802cfcfbca Refactor memap for speed 2017-09-22 15:15:07 +01:00
Jimmy Brisson 6e087488e1 Merge pull request #5140 from ARMmbed/release-candidate
Release candidate for mbed-os-5.6.0-rc2
2017-09-19 16:51:54 -05:00
Yuguo Zou de0e99cf11 Re-work Rtl8195AM ticker
Remove intermediate variances and use uint64 instead;
Remove HalTimerIrqEn called in us_ticker.c
2017-09-19 11:36:38 +01:00
Yuguo Zou f516eed740 Remove unused code
Clean rtl8195a_init.c a little bit
2017-09-19 11:36:38 +01:00
Yuguo Zou abe3a60e6a Increase tcpip thread stacksize for REALTEK_RTL8195AM
The default stack size is not enough for debug profile (low compiler
optimization)
2017-09-19 11:36:38 +01:00
Yuguo Zou 952fff985b Update wlan lib to fix debug profile
The issue of mutex returning osErrorISR with debug profile is fixed
2017-09-19 11:36:38 +01:00
Yuguo Zou a468a760b4 Update MSP setup
Use asm code to set MSP
2017-09-19 11:36:38 +01:00
Jimmy Brisson dacf0f4f28 Mock supported_toolchains values in tests 2017-09-19 11:36:38 +01:00
Deepika 457f7c762c Replaced older version of assembly file with 2016-2017 version from RTX 2017-09-19 11:36:38 +01:00
Deepika 76a0660ec6 Corrected check for ARM/ARMC6 toolchain
ARMC6 support required ARM compiler support as mandatory requirement which
should not be the case. Cortex-M23/M33 devices are not suuported by ARM compiler5

Adding ARMC6 without ARM in target.json should work now.
2017-09-19 11:36:38 +01:00
Deepika 1f48da98e4 ARMC6 support for Cortex-M23 2017-09-19 11:36:38 +01:00
Jimmy Brisson 19fb4b97ca Correct uninit region for nordic targets 2017-09-19 11:36:38 +01:00
Jimmy Brisson 318419a705 Allow ARMC6 to run post-binary-hooks marked for ARM 2017-09-19 11:36:38 +01:00
Hasnain Virk 9fd68c3754 Seperatig string literal from macro
From C++11 and beyond string literals must be seperated by space
so that they are recongizable as seperate tokens.

Context macro in PPPCellularInterface (CTX) has been causing issues
as it was not augmented with a space from a nearby string literal.
2017-09-19 11:36:37 +01:00
Jimmy Brisson 80ae6acd2b Parse libraries with memap-arm 2017-09-19 11:36:37 +01:00
Shrikant Tudavekar c563dd6ca8 update domain name to os.mbed.com 2017-09-19 11:36:37 +01:00
Jaeden Amero 60bf2d68cd mbed_rtx_idle: uVisor: Don't attempt to sleep
When uVisor is enabled, don't attempt to sleep. Attempting to sleep will
fail, as per <https://github.com/ARMmbed/uvisor/issues/420>.
2017-09-19 11:36:37 +01:00
Deepika 36c7b7e94e Added assert for malloc 2017-09-19 11:36:37 +01:00
Jimmy Brisson 088fa1dd77 Emit dependency information with ARMC6
Which allows it to be parsed
2017-09-19 11:36:37 +01:00
Jimmy Brisson e5d27f33dc Correct long call macros for ARMC6 2017-09-19 11:36:37 +01:00
Jimmy Brisson 8579eedad7 Correct uvision template to correctly pass include paths 2017-09-19 11:36:37 +01:00
Jimmy Brisson 374ce26759 Correct rename mistake in make arm compiler exporters 2017-09-19 11:36:37 +01:00
Jimmy Brisson c40368113a Disable response files on export
None of the exporters can handle them, so just don't do it
2017-09-19 11:36:37 +01:00
Jimmy Brisson 411b7fd63f Merge pull request #5132 from JanneKiiskila/fix_ver
Fix MBED_ VERSION
2017-09-18 17:32:09 -05:00