Commit Graph

16749 Commits (dc3092fd9a38d2dc146e0585ced3fc9f3b216c47)

Author SHA1 Message Date
Russ Butler 607f78213d Fix USB on Kinetis devices
Set correct SYSMPU register for proper USB operation.  This bug was
introduced when the SYSMPU register names and defines were updated
in the commit:
"K64F: Updated the SYSMPU SDK driver"
93f8cfed05
2018-06-15 13:30:56 +01:00
Ari Parkkila 0aff4e836b Cellular: Enable AT debug also when mbed-trace is disabled 2018-06-15 13:30:56 +01:00
jeromecoutant 01fe512daa STM32 ETH : remove TX RX locking interrupt perforation 2018-06-15 13:30:56 +01:00
jeromecoutant 7c0f54cc16 Dual Bank Flash support update 2018-06-15 13:30:56 +01:00
bcostm 9be9d97b06 Add support of Flash dual bank mode on DISCO_F769NI 2018-06-15 13:30:56 +01:00
bcostm fb639a47e2 Add support of Flash dual bank mode on NUCLEO_767ZI 2018-06-15 13:30:56 +01:00
Teemu Kultala 80464502fa more effective port randomisation 2018-06-15 13:30:56 +01:00
Teemu Kultala 394b2f157d random socket port number 2018-06-15 13:30:56 +01:00
Mika Leppänen b1faa8f31d Changed TCP socket test to use shared buffers
Changed RX and TX buffers used in TCP socket tests to global variables
to conserve memory.
2018-06-15 13:30:56 +01:00
Mika Leppänen 4d3921d498 Updated EMAC test environment for LPCxx boards
Updated EMAC memory manager to use libservice nsdynmemlib
for EMAC memory buffers. Located the nsdynmemlib buffer heap
to DMA safe memory bank on LPCxx boards. Optimized placement of
static variables on EMAC test environment for LPCxx boards to
maximize available memory.
2018-06-15 13:30:56 +01:00
bcostm 9e915556a7 Add license 2018-06-15 13:30:56 +01:00
bcostm 8b7e62bf65 Remove HAL_TICK_DELAY (no more used) 2018-06-15 13:30:56 +01:00
bcostm 075e445036 Cleanup
- Remove calls to HAL_SuspendTick and HAL_ResumeTick
- Rename stm_common.c in hal_tick_common.c
2018-06-15 13:30:56 +01:00
bcostm 869b47ddb3 Remove code related to timer channel 2 2018-06-15 13:30:56 +01:00
bcostm f3ea877f3a Replace HAL_GetTick 2018-06-15 13:30:56 +01:00
Vincent Coubard b80471a005 Nordic: Fix nrf sections on ARMCC
The nrf section features has different implementations for each compilers supported by mbed-os. The header guard was ruling out compiler other than GCC by checking if __GNUC__ is defined. This check is not applicable on mbed os as the ARM compiler compile sources with gnu compatibility.

This patch makes sure that the right implementation is selected for the right compiler . The previous patch has been reverted as it is not reliable.
2018-06-15 13:30:56 +01:00
Juha Ylinen 8dbd41c57f Add targets to Greentea EMAC tests
Update test configuration file for WicedInterface
2018-06-15 13:30:56 +01:00
Teppo Järvelin 33653e89e3 Review fix: - set ppp_active false if close fails in ppp disconnect. - unset sigio in ppp disconnect - take ownership of filehandle in CellularNetwork::disconnect even in case of failure 2018-06-15 13:30:56 +01:00
Teppo Järvelin 7a53ed276e Fixed ppp disconnect hangs when connection failure. 2018-06-15 13:30:56 +01:00
Amanda Butler 0d8b331eb0 Copy edit README.md
Tweak bullet's phrasing to clarify meaning
2018-06-15 13:30:56 +01:00
David Saada 4d7a15e0f1 Fix NVStore README file (changed APIs) 2018-06-15 13:30:56 +01:00
Kimmo Vaisanen 58230e0786 Lora: Check for valid ABP params
Check that ABP dev_addr and nwk_id is non-zero and keys are not null.
2018-06-15 13:30:56 +01:00
Hasnain Virk e6e3993d4a dr_range bitfield should be unsigned integer
If the value is an integer, the 4th bit is used for sign, so you can store
values upto 7 only whereas the datarate values could go upto 15. That's why
we need to turn this to an unsigned integer so that the last bit can also be used.
2018-06-15 13:30:56 +01:00
Hasnain Virk 1a074acbb5 Style changes only
Travis astyle check pointed out some of the style mismatches in the code.
Not all of them are worth changing as they make the code unreadable and
some of them are semantically wrong.

