Date   

deprecated issue after push to gerrit - need some help

Kaplan, Amir
 

Hi all,

I pushed to : https://gerrit.zephyrproject.org/r/4705

And I got Verified -1 error:

Going to there, and I see:


ERROR: Please fix the documentation warnings
/jenkins/workspace/zephyr-verify/doc/api/power_management_api.rst:16: WARNING: Error when parsing function declaration.
If the function has no return type:
Error in declarator or parameters and qualifiers
Invalid definition: Expected identifier in nested name, got keyword: int [error at 10]
static int __deprecated device_suspend(struct device * device, int pm_policy)
----------^
If the function has a return type:
Error in declarator or parameters and qualifiers
If pointer to member declarator:
Invalid definition: Expected '::' in pointer to member (function). [error at 24]
static int __deprecated device_suspend(struct device * device, int pm_policy)
------------------------^
If declarator-id:
Invalid definition: Expecting "(" in parameters_and_qualifiers. [error at 24]
static int __deprecated device_suspend(struct device * device, int pm_policy)
------------------------^

The function is (in device.h):

static inline int __deprecated device_suspend(struct device *device,
int pm_policy)
{
return device->config->dev_pm_ops->suspend(device, pm_policy);
}

Any idea (I didn't find what is wrong with it)?

Thanks in advance,
Amir Kaplan (S/W dev. in wiot )





---------------------------------------------------------------------
A member of the Intel Corporation group of companies

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


Re: bufs lost in TCP connection establishment

Jukka Rissanen
 

Hi Rohit,

On Mon, 2016-09-12 at 10:43 +0000, Rohit Grover wrote:
Hi all,

I've discovered that there is a potential for a refcount leak if
net_send() isn't the only API generating TX buffers.

With the following patch, I'm able to avoid the ref-count leak for
the SYN buffer during connection establishment.

<patch>
diff --git a/net/ip/contiki/ipv4/uip.c b/net/ip/contiki/ipv4/uip.c
index 7a1e311..a7b99c3 100644
--- a/net/ip/contiki/ipv4/uip.c
+++ b/net/ip/contiki/ipv4/uip.c
@@ -1916,9 +1916,8 @@ uip_process(struct net_buf **buf_out, uint8_t
flag)
          net_context_set_connection_status(ip_buf_context(uip_connr-
buf),
                                            EISCONN);

-         /* Eventually the uip_connr->buf will be freed
-          * by net_core.c:net_send()
-          */
+    ip_buf_unref(uip_connr->buf);
+    uip_connr->buf = NULL;

          tcp_cancel_retrans_timer(uip_connr);
</patch>

It turns out that net_send() is meant to release the refcount for the
SYN buffer, but that assumes that the application uses net_send() for
all outgoing buffers. In my application, I'm using
net_context_tcp_init() to initiate connections; so I'm breaking the
assumption around net_send().

With the above change, we remove the dependency on net_send being
called. If there are no objections, I'll submit this as a pull-
request.
Your feedback is very welcome.
Your patch makes sense, just submit it to gerrit.


Cheers,
Jukka


Re: bufs lost in TCP connection establishment

Rohit Grover
 

Hi all,

I've discovered that there is a potential for a refcount leak if net_send() isn't the only API generating TX buffers.

With the following patch, I'm able to avoid the ref-count leak for the SYN buffer during connection establishment.

<patch>
diff --git a/net/ip/contiki/ipv4/uip.c b/net/ip/contiki/ipv4/uip.c
index 7a1e311..a7b99c3 100644
--- a/net/ip/contiki/ipv4/uip.c
+++ b/net/ip/contiki/ipv4/uip.c
@@ -1916,9 +1916,8 @@ uip_process(struct net_buf **buf_out, uint8_t flag)
net_context_set_connection_status(ip_buf_context(uip_connr->buf),
EISCONN);

- /* Eventually the uip_connr->buf will be freed
- * by net_core.c:net_send()
- */
+ ip_buf_unref(uip_connr->buf);
+ uip_connr->buf = NULL;

tcp_cancel_retrans_timer(uip_connr);
</patch>

It turns out that net_send() is meant to release the refcount for the SYN buffer, but that assumes that the application uses net_send() for all outgoing buffers. In my application, I'm using net_context_tcp_init() to initiate connections; so I'm breaking the assumption around net_send().

With the above change, we remove the dependency on net_send being called. If there are no objections, I'll submit this as a pull-request.
Your feedback is very welcome.

rohit.

-----Original Message-----
> From: Jukka Rissanen [mailto:jukka.rissanen(a)linux.intel.com]
> Sent: 08 September 2016 07:14
> To: Rohit Grover; Paul Sokolovsky
> Cc: devel(a)lists.zephyrproject.org; Marcus Shawcroft
> Subject: Re: [devel] Re: bufs lost in TCP connection establishment
>
> Hi Rohit,
>
> On Wed, 2016-09-07 at 19:42 +0000, Rohit Grover wrote:
> > Jukka,
> >
> > I have used CONFIG_NETWORK_IP_STACK_DEBUG_NET_BUF. And it does
> tell me
> > that the buf involved in sending out the SYN packet doesn't get
> > released because of a non-zero refcount.
> >
> > Tomorrow I'll share some log output to prove my claim.
>
> I am not doubting you here, I am sure there is a buffer leak if you have seen
> it in the logs. I was just wondering if the log would help to identify the
> culprit.
>
> I am suspecting that the patch "net: revert tcpip_poll_tcp() to not require a
> data_buf" might be the reason for the leak.
>
> The tcpip_poll_tcp(struct uip_conn *conn) function was changed back to
> have
> conn->buf = ip_buf_ref(buf);
>
> And this ref is probably missing the corresponding unref(). It might be that
> this ref is not really needed. Can you try and remove it and check if it fixes
> the issue.
>
>
> Cheers,
> Jukka

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.


Daily JIRA Digest

donotreply@...
 

NEW JIRA items within last 24 hours: 3
[ZEP-850] remove obsolete boards basic_minuteia and basic_cortex_m3
https://jira.zephyrproject.org/browse/ZEP-850

[ZEP-848] test_context fails on quark d2000
https://jira.zephyrproject.org/browse/ZEP-848

[ZEP-849] dma driver fails to build on quark d2000
https://jira.zephyrproject.org/browse/ZEP-849


UPDATED JIRA items within last 24 hours: 0

CLOSED JIRA items within last 24 hours: 0

RESOLVED JIRA items within last 24 hours: 1
[ZEP-733] (Fixed) Minimal libc shouldn't be providing stddef.h
https://jira.zephyrproject.org/browse/ZEP-733


Daily Gerrit Digest

donotreply@...
 

NEW within last 24 hours:
- https://gerrit.zephyrproject.org/r/4685 : build: xtools: Simplify derivation of toolchain flags
- https://gerrit.zephyrproject.org/r/4687 : arduino 101: make factory bootloader config the default
- https://gerrit.zephyrproject.org/r/4689 : parse board defconfig at the very end
- https://gerrit.zephyrproject.org/r/4688 : boards: rename arduino_101_sss to arduino_101_ss
- https://gerrit.zephyrproject.org/r/4686 : build: xtools: Honour CROSS_COMPILE (if set)

UPDATED within last 24 hours:
- https://gerrit.zephyrproject.org/r/4463 : power_mgmt: Update Power Management device driver API
- https://gerrit.zephyrproject.org/r/4671 : move quark d2000 to intel_quark family
- https://gerrit.zephyrproject.org/r/4423 : MAINTAINERS: add maintainer for some of the boards
- https://gerrit.zephyrproject.org/r/4670 : intel_quark: Group Quark SoCs under intel_quark/
- https://gerrit.zephyrproject.org/r/4684 : quark_x1000: move the X1000 into the intel_quark family
- https://gerrit.zephyrproject.org/r/4422 : boards: rename Quark SE Devboard to Quark SE C1000

MERGED within last 24 hours:
- https://gerrit.zephyrproject.org/r/4653 : Bluetooth: Controller: Unify handling of async events


Daily JIRA Digest

donotreply@...
 

NEW JIRA items within last 24 hours: 1
[ZEP-845] UART for ARC on Arduino 101 behaves unexpectedly
https://jira.zephyrproject.org/browse/ZEP-845


UPDATED JIRA items within last 24 hours: 6
[ZEP-823] New IP Stack - Documentation
https://jira.zephyrproject.org/browse/ZEP-823

[ZEP-248] Add a BOARD/SOC porting guide
https://jira.zephyrproject.org/browse/ZEP-248

[ZEP-847] IoT protocol functionality must be moved from samples to lib/iot
https://jira.zephyrproject.org/browse/ZEP-847

[ZEP-555] correct libgcc not getting linked for CONFIG_FLOAT=y on ARM
https://jira.zephyrproject.org/browse/ZEP-555

[ZEP-698] samples/task_profiler issues
https://jira.zephyrproject.org/browse/ZEP-698

[ZEP-763] Samples:README: samples/drivers/I2c_stts751 describes error
https://jira.zephyrproject.org/browse/ZEP-763


CLOSED JIRA items within last 24 hours: 0

RESOLVED JIRA items within last 24 hours: 10
[ZEP-451] (Fixed) Quark SE output by default redirected to IPM
https://jira.zephyrproject.org/browse/ZEP-451

[ZEP-808] (Fixed) IPv6 Stateless Autoconfiguration (SLAAC)
https://jira.zephyrproject.org/browse/ZEP-808

[ZEP-811] (Fixed) The Trickle Algorithm
https://jira.zephyrproject.org/browse/ZEP-811

[ZEP-788] (Fixed) UDP
https://jira.zephyrproject.org/browse/ZEP-788

[ZEP-789] (Fixed) IPv4
https://jira.zephyrproject.org/browse/ZEP-789

[ZEP-790] (Fixed) ICMPv4
https://jira.zephyrproject.org/browse/ZEP-790

[ZEP-199] (Fixed) Zephyr driver model is undocumented
https://jira.zephyrproject.org/browse/ZEP-199

[ZEP-690] (Fixed) TCF isn't setting ARCH when running testcases
https://jira.zephyrproject.org/browse/ZEP-690

[ZEP-539] (Fixed) Jenkins marks patches -1 verified for style issues
https://jira.zephyrproject.org/browse/ZEP-539

[ZEP-503] (Fixed) qmsi uart shim reentrancy support is breaking Bluetooth
https://jira.zephyrproject.org/browse/ZEP-503


Daily Gerrit Digest

donotreply@...
 

NEW within last 24 hours:
- https://gerrit.zephyrproject.org/r/4671 : move quark d2000 to intel_quark family
- https://gerrit.zephyrproject.org/r/4676 : irq: Add irq_enable_keep external interrupt API
- https://gerrit.zephyrproject.org/r/4683 : ARM: irq: Add _arch_irq_is_priority_equal external interrupt API
- https://gerrit.zephyrproject.org/r/4662 : irq: Add irq_pending_set external interrupt API
- https://gerrit.zephyrproject.org/r/4663 : ARM: irq: Add _arch_irq_pending_set external interrupt API
- https://gerrit.zephyrproject.org/r/4670 : intel_quark: Group Quark SoCs under intel_quark/
- https://gerrit.zephyrproject.org/r/4684 : quark_x1000: move the X1000 into the intel_quark family
- https://gerrit.zephyrproject.org/r/4682 : irq: Add irq_is_priority_equal external interrupt API
- https://gerrit.zephyrproject.org/r/4681 : ARM: irq: Add _arch_irq_pending_clear external interrupt API
- https://gerrit.zephyrproject.org/r/4680 : irq: Add irq_pending_clear external interrupt API
- https://gerrit.zephyrproject.org/r/4679 : ARM: irq: Add _arch_irq_is_enabled external interrupt API
- https://gerrit.zephyrproject.org/r/4678 : irq: Add irq_is_enabled external interrupt API
- https://gerrit.zephyrproject.org/r/4677 : ARM: irq: Add _arch_irq_enable_keep external interrupt API
- https://gerrit.zephyrproject.org/r/4674 : x86: load _nanokernel in %edi in _Swap()
- https://gerrit.zephyrproject.org/r/4660 : sanity: disable qemu cortex for GCC ARM toolchain.
- https://gerrit.zephyrproject.org/r/4675 : unified/test_mutex: adapt to run on unified kernel
- https://gerrit.zephyrproject.org/r/4661 : dns: Remove deprecated functionality
- https://gerrit.zephyrproject.org/r/4653 : Bluetooth: Controller: Unify handling of async events

UPDATED within last 24 hours:
- https://gerrit.zephyrproject.org/r/4611 : nano_work: Don't allow to submit delayed work that is in use.
- https://gerrit.zephyrproject.org/r/4610 : nano_work: Fix not detaching delayed work from workqueue.
- https://gerrit.zephyrproject.org/r/4422 : boards: rename Quark SE Devboard to Quark SE C1000
- https://gerrit.zephyrproject.org/r/4423 : MAINTAINERS: add maintainer for some of the boards
- https://gerrit.zephyrproject.org/r/4420 : boards: rename Quark SE Devboard to Quark SE C1000 (Sensor Subsystem)
- https://gerrit.zephyrproject.org/r/4517 : unified: include kernel.h via major top-level header files
- https://gerrit.zephyrproject.org/r/4515 : atomic: fix bug in ATOMIC_INIT()
- https://gerrit.zephyrproject.org/r/4514 : unified/x86: add unified kernel support for x86 arch
- https://gerrit.zephyrproject.org/r/4371 : win-build: fixes to build with alternative make implementations
- https://gerrit.zephyrproject.org/r/4501 : dlist: add SYS_DLIST_FOR_EACH_NODE/_SAFE
- https://gerrit.zephyrproject.org/r/4570 : checkpatch: add --ignore DATE_TIME
- https://gerrit.zephyrproject.org/r/4511 : unified/doc: Kernel primer for unified kernel
- https://gerrit.zephyrproject.org/r/4531 : unified/build: allow building the unified kernel
- https://gerrit.zephyrproject.org/r/4530 : unified: initial unified kernel implementation
- https://gerrit.zephyrproject.org/r/4529 : unified/test_fp: mark test so that it runs the nanokernel version
- https://gerrit.zephyrproject.org/r/4528 : unified/test_sema: fix isr wrapper names
- https://gerrit.zephyrproject.org/r/4527 : unified: Fix test_sema/microkernel
- https://gerrit.zephyrproject.org/r/4526 : unified/test_timer: adapt for unified kernel
- https://gerrit.zephyrproject.org/r/4525 : unified/test_pipe: adapt to not use sem groups
- https://gerrit.zephyrproject.org/r/4524 : unified/test_mail: adapt test to not use sem groups and mem pools
- https://gerrit.zephyrproject.org/r/4523 : unified/test_context: adapt test to run on unified kernel
- https://gerrit.zephyrproject.org/r/4522 : unified/tests: tag working some tests kernel as 'unified_capable'
- https://gerrit.zephyrproject.org/r/4521 : zperf_shell: add unified kernel string for unified kernel case
- https://gerrit.zephyrproject.org/r/4520 : unified/object_tracing: disable object tracing in unified kernel
- https://gerrit.zephyrproject.org/r/4519 : unified/sys_timer: guard microkernel announce with !KERNEL_V2
- https://gerrit.zephyrproject.org/r/4518 : unified/drivers: adapt timer drivers to unified kernel
- https://gerrit.zephyrproject.org/r/4516 : workqueue: use kernel.h for workqueue header file
- https://gerrit.zephyrproject.org/r/4593 : Clean dev and latest docs sites before deploy
- https://gerrit.zephyrproject.org/r/4635 : serial: make nrf5 driver more generic, prepare for nrf51
- https://gerrit.zephyrproject.org/r/4634 : drivers/gpio: nrf5: Use generic GPIO base naming
- https://gerrit.zephyrproject.org/r/4652 : nano_work: Add nano_delayed_work_is_idle

MERGED within last 24 hours:
- https://gerrit.zephyrproject.org/r/4633 : drivers: i2c: fix a compilation dependency issue
- https://gerrit.zephyrproject.org/r/4597 : samples: remove stts 751 sensor app
- https://gerrit.zephyrproject.org/r/4261 : doc: drivers: more details on Zephyr driver model
- https://gerrit.zephyrproject.org/r/4102 : libc/printf: Remove vestigial "full" parameter to _to_float()
- https://gerrit.zephyrproject.org/r/4104 : libc/printf: Use compiler-provided 64 bit math, phase 2
- https://gerrit.zephyrproject.org/r/4007 : libc/printf: Unify & simplify number printing
- https://gerrit.zephyrproject.org/r/4103 : libc/printf: Use compiler-provided 64 bit math, phase 1
- https://gerrit.zephyrproject.org/r/4631 : kernel: abolish FUNC_NO_FP
- https://gerrit.zephyrproject.org/r/4474 : uart_console: Fix line endings
- https://gerrit.zephyrproject.org/r/4616 : quark_se_ss: Fix console default
- https://gerrit.zephyrproject.org/r/4475 : samples/drivers/uart: Fix line endings
- https://gerrit.zephyrproject.org/r/4476 : samples/uart: Use the proper console
- https://gerrit.zephyrproject.org/r/4477 : uart_qmsi: Get the interrupt handling right on ARC


Push of first unified kernel drop

Benjamin Walsh <benjamin.walsh@...>
 

All,

I only received comment from basically one person on the unified kernel
first drop I pushed to gerrit a week ago. I have addressed the comments
I received, either via replies to comments or by code changes.

If I do not get more comments, we will push the commits to master on
Monday.

Regards,
Ben

--
Benjamin Walsh, SMTS
Wind River Rocket
www.windriver.com
Zephyr kernel maintainer
www.zephyrproject.org


Daily JIRA Digest

donotreply@...
 

NEW JIRA items within last 24 hours: 43
[ZEP-825] Porting guide for old-to-new IP Stack APIs
https://jira.zephyrproject.org/browse/ZEP-825

[ZEP-824] Network Device Driver Porting Guide
https://jira.zephyrproject.org/browse/ZEP-824

[ZEP-822] Simple Network Management Protocol v2
https://jira.zephyrproject.org/browse/ZEP-822

[ZEP-818] CoAP working over the new IP stack
https://jira.zephyrproject.org/browse/ZEP-818

[ZEP-804] IPv6 Addressing Architecture
https://jira.zephyrproject.org/browse/ZEP-804

[ZEP-835] Thread Requirements on RFC2460
https://jira.zephyrproject.org/browse/ZEP-835

[ZEP-819] 6LowPAN-GHC
https://jira.zephyrproject.org/browse/ZEP-819

[ZEP-807] Neighbor Discovery for IPv6
https://jira.zephyrproject.org/browse/ZEP-807

[ZEP-805] Internet Control Message Protocol (ICMP) v6
https://jira.zephyrproject.org/browse/ZEP-805

[ZEP-799] HTTP over TLS
https://jira.zephyrproject.org/browse/ZEP-799

[ZEP-812] Compression Format for IPv6 over 802.15.4
https://jira.zephyrproject.org/browse/ZEP-812

[ZEP-816] Minimum Rank with Hysteresis (RPL)
https://jira.zephyrproject.org/browse/ZEP-816

[ZEP-809] IPv6 over 802.15.4
https://jira.zephyrproject.org/browse/ZEP-809

[ZEP-810] Network Time Protocol v4
https://jira.zephyrproject.org/browse/ZEP-810

[ZEP-800] DHCPv6
https://jira.zephyrproject.org/browse/ZEP-800

[ZEP-836] Thread Requirements on RFC4291
https://jira.zephyrproject.org/browse/ZEP-836

[ZEP-794] Requirements for Internet Hosts - Communication Layers
https://jira.zephyrproject.org/browse/ZEP-794

[ZEP-798] IPv6
https://jira.zephyrproject.org/browse/ZEP-798

[ZEP-791] TCP
https://jira.zephyrproject.org/browse/ZEP-791

[ZEP-826] Get IPv6 Ready approval
https://jira.zephyrproject.org/browse/ZEP-826

[ZEP-817] Neighbor Discovery Optimization for IPv6 over 6LowPAN
https://jira.zephyrproject.org/browse/ZEP-817

[ZEP-815] Objective Function Zero for RPL
https://jira.zephyrproject.org/browse/ZEP-815

[ZEP-839] Thread Requirements on RFC6282
https://jira.zephyrproject.org/browse/ZEP-839

[ZEP-838] Thread Requirements on RFC4944
https://jira.zephyrproject.org/browse/ZEP-838

[ZEP-813] RPL: IPv6 Routing Protocol
https://jira.zephyrproject.org/browse/ZEP-813

[ZEP-834] Thread Requirements on RFC1122
https://jira.zephyrproject.org/browse/ZEP-834

[ZEP-837] Thread Requirements on RFC4443
https://jira.zephyrproject.org/browse/ZEP-837

[ZEP-814] Routing Metrics used in Path Selection
https://jira.zephyrproject.org/browse/ZEP-814

[ZEP-802] DNS Configuration Options for DHCPv6
https://jira.zephyrproject.org/browse/ZEP-802

[ZEP-793] DNS Resolver
https://jira.zephyrproject.org/browse/ZEP-793

[ZEP-795] Path MTU Discovery for IPv6
https://jira.zephyrproject.org/browse/ZEP-795

[ZEP-792] ARP
https://jira.zephyrproject.org/browse/ZEP-792

[ZEP-801] DNS Extensions to support IPv6
https://jira.zephyrproject.org/browse/ZEP-801

[ZEP-833] IP-to-IP tunneling support
https://jira.zephyrproject.org/browse/ZEP-833

[ZEP-803] Dynamic Configurarion of IPv4 Link-local Addresses
https://jira.zephyrproject.org/browse/ZEP-803

[ZEP-806] Link-local Multicast Name Resolution
https://jira.zephyrproject.org/browse/ZEP-806

[ZEP-828] IPv6 - Multicast Join/Leave Support
https://jira.zephyrproject.org/browse/ZEP-828

[ZEP-797] Internet Group Management Protocol (IGMP) v2
https://jira.zephyrproject.org/browse/ZEP-797

[ZEP-796] DHCPv4
https://jira.zephyrproject.org/browse/ZEP-796

[ZEP-829] IPv4 - Multicast Join/Leave Support
https://jira.zephyrproject.org/browse/ZEP-829

[ZEP-842] Create a sample application for ENC28J60
https://jira.zephyrproject.org/browse/ZEP-842

[ZEP-843] Unified assert/unrecoverable error infrastructure
https://jira.zephyrproject.org/browse/ZEP-843

[ZEP-844] flashing "arduino_101_sss" build onto Arduino 101 breaks DFU
https://jira.zephyrproject.org/browse/ZEP-844


UPDATED JIRA items within last 24 hours: 10
[ZEP-750] Arduino 101 board should support one configuration using original bootloader
https://jira.zephyrproject.org/browse/ZEP-750

[ZEP-827] HTTP Client sample application
https://jira.zephyrproject.org/browse/ZEP-827

[ZEP-820] HTTP v1.1 Server Sample
https://jira.zephyrproject.org/browse/ZEP-820

[ZEP-785] Enable MQTT Paho samples to run on quark se board
https://jira.zephyrproject.org/browse/ZEP-785

[ZEP-748] Enable mbedtls_sslclient sample to run on quark se board
https://jira.zephyrproject.org/browse/ZEP-748

[ZEP-346] Provide a HTTP library within Zephyr
https://jira.zephyrproject.org/browse/ZEP-346

[ZEP-733] Minimal libc shouldn't be providing stddef.h
https://jira.zephyrproject.org/browse/ZEP-733

[ZEP-762] unexpected "abspath" and "notdir" from mingw make system
https://jira.zephyrproject.org/browse/ZEP-762

[ZEP-778] Samples/drivers/i2c_lsm9ds0: kconfig build warning from "select DMA_QMSI"
https://jira.zephyrproject.org/browse/ZEP-778

[ZEP-777] samples/driver/i2c_stts751: kconfig build warning from "select DMA_QMSI"
https://jira.zephyrproject.org/browse/ZEP-777


CLOSED JIRA items within last 24 hours: 2
[ZEP-821] (Duplicate) MQTT v3.1.1 port to the new IP Stack
https://jira.zephyrproject.org/browse/ZEP-821

[ZEP-709] (Duplicate) tests/kernel/test_xip/nanokernel Times out on ARC core of Quark SE devboard and Arduino 101
https://jira.zephyrproject.org/browse/ZEP-709


RESOLVED JIRA items within last 24 hours: 3
[ZEP-488] (Won't Do) Ethernet/IPv4/TCP/server-mode: unable to send data
https://jira.zephyrproject.org/browse/ZEP-488

[ZEP-782] (Fixed) Samples:drivers:adc:should define ARCH in samples/drivers/adc/Makefile
https://jira.zephyrproject.org/browse/ZEP-782

[ZEP-602] (Fixed) unhandled CPU exceptions/interrupts report wrong faulting vector if triggered by CPU
https://jira.zephyrproject.org/browse/ZEP-602


Daily Gerrit Digest

donotreply@...
 

NEW within last 24 hours:
- https://gerrit.zephyrproject.org/r/4652 : nano_work: Add nano_delayed_work_is_idle
- https://gerrit.zephyrproject.org/r/4631 : kernel: abolish FUNC_NO_FP
- https://gerrit.zephyrproject.org/r/4636 : bt/controller: use common nRF5 names for the IRQs
- https://gerrit.zephyrproject.org/r/4634 : drivers/gpio: nrf5: Use generic GPIO base naming
- https://gerrit.zephyrproject.org/r/4635 : serial: make nrf5 driver more generic, prepare for nrf51
- https://gerrit.zephyrproject.org/r/4633 : drivers: i2c: fix a compilation dependency issue
- https://gerrit.zephyrproject.org/r/4632 : arduino_101: don't erase factory 2nd-stage loader
- https://gerrit.zephyrproject.org/r/4616 : quark_se_ss: Fix console default

UPDATED within last 24 hours:
- https://gerrit.zephyrproject.org/r/4347 : net: yaip: User connectivity API documentation
- https://gerrit.zephyrproject.org/r/4346 : net: yaip: Initial architecture documentation
- https://gerrit.zephyrproject.org/r/4540 : Bluetooth: AVDTP: Connect and Disconnect
- https://gerrit.zephyrproject.org/r/4341 : Bluetooth: HFP HF: Initialize Handsfree profile
- https://gerrit.zephyrproject.org/r/4562 : Bluetooth: Sample: handsfree sample application
- https://gerrit.zephyrproject.org/r/4610 : nano_work: Fix not detaching delayed work from workqueue.
- https://gerrit.zephyrproject.org/r/4447 : Bluetooth: AVDTP: Module Initialization
- https://gerrit.zephyrproject.org/r/4555 : Bluetooth: HFP HF: Implementation of SLC
- https://gerrit.zephyrproject.org/r/4476 : samples/uart: Use the proper console
- https://gerrit.zephyrproject.org/r/4514 : unified/x86: add unified kernel support for x86 arch
- https://gerrit.zephyrproject.org/r/3337 : Script: Script to validate commit messages format.
- https://gerrit.zephyrproject.org/r/4371 : win-build: fixes to build with alternative make implementations
- https://gerrit.zephyrproject.org/r/3527 : console: shell: Shell enhancement - Support multiple modules
- https://gerrit.zephyrproject.org/r/4475 : samples/drivers/uart: Fix line endings
- https://gerrit.zephyrproject.org/r/4474 : uart_console: Fix line endings
- https://gerrit.zephyrproject.org/r/4477 : uart_qmsi: Get the interrupt handling right on ARC
- https://gerrit.zephyrproject.org/r/3311 : include/crypto: Crypto abstraction header

MERGED within last 24 hours:
- https://gerrit.zephyrproject.org/r/4637 : arm/nrf52: fix default number of IRQs
- https://gerrit.zephyrproject.org/r/4651 : net: yaip: Calculate IPv4 checksum when sending IPv4 packet
- https://gerrit.zephyrproject.org/r/4650 : net: yaip: Add utility func for calculating IPv4 checksum
- https://gerrit.zephyrproject.org/r/4643 : Bluetooth: Controller: Switch to Zephyr's hci.h for cmd handling
- https://gerrit.zephyrproject.org/r/4647 : Bluetooth: Controller: Switch to Zephyr's hci.h for cmd handling
- https://gerrit.zephyrproject.org/r/4645 : Bluetooth: Controller: Switch to Zephyr's hci.h for cmd handling
- https://gerrit.zephyrproject.org/r/4641 : Bluetooth: Controller: Switch to Zephyr's hci.h for cmd handling
- https://gerrit.zephyrproject.org/r/4638 : net: yaip: Context accept cb needs to return failure code
- https://gerrit.zephyrproject.org/r/4646 : Bluetooth: ATT: Fix not handling error response properly
- https://gerrit.zephyrproject.org/r/4639 : net: yaip: Add TCP buffer access func to nbuf
- https://gerrit.zephyrproject.org/r/4640 : net: yaip: Add TCP protocol header definition
- https://gerrit.zephyrproject.org/r/4619 : Bluetooth: Controller: Use BT_ASSERT instead of custom impl.
- https://gerrit.zephyrproject.org/r/4630 : Bluetooth: log: Include nanokernel.h to use BT_ASSERT()
- https://gerrit.zephyrproject.org/r/4629 : misc/byteorder.h: Add a function to store a 64-bit int in LE
- https://gerrit.zephyrproject.org/r/4628 : x86: fatal: don't report bogus interrupt vectors
- https://gerrit.zephyrproject.org/r/4626 : interrupt_controller: allow for indeterminate faulting vectors
- https://gerrit.zephyrproject.org/r/4618 : Bluetooth: log: Call _SysFatalErrorHandler in BT_ASSERT()
- https://gerrit.zephyrproject.org/r/4617 : Bluetooth: ATT: Remove unnecessary call to BT_ASSERT
- https://gerrit.zephyrproject.org/r/4569 : quark_d2000/se: Don't setup GDT during initialization
- https://gerrit.zephyrproject.org/r/4596 : libc: remove stddef.h which is provided by the compiler
- https://gerrit.zephyrproject.org/r/4606 : Bluetooth: RFCOMM: Implement RX flow control
- https://gerrit.zephyrproject.org/r/4583 : net: tests: Add unit test for net_nbuf_pull functionality
- https://gerrit.zephyrproject.org/r/4582 : net: yaip: Add net_nbuf_pull function
- https://gerrit.zephyrproject.org/r/4579 : net: yaip: Align net_if struct to 32-byte boundary
- https://gerrit.zephyrproject.org/r/4608 : slip: Fix debug printing
- https://gerrit.zephyrproject.org/r/4613 : net: yaip: Fix the statistics compilation
- https://gerrit.zephyrproject.org/r/4607 : quark_se: sensor: enable QMSI ADC driver
- https://gerrit.zephyrproject.org/r/4261 : doc: drivers: more details on Zephyr driver model
- https://gerrit.zephyrproject.org/r/4592 : arm/irq_manage: change assert to allow sharing prio with PendSV
- https://gerrit.zephyrproject.org/r/4572 : doc: Expand doc on 3rd-party cross compilers
- https://gerrit.zephyrproject.org/r/4594 : init: document SYS_INIT and SYS_INIT_PM
- https://gerrit.zephyrproject.org/r/4615 : Bluetooth: HCI: Add handle to conn param update command complete


Daily JIRA Digest

donotreply@...
 

NEW JIRA items within last 24 hours: 4
[ZEP-783] ARM Cortex-M0/M0+ support
https://jira.zephyrproject.org/browse/ZEP-783

[ZEP-784] Add support for Nordic Semiconductor nRF51822 SoC
https://jira.zephyrproject.org/browse/ZEP-784

[ZEP-781] Streamline GPIO, Pinmux driver API
https://jira.zephyrproject.org/browse/ZEP-781

[ZEP-780] Samples:stub: should define default BOARD in /samples/stub/ Makefile
https://jira.zephyrproject.org/browse/ZEP-780


UPDATED JIRA items within last 24 hours: 3
[ZEP-636] Add FS API to get volume total and free space
https://jira.zephyrproject.org/browse/ZEP-636

[ZEP-690] TCF isn't setting ARCH when running testcases
https://jira.zephyrproject.org/browse/ZEP-690

[ZEP-711] I2c: fails to write with mode fast plus
https://jira.zephyrproject.org/browse/ZEP-711


CLOSED JIRA items within last 24 hours: 1
[ZEP-615] (Fixed) Un-supported flash erase size listed in SPI flash w25qxxdv driver header file
https://jira.zephyrproject.org/browse/ZEP-615


RESOLVED JIRA items within last 24 hours: 5
[ZEP-48] (Fixed) define API for interrupt controllers
https://jira.zephyrproject.org/browse/ZEP-48

[ZEP-342] (Fixed) USB DFU
https://jira.zephyrproject.org/browse/ZEP-342

[ZEP-717] (Fixed) Add ksdk I2C shim driver
https://jira.zephyrproject.org/browse/ZEP-717

[ZEP-640] (Fixed) Remove dynamic IRQs/exceptions from Zephyr
https://jira.zephyrproject.org/browse/ZEP-640

[ZEP-685] (Fixed) many sample programs are not built by CI
https://jira.zephyrproject.org/browse/ZEP-685


Daily Gerrit Digest

donotreply@...
 

NEW within last 24 hours:
- https://gerrit.zephyrproject.org/r/4596 : libc: remove stddef.h which is provided by the compiler
- https://gerrit.zephyrproject.org/r/4615 : Bluetooth: HCI: Add handle to conn param update command complete
- https://gerrit.zephyrproject.org/r/4614 : misc: Add a function to store a 64-bit int in LE
- https://gerrit.zephyrproject.org/r/4613 : net: yaip: Fix the statistics compilation
- https://gerrit.zephyrproject.org/r/4610 : nano_work: Fix not detaching delayed work from workqueue.
- https://gerrit.zephyrproject.org/r/4612 : nano_work: Extend nano_delayed_work_submit_to_queue documentation
- https://gerrit.zephyrproject.org/r/4611 : nano_work: Don't allow to submit delayed work that is in use.
- https://gerrit.zephyrproject.org/r/4608 : slip: Fix debug printing
- https://gerrit.zephyrproject.org/r/4607 : quark_se: sensor: enable QMSI ADC driver
- https://gerrit.zephyrproject.org/r/4605 : Bluetooth: Fix check in le_set_rpa
- https://gerrit.zephyrproject.org/r/4601 : samples: power_mgmt: Update sample according to new pm device API
- https://gerrit.zephyrproject.org/r/4602 : power_mgmt: Update code according to new pm device API
- https://gerrit.zephyrproject.org/r/4603 : power_mgmt: Mark old device pm API functions as deprecated
- https://gerrit.zephyrproject.org/r/4600 : samples: heartrate-monitor: Fixes for following issues.
- https://gerrit.zephyrproject.org/r/4599 : mqtt: Add the test application for the MQTT Packet Library
- https://gerrit.zephyrproject.org/r/4598 : lib: Add the MQTT Packet Library
- https://gerrit.zephyrproject.org/r/4597 : samples: update readme file for stts 751 sensor app
- https://gerrit.zephyrproject.org/r/4595 : boards: ia32_pci is long gone, use galileo instead
- https://gerrit.zephyrproject.org/r/4594 : init: document SYS_INIT and SYS_INIT_PM
- https://gerrit.zephyrproject.org/r/4593 : Clean dev and latest docs sites before deploy
- https://gerrit.zephyrproject.org/r/4592 : arm/irq_manage: change assert to allow sharing prio with PendSV

UPDATED within last 24 hours:
- https://gerrit.zephyrproject.org/r/3527 : console: shell: Shell enhancement - Support multiple modules
- https://gerrit.zephyrproject.org/r/4562 : Bluetooth: Sample: handsfree sample application
- https://gerrit.zephyrproject.org/r/4341 : Bluetooth: HFP HF: Initialize Handsfree profile
- https://gerrit.zephyrproject.org/r/4555 : Bluetooth: HFP HF: Implementation of SLC
- https://gerrit.zephyrproject.org/r/4463 : power_mgmt: Update Power Management device driver API
- https://gerrit.zephyrproject.org/r/4582 : net: yaip: Add net_nbuf_pull function
- https://gerrit.zephyrproject.org/r/4557 : Bluetooth: BR/EDR Write Class of device
- https://gerrit.zephyrproject.org/r/4563 : arm: do not clear pending IRQ when enabling them.
- https://gerrit.zephyrproject.org/r/4585 : samples: use printf/printk directly instead of macros
- https://gerrit.zephyrproject.org/r/4551 : tests: move test code from samples to tests
- https://gerrit.zephyrproject.org/r/4550 : samples: move pci tests to tests/
- https://gerrit.zephyrproject.org/r/4549 : samples: move spi tests to tests/
- https://gerrit.zephyrproject.org/r/4572 : doc: Expand doc on 3rd-party cross compilers
- https://gerrit.zephyrproject.org/r/4261 : doc: drivers: more details on Zephyr driver model
- https://gerrit.zephyrproject.org/r/3311 : include/crypto: Crypto abstraction header
- https://gerrit.zephyrproject.org/r/4514 : unified/x86: add unified kernel support for x86 arch
- https://gerrit.zephyrproject.org/r/4532 : fix: net samples no longer include unneeded 802.15.4 files
- https://gerrit.zephyrproject.org/r/4559 : misc: Add an helper for memory alignement

MERGED within last 24 hours:
- https://gerrit.zephyrproject.org/r/4609 : Bluetooth: HCI: Add handle to LTK command complete events
- https://gerrit.zephyrproject.org/r/4495 : Bluetooth: tester: Add support for L2CAP listen command
- https://gerrit.zephyrproject.org/r/4539 : Bluetooth: tester: Add support for L2CAP send data command
- https://gerrit.zephyrproject.org/r/4494 : Bluetooth: tester: Add support for L2CAP disconnect commands
- https://gerrit.zephyrproject.org/r/4460 : kconfig: include configuration fragment files from output directory
- https://gerrit.zephyrproject.org/r/4533 : TCF: specify ARCH when creating initconfig
- https://gerrit.zephyrproject.org/r/4498 : TCF: default Quark SE's ARC core to use UART1 as console for testing
- https://gerrit.zephyrproject.org/r/4497 : TCF: update defaults to use configuration fragments
- https://gerrit.zephyrproject.org/r/4461 : i2c: qmsi_shim: change some i2c config parameters to SoC specific
- https://gerrit.zephyrproject.org/r/4567 : net/buf: Add missing line break in debug statement
- https://gerrit.zephyrproject.org/r/4499 : TCF: disable running single core testcases on Quark SE's x86+arc
- https://gerrit.zephyrproject.org/r/4591 : Bluetooth: Controller: Switch to Zephyr's hci.h for cmd handling
- https://gerrit.zephyrproject.org/r/4493 : Bluetooth: tester: Add support for L2CAP connect command
- https://gerrit.zephyrproject.org/r/4587 : net: yaip: Add DEBUG Kconfig option for UDP
- https://gerrit.zephyrproject.org/r/4586 : net: yaip: Fix remaining debug option naming issues
- https://gerrit.zephyrproject.org/r/4589 : samples: adc: make project configuration arch agnostic and cleanup
- https://gerrit.zephyrproject.org/r/4588 : Merge bluetooth branch to master
- https://gerrit.zephyrproject.org/r/4590 : Bluetooth: HCI: Fix the length of supported commands
- https://gerrit.zephyrproject.org/r/4581 : libc: printf: Add support for 'z' length specifier
- https://gerrit.zephyrproject.org/r/4472 : i2c: ksdk: Add shim driver
- https://gerrit.zephyrproject.org/r/4578 : build: Use __CYGWIN__ to detect Cygwin
- https://gerrit.zephyrproject.org/r/4473 : i2c: Fix restart flag in burst read


Re: bufs lost in TCP connection establishment

Ricardo Salveti <ricardo.salveti@...>
 

On Thu, Sep 8, 2016 at 3:13 AM, Jukka Rissanen
<jukka.rissanen(a)linux.intel.com> wrote:
Hi Rohit,

On Wed, 2016-09-07 at 19:42 +0000, Rohit Grover wrote:
Jukka,

I have used CONFIG_NETWORK_IP_STACK_DEBUG_NET_BUF. And it does tell
me that the buf involved in sending out the SYN packet doesn't get
released because of a non-zero refcount.

Tomorrow I'll share some log output to prove my claim.
I am not doubting you here, I am sure there is a buffer leak if you
have seen it in the logs. I was just wondering if the log would help to
identify the culprit.

I am suspecting that the patch "net: revert tcpip_poll_tcp() to not
require a data_buf" might be the reason for the leak.

The tcpip_poll_tcp(struct uip_conn *conn) function was changed back to
have
conn->buf = ip_buf_ref(buf);

And this ref is probably missing the corresponding unref(). It might be
that this ref is not really needed. Can you try and remove it and check
if it fixes the issue.
That should explain why tcpip_poll_tcp was modified, looks like simply
to get an additional ref to the first buffer, which gets unref once
the connection is established.

I did find a buffer leak when the first package fails to create the
connection, but still debugging to find the right fix.

I'm also fighting with buffer leaks when playing with tcp here.

Cheers,
--
Ricardo Salveti


[RFC] Add new SYS_LOG_BACKEND_FN to sys_log

Perry, Eitan <eitan.perry@...>
 

Add new SYS_LOG_BACKEND_FN to sys_log.h
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
========
Overview
========
Current system log implementation:
* When using system log API (SYS_LOG_ERR(...), SYS_LOG_WRN(...),
SYS_LOG_INF(...), SYS_LOG_DBG(...) ), each of the four SYS_LOG_X macros is
calling the same macro - SYS_LOG_BACKEND_FN that should output the log
message.
* SYS_LOG_BACKEND_FN is mapped to printk or printf according to kconfig.

=====
Goals
=====
* Have the ability to use various back ends to output the messages,
i.e. different UART than the console, SPI, flash, FS, etc..
* The users should use the log in asynchronous way (i.e. not wait to IO
drivers).

==========
Suggestion
==========
* Add the option to map SYS_LOG_BACKEND_FN to a new function, that will
Put the log message in a cyclic_buffer, depends on kconfig.
* Keep the same system log api.
* The log messages will be written to a cyclic buffer (instead of
printk / printf).
* Application developers may add various back ends, that will read the
messages from the cyclic buffer and output the data to the required
driver.

======================
Code change suggestion
======================
At: /include/misc/sys_log.h

/* decide print func */
#if defined(CONFIG_LOGGER_CYCLIC_BUF)
#include <bsp_log_cyclic_buffer.h>
#define SYS_LOG_BACKEND_FN log_cyclic_buf_put
#elif defined(CONFIG_STDOUT_CONSOLE)
#include <stdio.h>
#define SYS_LOG_BACKEND_FN printf
#else
#include <misc/printk.h>
#define SYS_LOG_BACKEND_FN printk
#endif /* CONFIG_STDOUT_CONSOLE */


---------------------------------------------------------------------
A member of the Intel Corporation group of companies

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


Re: bufs lost in TCP connection establishment

Jukka Rissanen
 

Hi Rohit,

On Wed, 2016-09-07 at 19:42 +0000, Rohit Grover wrote:
Jukka,

I have used CONFIG_NETWORK_IP_STACK_DEBUG_NET_BUF. And it does tell
me that the buf involved in sending out the SYN packet doesn't get
released because of a non-zero refcount.

Tomorrow I'll share some log output to prove my claim.
I am not doubting you here, I am sure there is a buffer leak if you
have seen it in the logs. I was just wondering if the log would help to
identify the culprit.

I am suspecting that the patch "net: revert tcpip_poll_tcp() to not
require a data_buf" might be the reason for the leak.

The tcpip_poll_tcp(struct uip_conn *conn) function was changed back to
have
conn->buf = ip_buf_ref(buf);

And this ref is probably missing the corresponding unref(). It might be
that this ref is not really needed. Can you try and remove it and check
if it fixes the issue.


Cheers,
Jukka


Re: [RFC] Zephyr 1.6: HTTP support

Flavio Santes <flavio.santes@...>
 

Hello,

Comments posted in https://gerrit.zephyrproject.org/r/3922 were very helpful, thank you.

In 3922, we were trying to import the http_parser code from nodejs. However, checkpatch reported some issues [1].
So, I am working on some kind of code refactoring [2]. I am not using gerrit right now because I am also modifying the test code from the original repo. Once the refactoring is done, I will update 3922, 3923 & 3924.

Regards,
Flavio

[1] https://jira.zephyrproject.org/browse/ZEP-776
[2] https://gitlab.com/santes/http_parser/commits/refactoring1


Re: bufs lost in TCP connection establishment

Rohit Grover
 

Jukka,

I have used CONFIG_NETWORK_IP_STACK_DEBUG_NET_BUF. And it does tell me that the buf involved in sending out the SYN packet doesn't get released because of a non-zero refcount.

Tomorrow I'll share some log output to prove my claim.

thanks,
Rohit.

-----Original Message-----
> From: Jukka Rissanen [mailto:jukka.rissanen(a)linux.intel.com]
> Sent: 07 September 2016 18:17
> To: Rohit Grover; Paul Sokolovsky
> Cc: devel(a)lists.zephyrproject.org; Marcus Shawcroft
> Subject: [devel] Re: bufs lost in TCP connection establishment
>
> Hi Rohit,
>
> have you tried to enable CONFIG_NETWORK_IP_STACK_DEBUG_NET_BUF
> option.
> It will print information about the buffer allocations.
>
> Cheers,
> Jukka
>
>
> On Wed, 2016-09-07 at 15:26 +0000, Rohit Grover wrote:
> > Jukka, Paul,
> >
> > I find that uIP leaks one TX buf with every TCP connection due to
> > incorrectly managed ref-counts. I'm able to setup and teardown the
> > same number of connections as the value of CONFIG_IP_BUF_TX_SIZE.
> >
> > The initial buf for the SYN packet gets its ref-count bumped to 2 (by
> > tcpip_poll_tcp()), but then this count never goes down to 0.
> > It seems to me that when the tcpip_event is posted to
> > process_thread_tcp() upon the sending of the SYN buf, the following
> > code fragment
> >
> > if (buf && uip_connected(buf)) {
> > struct net_context *context = user_data; NET_DBG("Connection
> > established context %p\n", user_data);
> > context->connection_status = -EALREADY;
> > data = INT_TO_POINTER(TCP_WRITE_EVENT); goto try_send; }
> >
> > is able is able to discover the transition to connected state, and
> > cycles back to call handle_tcp_connection(); but the ref-count of SYN
> > buf isn't decremented.
> >
> > Can you help?
> >
> > Thanks,
> > Rohit.
> >
> > IMPORTANT NOTICE: The contents of this email and any attachments are
> > confidential and may also be privileged. If you are not the intended
> > recipient, please notify the sender immediately and do not disclose
> > the contents to any other person, use it for any purpose, or store or
> > copy the information in any medium. Thank you.
> >

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.


Re: Serial Port throws error - Galileo Gen2 Boot up with USB thumb drive/MicroSD

Vaish, Atul <atul.vaish@...>
 

Hi
As I am getting the issue on Galelio Gen2 niw and then, and thats the only hw I have in Bangalore, india (As importing Hw from US takes long time around 4-6 weeks) ,May i know what non-propietery hws being used by people here whch i can buy for doing hobby project wirh Zephyr.

Sent from my Windows
________________________________
From: Vaish, Atul<mailto:atul.vaish(a)intel.com>
Sent: ‎04/‎09/‎2016 21:41
To: devel(a)lists.zephyrproject.org<mailto:devel(a)lists.zephyrproject.org>
Subject: [devel] Serial Port throws error - Galileo Gen2 Boot up with USB thumb drive/MicroSD

Hi
After a while , restated to check (earlier with the same setup, could run hello world and CoAP server) networking functionalities with Zephyr using Galileo Gen 2 , but after following https://wiki.zephyrproject.org/view/Galileo_Gen1_Gen2
(except Jumper settings) , I get stuck below . What could be the missing here ?

[cid:image001.png(a)01D206F4.06D672F0]



With Micro SD card
[cid:image002.png(a)01D206F4.B7E17A40]


Re: Increasing bss section in Zephyr

Sukumar Ghorai
 

Thx. load-address(0x40030000) is the Flash Address.. and i missed it... :(

~Sukumar

On Wed, Sep 7, 2016 at 8:56 PM, Andy Ross <andrew.j.ross(a)intel.com> wrote:
Sukumar Ghorai wrote:
I was checking ROM and RAM size in arduino_101:
CONFIG_XIP=y
CONFIG_PHYS_LOAD_ADDR=0x40030000
CONFIG_PHYS_RAM_ADDR =0xA8006400
CONFIG_RAM_SIZE=55
CONFIG_ROM_SIZE=144

Why load-address(0x40030000) is lower compare to ram-address (0xA8006400)?
PHYS_LOAD_ADDR is where the code (and rodata, etc...) goes. Quark SE
is an execute-in-place architecture, so that address is mapped
directly to the flash space on the chip, there is no step where the
code gets "copied into memory" as there is on bigger machines.

As far as why flash is mapped lower than RAM, that's just an arbitrary
choice by the hardware designers.

Andy


Re: bufs lost in TCP connection establishment

Flavio Santes <flavio.santes@...>
 

Hello Rohit,

It looks similar, however perhaps this is a new issue.
At that time, increasing buffers and adding a delay between net_send calls solved the issue at application level.

Regards,
Flavio

6701 - 6720 of 8113