Commit Graph

16738 Commits (eee607b51a871cd5e0e8ce80e3514a012817f57b)

Author SHA1 Message Date
Mika Leppänen eee607b51a Corrected TX buffer reclaim error
When all TX descriptors were reserved in a row so that TX buffer
reclaim interrupt did not happen during reservation sequence, after
the interrupt occurred, TX buffer reclaim did no longer free buffers.

This happened because when all descriptors were in use, last free
index pointed to consumed index.
2018-06-15 13:34:21 +01:00
Mika Leppänen b744b50dca Ported NXP LPCxx ethernet driver to unified EMAC 2018-06-15 13:34:21 +01:00
adbridge b7d354cbe6 Update Mbed version block for patch release 2018-06-15 13:31:04 +01:00
Maciej Bocianski 14c75c584f fix and enable sleep_usticker_test
Increases tolerance value for sleep_usticker_test to cover extra time needed
for cpu stats computation (for more details see MBED_CPU_STATS_ENABLED).
Prevent scheduling interrupt during ticker initialization (in lp_ticker_init)
while test execution.
2018-06-15 13:30:56 +01:00
Maciej Bocianski 393424262f enable HAL sleep test 2018-06-15 13:30:56 +01:00
Maciej Bocianski 8b3ae8dea4 HAL sleep test fix
Prevents ticker upper layer initialization during test execution
2018-06-15 13:30:56 +01:00
David Saada 688268328d Fix flash_program_page API in LPC boards.
This API allocates a program buffer of 256 on the stack to ensure alignment.
However, FlashIAP driver already ensures this alignment of the user data.
2018-06-15 13:30:56 +01:00
Teppo Järvelin 77b0fc371b Cellular: Semaphore wasn't released in easycellular release build. 2018-06-15 13:30:56 +01:00
Jimmy Brisson a72365c9fa Skip second header when every bl config paramater used 2018-06-15 13:30:56 +01:00
Cruz Monrreal 754e18f335 Only exclude RTOS-specifc tests in error_handling
Allows for other tests to run if no RTOS is present.
2018-06-15 13:30:56 +01:00
Cruz Monrreal 4c3012ccd6 Wrapped test around MBED_CONF_RTOS_PRESENT
Wrapping a #define to prevent test from being run when no RTOS is present.
2018-06-15 13:30:56 +01:00
Cruz Monrreal bed820734c Corrected casting issue with an assert within the error_handling test
Discovered via https://github.com/ARMmbed/mbed-os/pull/7105.
If both values are negative values, they are casted in such a way that -1 != -1. This small commit fixes that.
2018-06-15 13:30:56 +01:00
Mika Leppänen f94b2ea263 Increased LWIP main worker thread stack size for debug builds
LWIP stack is configured to be 1200 as default. Without debug enabled,
maximum stack size used for asynchronous DNS operations is 880 bytes. With
debug enabled maximum used stack size is 1248. Added configuration
to LWIP to increase stack size by 25 percent when debug is enabled on build.
2018-06-15 13:30:56 +01:00
Teppo Järvelin 97cdbf769d Cellular: release resources in state machine. Made sure that athandler does not try process urc's after switch to data mode. 2018-06-15 13:30:56 +01:00
Yoshihiro TSUBOI 7bc411eedb Changed suggested things
Removed context check from do_user_authentication.
2018-06-15 13:30:56 +01:00
Yoshihiro TSUBOI b3ebb5229a Changed suggested points
Changed accessibility cellular features member functions, fixed minor target issues
2018-06-15 13:30:56 +01:00
ytsuboi 4b1d0875b7 Adding platform 2018-06-15 13:30:56 +01:00
Teppo Järvelin a771f0458a Cellular: fixed unit tests to compile after rebasing to latest. 2018-06-15 13:30:56 +01:00
Teppo Järvelin 64e8363d69 Cellular: added more unit tests for CellularDevice. 2018-06-15 13:30:56 +01:00
Teppo Järvelin d5a6baf5cd Cellular: added greentea test for cellular device. 2018-06-15 13:30:56 +01:00
paul-szczepanek-arm bf6407e3b7 check that flags have the IRK stored before retrieving it 2018-06-15 13:30:56 +01:00
ccli8 62604bb35c Fix compile error with MBED_MEM_TRACING_ENABLED and ARMC6 2018-06-15 13:30:56 +01:00
Toyomasa Watarai ea81d4bcd8 Add volatile modifier for CP15 accessors
Add volatile modifier to prevent ARM compiler to remove inline function calls for __set_CP and __get_CP.
2018-06-15 13:30:56 +01:00
klaas019 f56dc0ac19 Add files via upload 2018-06-15 13:30:56 +01:00
klaas019 4020708351 Delete bootloader.bin 2018-06-15 13:30:56 +01:00
Przemyslaw Stekiel b49aa213d2 K64F CRC driver: Fix coding style 2018-06-15 13:30:56 +01:00
Przemyslaw Stekiel 904e3f05a7 K64F CRC driver: Fix handling of CRC final XOR value
According to the test results final XOR was incorrectly handled by the CRC driver.
This patch fixes this issue.
2018-06-15 13:30:56 +01:00
Przemyslaw Stekiel fcaf166bf4 K64F CRC driver: hal_crc_is_supported() - fix condition which validates CRC width
It looks like the intention was to return false when CRC width is different than: {16, 32} bits.
2018-06-15 13:30:56 +01:00
Przemyslaw Stekiel 07773fe312 STM CRC driver: hal_crc_compute_partial() - validate input paramaters. 2018-06-15 13:30:56 +01:00
Przemyslaw Stekiel 592ec6fdd0 HAL CRC test: Fix out of memory issue on NULCLEO_F070RB, NULCLEO_F072RB/IAR
Allocate test case array on stack since memory limits on some boards.
2018-06-15 13:30:56 +01:00
Przemyslaw Stekiel 648710ba5a Add HAL CRC test and test header file. 2018-06-15 13:30:56 +01:00
Przemyslaw Stekiel 975644740e Add testing requirements to HAL CRC header file. 2018-06-15 13:30:56 +01:00
Maciej Bocianski 8990f23e43 ticker test improvement
Make multiticker test more reliable when scheduling very early interrupts.
When very early interrupt is scheduled (e.g now + 2[ticks]) then it's likely
that it won't be fired in some circumstances and as a result there is overdue
event in queue. That overdue event can be mistakenly scheduled again by
`Ticker::detach` (detach calls schedule if head was removed). That's why we
should check interrupts counter immediately after wait period and before detach loop
2018-06-15 13:30:56 +01:00
paul-szczepanek-arm d07d966d0f missing return
function would potentially send a reject and accept at the same time
2018-06-15 13:30:56 +01:00
Michael Coulter 8fbdaa9bd2 Fixes for RZ_A1H issue 6543 Removed debugging code, fixed errors indicated in the comments. 2018-06-15 13:30:56 +01:00
Kevin Bracey 172c69ec0d Correct PPPCellularInterface::get_gateway()
Two cascading copy-paste errors stopped this working:

  * PPPCellularInterface::get_gateway() called
    nsapi_ppp_get_ip_address();
  * nsapi_ppp_get_gateway() called the interface's get_netmask().

First bug has always been there - second one was introduced in 5.9.

AT_CellularNetwork currently lacks calls to get both netmask and gateway
- this patch would be needed for that when added.
2018-06-15 13:30:56 +01:00
Ari Parkkila 09e14567fe Cellular: Disable Greentea tracing to consume less memory 2018-06-15 13:30:56 +01:00
Kari Haapalehto 9f8321fb16 Fix data aligment problem at STM32F4 hash write 2018-06-15 13:30:56 +01:00
Kevin Bracey 0e676883c8 NSAPI: Use IPv6 conversion routines from frameworks
Share IPv6 conversion code with mbed_trace, Nanostack and
mbed client.

Output formatting is better, being conformant to RFC 5952.
2018-06-15 13:30:56 +01:00
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