So in this commit, we have attempted to pick the most important style
mismatches and rectify.
2018-06-15 13:30:56 +01:00
Hasnain Virk c705f94e49 Moving missing public data structures
A few of the structures were missing from the storage space which is
visible topublic APIs. Suc structures are now being added.
2018-06-15 13:30:56 +01:00
Kimmo Vaisanen 05ee60f8cb Lora: All API methods should check if stack has been initialized 2018-06-15 13:30:56 +01:00
cyliangtw 790d24740a Support default tz_module for event loop & lwip 2018-06-15 13:30:56 +01:00
Kevin Bracey cfed8228eb Nanostack EMAC - avoid initialisation race
Hard fault was possible if packet reception occurred during
initialisation. Adjust start-up ordering and add NULL check to
avoid.
2018-06-15 13:30:56 +01:00
Kevin Bracey b2a6e94cd8 Kinetis EMAC: Correct TX ring pointer array size
TX pointer array was using RX ring length in its declaration.
Wasted memory if RX ring > TX ring, as is the default, but would
be broken if RX ring < TX ring.
2018-06-15 13:30:56 +01:00
Kevin Bracey cedccc7daf Kinetis EMAC: Make number of buffers configurable
16 RX buffers and 8 TX buffers is probably excessive. Nanostack
version of driver successfully used 4+4, and data pump should be
broadly equivalent.

This means that switching K64F devices from Nanostack to EMAC increases
base heap usage by 18K - observed in Nanostack border router builds.

Add a config option to make it possible to lower the number of buffers.
Defer consideration of lowering the default to later.
2018-06-15 13:30:56 +01:00
Michael Schwarcz 4a4c9069f7 Upgrade uvisor to v0.31.1 2018-06-15 13:30:56 +01:00
Jimmy Brisson 6259e81451 Add show full path option to armc6 linker
### Description
Full paths in the map file are required to have correct memap parsing.
This PR adds the option `--show_full_path` to ARMC6 in every profile.
This option only affects the map file output, so it's safe to add.
2018-06-15 13:30:56 +01:00
Kevin Bracey 7c3c8c9d01 Make Nanostack C++ constructor initialise Nanostack
Nanostack object constructor didn't actually initialise Nanostack.
Nanostack initialisation was deferred until an interface was actually
attached to the stack, which generally happened at first interface
connect.

Not normally a problem, unless you're trying to make direct Nanostack
setup calls prior to connect - some applications do this, and were
relying on ThreadInterface::initialise to do Nanostack
initialisation.

Unfortunately in 5.9 ThreadInterface::initialise no longer does
initialise Nanostack immediately, because the mesh interfaces were
aligned and integrated with the Ethernet interfaces, which did
initialisation on connect().

Make the Nanostack object constructor initialise Nanostack (as the LWIP
constructor does for lwIP), so calling Nanostack::get_instance() is the
5.9 API for Nanostack initialisation.

For future work, APIs like ns_file_system_set_root_path should be
exposed as methods of Nanostack, so everything happens with a single
Nanostack::get_instance().file_system_set_root_path().
2018-06-15 13:30:56 +01:00
jeromecoutant aba7367d8b ISM pin configuration is now in ISM driver json file 2018-06-15 13:30:56 +01:00
jeromecoutant 34bfb084c4 Add ISM43362 driver support for STM32 wifi DISCO boards
2 DISCO boards:
- DISCO_F413ZH
- DISCO_L475VG_IOT01A

