Commit Graph

28156 Commits (beebd93a8ac71253f0f6c7fef3d0ecf70fdf74ee)

Author SHA1 Message Date
Arto Kinnunen 9d23b7c55b
Merge pull request #13909 from mikaleppanen/feature-wisun-dyn-mem-track
[feature-wisun] Add nanostack dynamic memory tracker and hooks to dynmem library
2020-11-24 16:43:52 +02:00
Arto Kinnunen cfc11827d5 Fix unittests
Use path in "mbed-trace/mbed_trace.h" to keep unittest happy.
2020-11-24 15:27:07 +02:00
Arto Kinnunen 71d5482941 Fix method description 2020-11-24 12:04:41 +02:00
Arto Kinnunen 7a801e92ac Follow Mbed OS coding style 2020-11-24 11:51:04 +02:00
Arto Kinnunen 8f88cba705 Update EMAC connect logic with MAC address change
Do not fail EMAC interface during connect if MAC address change is
not supported in the selected interface.
2020-11-24 11:10:24 +02:00
Arto Kinnunen b1f65d2e68 Review corrections
-Update method set_mac_address description
-Update EMAC test method return value
2020-11-23 10:49:12 +02:00
Mika Leppänen 7303d446ad Replaced new calls with nothrow version of the call on mesh api
Replaced new calls with nothrow version of the call.
2020-11-20 14:08:32 +02:00
Arto Kinnunen de2063928a Update unittests 2020-11-20 12:36:06 +02:00
Arto Kinnunen cb1419d2e7 Update set_mac_address signature
Use nsapi_size_t instead of size_t.
Update missing method description.
2020-11-20 12:35:57 +02:00
Gavin Liu e600c577ee targets:evkbimxrt1050: Adjust the SEMC re-order rules
Update the BMCR0, BMCR1 registers to adjust the SEMC
re-order rules. This can improve the SDRAM stability
under multiple AXI masters system.

Signed-off-by: Gavin Liu <gang.liu@nxp.com>
2020-11-19 19:14:53 +08:00
Mika Leppänen a9746a563a Added extended block list to dynamic memory tracker
If same allocator (alloc call) allocates multiple dynamic memory blocks,
the additional blocks are added to extended memory block list, and
the allocator list reference count and total sizes are increased.
When statistics are calculated, it is only needed to process the
allocator list, not the whole memory block list.

Added also optional hash function to calculate the (start) index where
memory block information is stored on extended memory block list. Hash
is calculated from memory block address.

It is expected that hash distributes the free index searches evenly
to whole memory area allocated for extended memory block list. So if
area is large enough, in most cases the index pointed by the hash, or
the index few indexes from that, should be empty and available for use.
Similarly, when memory block is freed, the search for the block on
the extended memory block list, starts from the index pointed by the
hash.

If hash is not used, extended memory block list searches start always
from index 0.
2020-11-18 17:31:41 +02:00
Arto Kinnunen c81aca4d03 Review correction: Remove unnecessary method
Remove unnecessary method: add_ethernet_interface_ns
2020-11-16 16:37:46 +02:00
Arto Kinnunen 7155c9aa9d MAC address set/get support for EMAC interface
Add support to set and get MAC address from EMAC interface.
2020-11-16 16:09:09 +02:00
Mika Leppänen 5c24b26940 Added nanostack dynamic memory tracker and hooks to dynmem library
Nanostack dynamic memory tracker tracks memory allocations. It has following
interface:

ns_dyn_mem_tracker_lib_alloc: is called on alloc

ns_dyn_mem_tracker_lib_free: is called on free

ns_dyn_mem_tracker_lib_step: updates the lifetime of individual memory
blocks (is used to detected which blocks are permanent and which
have been allocated lately)

ns_dyn_mem_tracker_lib_allocator_lists_update: updates allocator lists,
there are lists for top allocators, permanent allocators and allocators
going to permanent allocators list

