Commit Graph

22355 Commits (87a9d7c45a3d00941952218177939e00b73fe877)

Author SHA1 Message Date
Ari Parkkila 47a8f24b1e Cellular: Fix astyle 2019-01-31 04:15:01 -08:00
Martin Kojtal a12ab30f98
Merge pull request #9414 from SeppoTakalo/ONME-4013
Clarify asynchronous Networkinterface::connect() and disconnect() API
2019-01-31 11:30:29 +01:00
Martin Kojtal dbc3c6250b
Merge pull request #9487 from theamirocohen/add_sd_driver_example
Add sd-driver example
2019-01-31 11:22:59 +01:00
Martin Kojtal 9265c19e2e
Merge pull request #9394 from jeromecoutant/PR_PERIPH
STM32: PeripheralPins files update from lastest CubeMX tool version
2019-01-31 11:21:09 +01:00
Martin Kojtal 272bc14cde
Merge pull request #9546 from jarlamsa/mesh_api_fixes
Mesh api fixes
2019-01-31 11:19:55 +01:00
Martin Kojtal 94baadfc34
Merge pull request #9549 from paul-szczepanek-arm/fix-scan-timeout
BLE: fix missing scan timeout for 4.2 controllers using new API
2019-01-31 11:19:29 +01:00
Martin Kojtal 7c578cf2c6
Merge pull request #9527 from bridadan/remove_yotta_references
Remove yotta references within testing frameworks
2019-01-31 11:16:54 +01:00
Martin Kojtal 50b5f57c28
Merge pull request #9457 from blind-owl/fix_valgrind_defects_from_cellular
Fix valgrind defects from cellular
2019-01-31 11:12:00 +01:00
Martin Kojtal 1af3842b52
Merge pull request #9550 from michalpasztamobica/nanostack_double_connection_attempt
Prevent double attempt to connect mesh api
2019-01-31 11:08:37 +01:00
Martin Kojtal 6ef9349038
Merge pull request #9552 from jeromecoutant/PR_H7OS2
STM32H7: Enable OS2 compilation
2019-01-31 11:08:12 +01:00
Martin Kojtal 85cc30a425
Merge pull request #9485 from u-blox/R410
UBLOX_C030: Fix modem reset functionality
2019-01-31 11:04:47 +01:00
Rob Vlaar fa68d43ebd fixed indentation 2019-01-31 08:55:51 +01:00
Cruz Monrreal cc94690363
Merge pull request #9544 from kjbracey-arm/reboot_limit_fix
Halt to enforce reboot limit once only
2019-01-30 17:32:55 -06:00
Cruz Monrreal debec0960c
Merge pull request #9547 from kjbracey-arm/die_wait_us
mbed_die: Use wait_us not wait_ms
2019-01-30 17:32:40 -06:00
Cruz Monrreal 87e57d3ced
Merge pull request #9548 from davidsaada/david_flashiap_retries
FlashIAP driver: Add retries to erase and program operations.
2019-01-30 17:32:19 -06:00
deepikabhavnani 2952735ac0 Moved util (common test folder) inside the TESTS directory
Util was common test folder, which was kept outside as we had
no mechanism to have common files for various tests in tools.
Now same can be achieved by having COMMON folder inside tests
directory
2019-01-30 16:51:05 -06:00
deepikabhavnani 0d6bd2798f Moved `mbed_lib.json` outside config folder
This is to have consistency across all storage components
2019-01-30 16:51:05 -06:00
Andriy.Lishchynskyi 48dfcd98a9 Changes:
- added new erase launch configuration
- added new kits support
- code cleanup
2019-01-30 19:48:20 +02:00
Veijo Pesonen 53c2879a5c ESP8266: makes guarding variable for deferring events atomic 2019-01-30 17:00:56 +02:00
Veijo Pesonen 7d3621dae4 ESP8266: reduces SIGIO signaled to the upper layers 2019-01-30 17:00:56 +02:00
David Saada 48a3ae9636 FlashIAP driver: Add retries to erase and program operations.
Few boards may fail the write actions due to HW limitations (like critical
drivers that disable flash operations). Just retry a few times until success.
In addition, remove the redundant retries in NVStore (not needed now).
2019-01-30 16:05:27 +02:00
Rob Vlaar 4378689944 Reset internal vref buffer after an ADC conversion using the config channel function 2019-01-30 14:43:05 +01:00
Michal Paszta 53a82faa5a Prevent double attempt to connect mesh api
Socket network interface tests were failing due to DICONNECTED event
being advertised, where GLOBAL_UP was expected. It turned out that
nanostack receives two events: APPL_EVENT_CONNECT and
APPL_BACKHAUL_INTERFACE_PHY_UP. The second attempt to connect obviously
returns errors, but it also causes events to be sent out to the
application. The second attempt should not take place in case the
bootstrap is already started.

