Galanakis, Minos
ffc7b91128
CM3DS: update tickers implementation
...
The HAL implementation (us_ticker.c and lp_ticker.c) now calls function
in cmsdk_ticker.c file. This file contains the necessary logic to be
able to only use one hardware timer (CMSDK timer) per mbed ticker.
This commit also updates the timer driver and removes legacy definition.
Change-Id: If40413822832117f9b78f38d2cdda7847284b035
Signed-off-by: Galanakis, Minos <minos.galanakis@arm.com>
Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
2018-02-21 18:12:55 +00:00
Hugues de Valon
ef7b16d9c5
CM3DS: fix non aligned access in Ethernet driver
...
This patch changes the way data is put in the TX_DATA_PORT register when
sending packet over Ethernet.
When this driver is compiled with release compilation profile
(space optimization compiler options) with Arm compiler version 5,
the line:
SMSC9220->TX_DATA_PORT = *pktptr;
generates the assembly instruction to get the pktptr pointed value:
LDM r2!, {r3}
with pktptr = r2
However, the code does not prevent the pktptr value from being unaligned
(to a 32 bits boundary) in that zone and the LDM instruction causes a
HardFault if this is the case. When the compiler option is not activated
(debug and develop compilation profiles), the compiler generates LDR
instruction instead which does not cause a HardFault.
The ARM v7-M states page B3-601: "Unaligned load-store multiples and
word or halfword exclusive accesses always fault."
To face that problem, we check if the data pointer is aligned or not. If
it is, we apply the same algorithm than before. If not, a local variable
is created and we copy in it, byte per byte, the contents at the
unaligned pointer. However, it will impact performances adding 8
instructions (one LD and one ST for each copied byte).
Change-Id: I11f6e82ce5521960d2ecf499f718f76fec29c0b0
Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
2018-02-21 17:54:12 +00:00
Galanakis, Minos
5b8ff81e02
CM3DS: fix a minor bug in the ethernet LWIP driver
...
This patch fixes a memory bug. `eth_arch_enetif_init` method call
would attempt to write to un-initialized area of memory.
Change-Id: I9881de71d58fa14db609fe3e24617a210b896471
Signed-off-by: Galanakis, Minos <minos.galanakis@arm.com>
2018-02-21 17:51:09 +00:00
Vincent Coubard
9e98a72198
BLE: Move cordio default scan and connection params in global memory.
2018-02-21 17:43:39 +00:00
Vincent Coubard
ad78b3e023
BLE: Handle NULL parameters in Gap::connect.
2018-02-21 17:43:38 +00:00
Vincent Coubard
9c6f44de91
BLE: Force stop scan before connection initiation.
2018-02-21 17:43:38 +00:00
Vincent Coubard
c5be493bb7
BLE: Add address type in AdvertisementCallbackParams_t.
2018-02-21 17:41:14 +00:00
Jimmy Brisson
bd5b34f59c
Correct exporter clean behavior
2018-02-21 09:28:24 -06:00
Jimmy Brisson
6693b08cfc
Use print function in project.py
2018-02-21 09:25:59 -06:00
Vincent Coubard
0158971387
BLE: Move cordio default scan and connection params in global memory.
2018-02-21 15:00:17 +00:00
Martin Kojtal
5c7cd1f689
Merge pull request #6139 from VeijoPesonen/eth_n_wifi-drv_n_tc_fixes
...
LWIP PBUF_POOL_BUFSIZE increased to fit also IPv6 header
2018-02-21 15:19:55 +01:00
Martin Kojtal
4cf53fe1c1
Merge pull request #6125 from cmonr/travis-param-lacks-quotes
...
Add quotes around MBED_BOT parameter
2018-02-21 15:18:27 +01:00
Vincent Coubard
e3d7f2bb05
BLE: Add address type in AdvertisementCallbackParams_t.
2018-02-21 14:14:31 +00:00
Vincent Coubard
f3c453b077
BLE: Handle NULL parameters in Gap::connect.
2018-02-21 12:42:54 +00:00
Vincent Coubard
7941a6fcc7
BLE: Force stop scan before connection initiation.
2018-02-21 12:13:24 +00:00
Veijo Pesonen
a7ef67a92a
fixup! LWIP PBUF_POOL_BUFSIZE increased to fit also IPv6 header
2018-02-21 08:25:46 +02:00
Cruz Monrreal
24a3acd647
Merge pull request #6141 from hasnainvirk/dr_bug_fix
...
Verifying datarate bug fix
2018-02-20 13:44:51 -06:00
Cruz Monrreal
80082278b8
Merge pull request #6124 from marcuschangarm/nrf52_flash_fix
...
Make NRF52 flash work with SoftDevice
2018-02-20 13:31:45 -06:00
Cruz Monrreal
45b4062f8b
Merge pull request #6093 from jeromecoutant/PR_IP_PRESSURE
...
NETSOCKET MBED_EXTENDED_TESTS json configuration
2018-02-20 13:27:31 -06:00
Cruz Monrreal
cd7595e5a7
Merge pull request #6076 from mprse/remove_ticker_interface_init_while_Ticker_creation
...
Remove ticker interface initialization while Ticker creation.
2018-02-20 13:21:20 -06:00
Cruz Monrreal
e66cc74b8f
Merge pull request #6046 from geky/fix-lookahead-noack-pop
...
littlefs: Fix incorrect lookahead population before ack
2018-02-20 13:19:13 -06:00
Cruz Monrreal
f2ff36b1e3
Merge pull request #6055 from mprse/ticker_k64f_set_interrupt_delta_fix
...
K64F lp ticker driver - calculation bug fix.
2018-02-20 13:18:58 -06:00
Cruz Monrreal
0368a8463f
Merge pull request #6041 from jeromecoutant/PR_STDIO_bug
...
STM32 STDIO pin redefinition
2018-02-20 13:13:44 -06:00
Jimmy Brisson
166a463639
Correct single file excludes for some exporters
2018-02-20 12:09:11 -06:00
paul-szczepanek-arm
c65419239f
fixed compiler errors for pal after its update
2018-02-20 18:01:21 +00:00
Cruz Monrreal
817f9a569c
Merge pull request #5812 from OpenNuvoton/nuvoton_crypto
...
M487: Support ECP H/W accelerator
2018-02-20 11:53:23 -06:00
Jimmy Brisson
9f99330be6
Allow overriding offsets with "app_offset" and "header_offset"
2018-02-20 11:45:32 -06:00
Jimmy Brisson
deca33ff81
Calculate digests with header up to their start address
2018-02-20 11:45:32 -06:00
Jimmy Brisson
5b2d7a27d2
Require endianness specification for ints > 8 bits
2018-02-20 11:45:32 -06:00
Jimmy Brisson
4c47f21cac
Fill header in application
2018-02-20 11:45:32 -06:00
Jimmy Brisson
b2c71c0fce
Accept header configuration and reserve space
2018-02-20 11:45:32 -06:00
Cruz Monrreal
6d374c61ac
Merge pull request #6126 from cmonr/travis-timeout-fix
...
Modified 'apt-get update' to loop until successful
2018-02-20 11:34:49 -06:00
Cruz Monrreal
45d04bcd51
Merge pull request #6123 from theotherjimmy/correct-sector-info
...
Correct sector scraping in arm-pack-manager
2018-02-20 11:33:27 -06:00
Cruz Monrreal
863b40d19c
Merge pull request #6121 from theotherjimmy/mbedignore-append
...
Avoid blowing away .mbedignore files in exporters
2018-02-20 10:48:21 -06:00
Martin Kojtal
775a1fb4b0
Pull request template update
...
New version of the PR template.
Ideal PR should contain:
- detailed description of changes
- how it was tested
- dependencies
- PR type (one of)
2018-02-20 16:02:36 +00:00
deepikabhavnani
af0982295f
Moved specialized functions to CPP file
...
Template specialized functions are moved to cpp file, to add MbedCRC.h
in mbed.h. Else linker shall multiple definition error.
2018-02-20 08:12:44 -06:00
Veijo Pesonen
8e12db1a2b
Fix WIFI-CONNECT-PARAMS-CHANNEL-FAIL Greentea test case
...
The test case is executed succesfully when usage of wrong channel is detected
2018-02-20 16:09:46 +02:00
Veijo Pesonen
e1d9d8783d
LWIP PBUF_POOL_BUFSIZE increased to fit also IPv6 header
...
IPv6 header requires 20 more bytes compared to IPv4 header.
2018-02-20 15:45:44 +02:00
Hasnain Virk
b163057da7
Verifying datarate bug fix
...
A patch was missed from the feature PR.
verify_channel_DR() in LoRaPHY class had a loop with uninitialized
loop counter.
2018-02-20 15:08:04 +02:00
Fahim Alavi
192250af87
Support added for R410M Changes
...
target added r410m
Spaces removed
Trace updated
2018-02-20 10:32:14 +05:00
Paul Szczepanek
c1d15b5731
Merge pull request #16 from pan-/palsm-test
...
Security DB mock
2018-02-19 17:56:47 +00:00
Vincent Coubard
4ce0ed9c0c
BLE: Remove dependency of GenericSecurityManager towards gap.
2018-02-19 17:46:41 +00:00
Vincent Coubard
28f2f46974
BLE: Hide event monitor inside pal.
2018-02-19 17:41:18 +00:00
Vincent Coubard
8b9e08e128
BLE tests: Add stub for device.h .
2018-02-19 17:32:10 +00:00
Vincent Coubard
bcea06fb32
BLE: Fix inclusion of mbed_error.h
2018-02-19 17:32:10 +00:00
Vincent Coubard
8b957f5018
plaform/sleep: Fix inclusion and inline declaration.
2018-02-19 17:32:10 +00:00
Vincent Coubard
cc896f1b52
BLE: Add mock for the security db.
2018-02-19 17:32:10 +00:00
paul-szczepanek-arm
396ca2ca20
removed redundant cast
2018-02-19 17:29:45 +00:00
paul-szczepanek-arm
990e21247c
pull in cordio security manager into BLE
2018-02-19 17:26:24 +00:00
paul-szczepanek-arm
dd7bc50e4b
Merge branch 'master' into palsm
2018-02-19 16:39:10 +00:00