ns_dyn_mem_tracker_lib_max_snap_shot_update: can be used to update memory
maximum usage snap shot, this can be called on alloc if snap shot is
needed
2020-11-16 10:20:36 +02:00
Martin Kojtal 649ee6c1f5
Merge pull request #13901 from mikaleppanen/feature_wisun_systick_overflow
[feature-wisun] Make _unacknowledged_ticks uint32_t to prevent overflow
2020-11-11 14:50:29 +00:00
Arto Kinnunen 26b322e3de Method for adding network interface MAC address
Add method set_mac_address to set network interface MAC address.
2020-11-11 14:54:51 +02:00
Mika Leppänen 5440137b58 [feature-wisun] Make _unacknowledged_ticks uint32_t to prevent overflow 2020-11-11 11:39:53 +02:00
Arto Kinnunen a0a4707151
Merge pull request #13883 from artokin/nanostack_release_v12_6_2
feature-wisun: Nanostack release v12.6.2
2020-11-10 09:07:24 +02:00
Arto Kinnunen 04c21e779b Squashed 'features/nanostack/sal-stack-nanostack/' changes from d207f4d9f9..715ae9a693
715ae9a693 Merge remote-tracking branch 'origin/release_internal' into release_external
42c9807207 Nanostak trace level configuration (#2489)
6f5217119a Bug fix: socket reference count made 16-bit (#2490)
f51669adc7 Bug fix: Do not print UFSI drift when fixed channel is used (#2488)
18fa0486e3 RPL DAO timeout update:
660e178506 Clear debug traces.
cbac0bbca4 DIO init send block for node
fed5d1c819 Created different MPL configuration based on network size
7ad7e81209 Wi-SUN recovery and BR BSI update:

git-subtree-dir: features/nanostack/sal-stack-nanostack
git-subtree-split: 715ae9a69376af5c96d53e5445b0d280ee1edf28
2020-11-09 16:06:48 +02:00
Arto Kinnunen 554cfaf1a4 Merge commit '04c21e779bce62f4caa4f913e6c2a847f50d949e' into feature-wisun
* commit '04c21e779bce62f4caa4f913e6c2a847f50d949e':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from d207f4d9f9..715ae9a693
2020-11-09 16:06:48 +02:00
Arto Kinnunen 0f4dbfda56
Merge pull request #13825 from artokin/nanostack_release_v12_6_1_feature-wisun
[feature-wisun] Nanostack release v12.6.1
2020-10-29 12:00:26 +02:00
Arto Kinnunen 283197975c Merge commit '02935482aeb5abe15817c48ad6ca078e79c00478' into feature-wisun
* commit '02935482aeb5abe15817c48ad6ca078e79c00478':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from 09d9e24f2d..d207f4d9f9
2020-10-28 15:35:54 +02:00
Arto Kinnunen 02935482ae Squashed 'features/nanostack/sal-stack-nanostack/' changes from 09d9e24f2d..d207f4d9f9
d207f4d9f9 Merge branch 'release_internal' into release_external
d166c89427 MPL: buffered max limit increased to 8k (#2482)
0f6666a97e Fixed Unit test's
1ff9b1d6c6 LLC drop a packet if FHSS shedule is not configured.
7cecc28c98 Fixed missing asynch trigle setup stop at if down process
7a8b2bfd98 Wi-SUN fhss API default value setting fixes
164a3706c6 Fixed coverity issues from management API
8b5b433284 Corrected out of bounds access coverity warning (#2475)
4ffe6a12cc Multicast forwarding is separated from the routing flag
30f431581d Wi-SUN discovery staten enter upxdate
083b84e9c5 Iotthd 4308 (#2473)
fcc33d559c Removed time increment from NVM time read function on interface up
9c8e3afc9f fhss_tx_handle update
5491a6b052 Fixed UFSI update print function (#2470)
86f64c58b6 FHSS WS: Check if BC schedule is stopped before computing timeout delay (#2469)
a0b112a97b Corrected defects and coding style
2f4678a2f2 Corrected trace macro
5e967515ee Distributed key storage NVM writes to longer time period
9b3891fffb FHSS WS: handle blocked interrupts (#2466)
a792e832de Added validation at MAC ack buffer handler
2a465b2e49 DNS configuration lifetime validation

git-subtree-dir: features/nanostack/sal-stack-nanostack
git-subtree-split: d207f4d9f9b703f2cafe966902adfe93b8cfb5f7
2020-10-28 15:35:53 +02:00
Martin Kojtal e054e8baca
Merge pull request #13740 from mikaleppanen/radius_init_fea_wisun
feature-wisun: Add initialization to radius retry values
2020-10-26 12:48:23 +00:00
Mika Leppänen e41a6988d1 [feature-wisun] Added initialization to radius retry values
This corrects uninitialized scalar field coverity warning.
2020-10-08 12:51:51 +03:00
Arto Kinnunen c6d65fe508
Merge pull request #13716 from artokin/nanostack_release_v12_6_0_for_feature_wisun
[feature-wisun] Nanostack release v12.6.0
2020-10-07 09:08:49 +03:00
Anna Bridge eff0cf4a57
Merge pull request #13721 from jamesbeyond/wisun-patch
TEST: Extend the kvstore test time out to 120s
2020-10-06 15:01:42 +01:00
Qinghao Shi fb2a35f0e9 TEST: Extend the kvstore test time out to 120s 2020-10-06 12:26:26 +01:00
Arto Kinnunen c1c9ba5c6a Merge commit '4098b26c4477b6ed8929e71c571b8fb13195582a' into feature-wisun
* commit '4098b26c4477b6ed8929e71c571b8fb13195582a':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from 7e3b99c375..09d9e24f2d
2020-10-05 13:59:55 +03:00
Arto Kinnunen 4098b26c44 Squashed 'features/nanostack/sal-stack-nanostack/' changes from 7e3b99c375..09d9e24f2d
09d9e24f2d Merge branch 'release_internal' into release_external
9a3278a1e3 Removed Black list reject from wi-sun neighbour request function
76fc9d77a1 Support SLAAC addressing method for Wi-SUN Border router
71c8bde863 Modified Wi-SUN etx to wait for Probes
b720fbdfe0 Wi-SUN discovery and address registration update
e73c8082ed Merge pull request #2460 from ARMmbed/sync_with_mbed_os
7994d9537b If PMK and PTK are not set do not store keys to NVM
f8813e2d27 Follow Mbed OS coding style
f6ed87754c (via mbedos) Possible invalid memory access on memcpy
40dc215294 Set frame counter increment to 1000000
a57acc84a8 ETX update
5373de2ff4 EAPOL parent TX feilure is reorder candidate list.
6b0e264869 Allowed separate default settings in WS API
850252b9f9 Fixed EAPOL brodcast synch at border router device.
2c1c07779a Corrected unit test
16e38ce688 Changed EAPOL negotiation limit on small nw to 20
21af9233ec Wi-sun ETX update
80e13f4435 Changed EAP-TLS retry trace to info trace level
52a5018fd1 WS: Use special retry configuration when discovery is started (#2450)

git-subtree-dir: features/nanostack/sal-stack-nanostack
git-subtree-split: 09d9e24f2d3e97cd38139e5df3d9e79d2ee65f4e
2020-10-05 13:59:09 +03:00
Martin Kojtal 6b23d6192c
Merge pull request #13686 from JarkkoPaso/feature-wisun
Copied TDBStore RAM init fix from mbed OS master
2020-09-30 11:46:03 +01:00
Martin Kojtal c1ed1987b3
Merge pull request #13666 from mikaleppanen/mesh_global_up
[feature-wisun] Mesh interface global up is indicated always on bootstrap ready
2020-09-30 11:31:35 +01:00
Jarkko Paso ee3bda0ceb Copied TDBStore RAM init fix from mbed OS master 2020-09-30 11:35:07 +03:00
Mika Leppänen ff9a560737 Mesh interface global up is indicated always on bootstrap ready
This indicates e.g. to client that IP address has changed or connection
to network has been established.
2020-09-25 15:19:14 +03:00
Martin Kojtal a7978d41c2
Merge pull request #13618 from felipeLeast/invalid_memory
nanostack: fix invalid memory access on memcpy
2020-09-21 11:33:17 +01:00
Felipe f2ac70318a Possible invalid memory access on memcpy 2020-09-15 14:12:50 -03:00
Arto Kinnunen 75f1381a86
Merge pull request #13612 from artokin/nanostack_release_v12_5_3_feature_wisun
[feature-wisun] Nanostack release v12.5.3
2020-09-15 17:14:56 +03:00
Arto Kinnunen 29fc103fdb Merge commit '53e16d679d1e78746dfa09b8ed5e36e280702ec9' into feature-wisun
* commit '53e16d679d1e78746dfa09b8ed5e36e280702ec9':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from 9a1b35398c..7e3b99c375
2020-09-15 13:19:10 +03:00
Arto Kinnunen 53e16d679d Squashed 'features/nanostack/sal-stack-nanostack/' changes from 9a1b35398c..7e3b99c375
7e3b99c375 Merge branch 'release_internal' into release_external
50b7a641b4 Key update to MAC is forced when nw name changes
f1f46f3873 Corrected identifier range alloc and added define for timeout
f836d1d818 FHSS WS: spread broadcast messages better on BC channel (#2449)

git-subtree-dir: features/nanostack/sal-stack-nanostack
git-subtree-split: 7e3b99c375cf4299504c954dc26f2d22eea26135
2020-09-15 13:19:09 +03:00
Martin Kojtal 57d32285c6
Merge pull request #13605 from teetak01/coap-5.1.7-for-wisun
Update Mbed CoAP to v5.1.7
2020-09-14 12:23:00 +01:00
Martin Kojtal 12a64906b6
Merge pull request #13608 from mikaleppanen/cert_remove
Add certificate remove before add to Wisun tasklet
2020-09-14 12:22:38 +01:00
Mika Leppänen e9a4c729fa Added certificate remove before add to wisun tasklet
This prevents tasklet from adding own certificates multiple times
to Nanostack in case bootstrap is made again.
2020-09-14 12:37:08 +03:00
Teemu Takaluoma 3c6b5c3e37 Update Mbed CoAP to v5.1.7 2020-09-14 12:23:38 +03:00
Anna Bridge 9be499690b
Merge pull request #13569 from Tim-Wang38/feature-wisun
targets:RT1050: Fix the flash erase and program issue for qspi nor fl…
2020-09-11 15:37:45 +01:00
Arto Kinnunen b204ba592a
Merge pull request #13588 from mikaleppanen/radius_trace_corr
[feature-wisun] Added initialization check to RADIUS ipv6 address
2020-09-10 19:40:45 +03:00
Martin Kojtal 42047d31b0
Merge pull request #13585 from artokin/nanostack_release_v12_5_2_feature_wisun
[feature-wisun] Nanostack release v12.5.2
2020-09-10 16:11:32 +01:00
Arto Kinnunen 99bd22cfaf Merge commit '769796ee45960a01489665d1af0325e6680b2211' into feature-wisun
* commit '769796ee45960a01489665d1af0325e6680b2211':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from b969fa3779..9a1b35398c
2020-09-10 13:26:48 +03:00
Arto Kinnunen 769796ee45 Squashed 'features/nanostack/sal-stack-nanostack/' changes from b969fa3779..9a1b35398c
9a1b35398c Merge branch 'release_internal' into release_external
5e40cb3852 Fix 0 length domain search list
f0f5131833 Fixed coverity issue.
81b94e535d Added test harness API for set temporary neighbour lifetime longer

git-subtree-dir: features/nanostack/sal-stack-nanostack
git-subtree-split: 9a1b35398cbca79894d193aa0dc929107c3577a3
2020-09-10 13:26:47 +03:00
Mika Leppänen 013ab40ec7 Added initialization check to RADIUS ipv6 address
This prevents the border router from printing unnecessary error trace
when RADIUS is not enabled.
2020-09-10 09:57:52 +03:00
Tim Wang 7e80d3a3ae targets:RT1050: Fix the flash erase and program issue for qspi nor flash.
Update the LUT to fix the winbond qspi flash erase issue.
Update the page program interface to fix the qspi flash program issue.

Signed-off-by: Tim Wang <tim.wang@nxp.com>
2020-09-09 14:55:45 +08:00