3 tests supported:
- tests-netsocket-tcp
- tests-netsocket-udp
- tests-network-wifi
2018-06-15 13:30:56 +01:00
Mika Leppänen f0bea4b0a9 Fixed DNS resolution in case all sendto operations fail
DNS resolver now counts how many sendto operations are successful
during one DNS server attempt cycle (attempting to contact DNS
servers from 0 to last index, including stack specific ones). If all
socket sendto operations fail, DNS resolution is aborted.

If one or more are successful, DNS resolution is continued until
total network attempts count is reached or all sendto operations
fails during a cycle.
2018-06-15 13:30:56 +01:00
ccli8 156e8a012a Remove superfluous MOVT in mbed_start_application/start_new_application 2018-06-15 13:30:56 +01:00
ccli8 a77e4072b2 Fix mbed_start_application on Cortex-M23
1. M23 doesn't support ICTR and supports up to 240 external interrupts.
2. Fix reset of SHPR
3. Fix inline assembly compile error with ARMC6
2018-06-15 13:30:56 +01:00
ccli8 4f9de80311 Fix start_new_application compile error on Cortex-M23
With "mov r2, #0", compile OK with GCC_ARM, but failed with ARMC6.
With "ldr r2, =0", compile OK with ARMC6, but failed with GCC_ARM.
Finally, with "movw r2, #0"/"movt r2, #0", compile OK with both ARMC6 and GCC_ARM.
2018-06-15 13:30:56 +01:00
ccli8 88259ac42f Support mbed_start_application for Cortex-M23 2018-06-15 13:30:56 +01:00
Andrew Leech 5d751dfb8f Move mbed_lib.json from targets folder to feature_ble folder The functionality added all affects BLE features in use so this location is a better fit. 2018-06-15 13:30:56 +01:00
Andrew Leech 4dc172b875 Expose softdevice configurations via new nordic-ble library definition file 2018-06-15 13:30:56 +01:00
Andrew Leech c0341fa363 Allow configuration (via defines) of some of the key settings for the NRF51 softdevice. * CENTRAL_LINK_COUNT * PERIPHERAL_LINK_COUNT * gatts_enable_params.attr_tab_size * gatts_enable_params.service_changed * common_enable_params.vs_uuid_count
These settings control the range of functionality enabled in the softdevice as well as ram consumption.
In particular reducing these values is critical to enable usage of 16K nrf51 devices.
2018-06-15 13:30:56 +01:00
Jimmy Brisson 752b6c2efe Use TerminalNotifier in singletest 2018-06-15 13:30:56 +01:00
Cruz Monrreal II 40cc4e3e64 Updated makefile exporter to not rely on enumerating over map. No longer supported in Py3. 2018-06-15 13:30:56 +01:00
Martin Kojtal 9ed564ef07 error: fix undeclared memcpy
Some targets do not get string header file in, results in the warning:
implicit declaration of function 'memcpy'
2018-06-15 13:30:56 +01:00
jeromecoutant 00e3e4165f STM32 : few targets does not support LPTICKER 2018-06-15 13:30:56 +01:00
ccli8 0b1faf1db2 Fix mbed_crc_ctor is missing in some MbedCRC constructor
This error leaves MbedCRC/_mode uninitialized and may cause mbed-os-tests-mbed_drivers-crc/
Test SD CRC polynomials failed.
2018-06-15 13:30:56 +01:00
Yossi Levy 57ea7e188f Fixing some coverity issues. 2018-06-15 13:30:56 +01:00
Marc Emmers 32ecbb71b5 Ticker test: Add ticker_irq_handler call because the time reaching the previous interrupt_timestamp would have triggered one anyway 2018-06-15 13:30:56 +01:00