I also fixed two reports being sent with DISCONNECT status, while they
are actually something else.
2019-01-30 15:08:11 +02:00
jeromecoutant 0564498509 STM32H7: 0S2 compilation 2019-01-30 14:05:45 +01:00
paul-szczepanek-arm d9c919b7e1 review fixes 2019-01-30 12:19:04 +00:00
paul-szczepanek-arm e1a8fb5a7a check scanning status first 2019-01-30 11:45:26 +00:00
paul-szczepanek-arm 7f888f86bf scan timeout for 4.2 controllers using new API 2019-01-30 11:37:17 +00:00
Kevin Bracey 3056ba730c mbed_die: Use wait_us not wait_ms
mbed_die was calling wait_ms in a critical section - this is deprecated
behaviour, and caused a fatal error in debug builds, potentially leading
to an infinite reboot loop if this was caused due to a reboot limit
halt.

Switch to using wait_us - this is safe in a critical section. This does
trigger a call to mbed_warning, due to the large parameter, but that is
harmless - it doesn't output anything to the console, and won't
overwrite the error context if it already contains something.
2019-01-30 13:29:13 +02:00
Jarno Lamsa 740488d061 Set tasklet parameters before connecting
Set tasklet parameters before connecting to prevent the parameters to be set to 0.
The tasklet parameters are reset to 0 when wisun_tasklet_connect gets called,
thus those need to be set in the wisun_tasklet_configure_and_connect_to_network
before they are used. This is also done this way in other tasklets.
2019-01-30 13:06:17 +02:00
Jarno Lamsa d7af9418da Remove yotta-specific lines from .gitignore 2019-01-30 13:04:08 +02:00
Kevin Bracey d55640340d Halt to enforce reboot limit once only
The pre-main check of error_reboot_count was applied repeatedly on
every boot, meaning that once the reboot limit was hit, every subsequent
reset would halt before main, until something managed to clear
or corrupt the error context.

Set the is_error_processed flag before halting, so that when an external
agent resets us while we're halted, we do not report the error and halt
again.
2019-01-30 12:58:25 +02:00
Martin Kojtal a4ed473afc
Merge pull request #9515 from VeijoPesonen/bugfix-tests-netsocket-udp_udpsocket_sendto_invalid
tests-netsocket-udp UDPSOCKET_SENDTO_INVALID allow unsupported empty UDP packet
2019-01-30 10:08:34 +01:00
Martin Kojtal c7998aa62c
Merge pull request #9528 from kjbracey-arm/atomic_load_store
Second barrier for core_util_atomic_flag_clear
2019-01-30 10:07:33 +01:00
Martin Kojtal 30070c6055
Merge pull request #9533 from mirelachirica/remove_obsolete_cellular_unittests
Cellular: Remove makefile and mbedignore refering to obsolete cellula…
2019-01-30 10:07:02 +01:00
Martin Kojtal 93f0a09344
Merge pull request #9521 from cmonr/py3-tests-and-fixes
Py3 fixes and Travis CI enablement
2019-01-30 10:02:50 +01:00
Martin Kojtal 88d7ef155b
Merge pull request #9531 from theamirocohen/remove_flashiap_tests
Remove COMPONENT_FLASHIAP tests
2019-01-30 09:57:35 +01:00
Martin Kojtal 8847b87852
Merge pull request #9522 from bridadan/update_test_packages
Update all mbed test packages
2019-01-30 09:57:13 +01:00
Martin Kojtal 2a16bbdf98
Merge pull request #9496 from NXPmicro/Add_MXRT_IAR_Support
MIMXRT1050_EVK: Add IAR support in the exporter
2019-01-30 09:56:29 +01:00
Martin Kojtal 87851f3e01
Merge pull request #9472 from AriParkkila/cellular-refactor-greentea
Cellular: Fix cellular specific Greentea tests
2019-01-30 09:55:55 +01:00
Martin Kojtal 7d036b52cd
Merge pull request #9283 from michalpasztamobica/tlssocket_greentea
Add TLSSocket greentea tests.
2019-01-30 09:55:21 +01:00
Martin Kojtal 1031e2d464
Merge pull request #9236 from jeromecoutant/PR_SD_TEST
COMPONENT_SD tests update for small RAM targets
2019-01-30 09:54:41 +01:00
Cruz Monrreal ad04edf9c1
Merge pull request #9532 from kjbracey-arm/trng_mutex
Mutex-protect mbedtls_hardware_poll
2019-01-29 16:53:41 -06:00
Jimmy Brisson b836b340a2
Updated spm test runner wish short import variant
Co-Authored-By: cmonr <Cruz.Monrreal@arm.com>
2019-01-29 14:54:42 -06:00
Mahesh Mahadevan 00477ddf68 LPC546XX, MIMXRT1050: Update to fix ARMC6 build failures
Fix for issue 9402

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-01-29 14:21:44 -06:00
Kevin Bracey 6e3c492cd8 mbed_retarget.cpp: Combine ARMC5 and ARMC6 tests
A couple of places in mbed_retarget.cpp were testing for either ARMC5 or
ARMC6 in a long-winded fashion. Testing for __ARMCC_VERSION being
defined is sufficient.
2019-01-29 17:49:19 +02:00
Kevin Bracey c55329157a Use atomics in __cxa_guard functions
Similar to SingletonPtr, use atomic accesses when loading the guard word
outside the lock, and when storing, to ensure no races for threads that
don't take the lock.

Lack of atomics unlikely to be a problem in current builds, but code
could conceivably be subject to reordering if link-time optimisation was
enabled.
2019-01-29 17:49:18 +02:00
Brian Daniels 8be2ba4b8d Update all mbed test packages.
This change allows the latest releases of mbed-ls, mbed-host-tests, and
mbed-greentea. This brings new target support, features, and bug fixes.
2019-01-29 09:36:58 -06:00
Kevin Bracey 6e41d6cdb7 Make SingletonPtr safe using atomics
SingletonPtr's implementation wasn't totally safe - see "C++ and the
Perils of Double-Checked Locking"by Meyers and Alexandrescu. No problems
observed in practice, but it was potentially susceptible to compiler
optimisation (or maybe even SMP issues).

Now that we have atomic loads and stores, the function can be made safe,
avoiding any potential races for threads that don't take the lock:
ensure that the unlocked load is atomic, and that the pointer store is
atomic.

See https://preshing.com/20130930/double-checked-locking-is-fixed-in-cpp11/
for more discussion.
2019-01-29 16:01:33 +02:00
Amir Cohen 35df2de703 Remove COMPONENT_FLASHIAP tests
FlashIAPBlockDevice LittleFS ‘fopen’ falls on nightly tests
LittleFS test on FlashIAP is not relevant and thus removed
2019-01-29 13:54:40 +02:00
Mirela Chirica 2bdfafc9fc Cellular: Remove makefile and mbedignore refering to obsolete cellular unit tests 2019-01-29 13:23:39 +02:00