Date   

bufs lost in TCP connection establishment

Rohit Grover
 

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.


Re: Increasing bss section in Zephyr

Andy Ross
 

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


Daily Gerrit Digest

donotreply@...
 

NEW within last 24 hours:
- https://gerrit.zephyrproject.org/r/4591 : Bluetooth: Controller: Switch to Zephyr's hci.h for cmd handling
- https://gerrit.zephyrproject.org/r/4589 : samples: adc: make project configuration arch agnostic and cleanup
- https://gerrit.zephyrproject.org/r/4590 : Bluetooth: HCI: Fix the length of supported commands
- https://gerrit.zephyrproject.org/r/4588 : Merge bluetooth branch to master
- 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/4585 : samples: use printf/printk directly instead of macros
- 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/4562 : Bluetooth: Sample: handsfree sample application
- https://gerrit.zephyrproject.org/r/4579 : net: yaip: Align net_if struct to 32-byte boundary
- https://gerrit.zephyrproject.org/r/4580 : net: yaip: Special handling for net_if for Quark SE devboard
- https://gerrit.zephyrproject.org/r/4567 : net/buf: Add missing line break in debug statement
- https://gerrit.zephyrproject.org/r/4563 : arm: do not clear pending IRQ when enabling them.
- https://gerrit.zephyrproject.org/r/4574 : samples: shell: add support for nano/micro kernel
- https://gerrit.zephyrproject.org/r/4572 : doc: Expand doc on 3rd-party cross compilers
- https://gerrit.zephyrproject.org/r/4571 : checkpatch: do not check for min_t/max_t
- https://gerrit.zephyrproject.org/r/4570 : checkpatch: add --ignore DATE_TIME

UPDATED within last 24 hours:
- https://gerrit.zephyrproject.org/r/4506 : build: make sysgen take optional command line arguments
- https://gerrit.zephyrproject.org/r/4508 : build: only generate the SSE group for x86
- https://gerrit.zephyrproject.org/r/4539 : Bluetooth: tester: Add support for L2CAP send data command
- https://gerrit.zephyrproject.org/r/4493 : Bluetooth: tester: Add support for L2CAP connect command
- https://gerrit.zephyrproject.org/r/4495 : Bluetooth: tester: Add support for L2CAP listen command
- https://gerrit.zephyrproject.org/r/4494 : Bluetooth: tester: Add support for L2CAP disconnect commands
- https://gerrit.zephyrproject.org/r/4550 : samples: move pci tests to tests/
- https://gerrit.zephyrproject.org/r/4551 : tests: move test code from samples to tests
- https://gerrit.zephyrproject.org/r/4549 : samples: move spi tests to tests/
- https://gerrit.zephyrproject.org/r/4552 : build: support pre-built host tools (DO NOT MERGE)
- https://gerrit.zephyrproject.org/r/4555 : Bluetooth: HFP HF: Implementation of SLC
- https://gerrit.zephyrproject.org/r/4341 : Bluetooth: HFP HF: Initialize Handsfree profile
- https://gerrit.zephyrproject.org/r/4452 : Bluetooth: A2DP: Initialization of A2DP.
- https://gerrit.zephyrproject.org/r/4545 : Bluetooth: A2DP: Connect and Disconnect
- https://gerrit.zephyrproject.org/r/3527 : console: shell: Shell enhancement - Support multiple modules
- https://gerrit.zephyrproject.org/r/4139 : TCF: Tags test previously broken by ARC-x86 communication issue
- https://gerrit.zephyrproject.org/r/4533 : TCF: specify ARCH when creating initconfig
- https://gerrit.zephyrproject.org/r/4460 : kconfig: include configuration fragment files from output directory
- https://gerrit.zephyrproject.org/r/4499 : TCF: disable running single core testcases on Quark SE's x86+arc
- https://gerrit.zephyrproject.org/r/4497 : TCF: update defaults to use configuration fragments
- 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/4525 : unified/test_pipe: adapt to not use sem groups
- https://gerrit.zephyrproject.org/r/4509 : arm: add __ASSERT() for stack alignment
- https://gerrit.zephyrproject.org/r/4530 : unified: initial unified kernel implementation
- https://gerrit.zephyrproject.org/r/4507 : sysgen: add --kernel_type argument
- https://gerrit.zephyrproject.org/r/4327 : fix: previously uninitialized variables break DEBUG sanity
- https://gerrit.zephyrproject.org/r/4505 : kernel: add CONFIG_MDEF
- https://gerrit.zephyrproject.org/r/3312 : drivers/crypto: Tinycrypt shim driver
- https://gerrit.zephyrproject.org/r/3311 : include/crypto: Crypto abstraction header
- https://gerrit.zephyrproject.org/r/4524 : unified/test_mail: adapt test to not use sem groups and mem pools
- https://gerrit.zephyrproject.org/r/4531 : unified/build: allow building the unified kernel
- 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/4523 : unified/test_context: adapt test to run on unified kernel
- https://gerrit.zephyrproject.org/r/4522 : unified/tests: tag working tests on unified 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/4517 : unified: include kernel.h via major top-level header files
- https://gerrit.zephyrproject.org/r/4516 : workqueue: use kernel.h for workqueue header file
- 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/4513 : unified/arm: add unified kernel support for ARM arch
- https://gerrit.zephyrproject.org/r/4512 : unified/build: adapt Kbuild for unified kernel
- https://gerrit.zephyrproject.org/r/4511 : unified/doc: Kernel primer for unified kernel
- https://gerrit.zephyrproject.org/r/4510 : arm: only compile gdb stubs when CONFIG_GDB_INFO=y
- https://gerrit.zephyrproject.org/r/3851 : samples/net: Add a sample for a CoAP server
- https://gerrit.zephyrproject.org/r/3853 : MAINTAINERS: add Zoap section
- https://gerrit.zephyrproject.org/r/3848 : lib: Introduce the CoAP implementation for Zephyr
- https://gerrit.zephyrproject.org/r/3850 : samples/net: Add a sample for a CoAP client
- https://gerrit.zephyrproject.org/r/3849 : tests: Add simple CoAP tests
- https://gerrit.zephyrproject.org/r/4532 : fix: net samples no longer include unneeded 802.15.4 files
- https://gerrit.zephyrproject.org/r/4500 : usb: add Kconfig options for CDC ACM VID/PID
- https://gerrit.zephyrproject.org/r/4541 : DONT MERGE
- https://gerrit.zephyrproject.org/r/4457 : DONT MERGE
- https://gerrit.zephyrproject.org/r/4485 : sample: fs: Add tests for fs_truncate and fs_statvfs
- https://gerrit.zephyrproject.org/r/4561 : net: yaip: Use generic memory alignement helper
- https://gerrit.zephyrproject.org/r/4447 : Bluetooth: AVDTP: Module Initialization
- https://gerrit.zephyrproject.org/r/3923 : lib/http: Fix size_t dependency by adding stddef.h header
- https://gerrit.zephyrproject.org/r/4559 : misc: Add an helper for memory alignement
- https://gerrit.zephyrproject.org/r/4560 : net: buf: Use generic memory alignement helper
- https://gerrit.zephyrproject.org/r/3459 : soc: Add soc id and version interface
- https://gerrit.zephyrproject.org/r/4503 : slist: add sys_slist_get() to fetch and remove the head
- https://gerrit.zephyrproject.org/r/4502 : dlist: add static initialization macro
- https://gerrit.zephyrproject.org/r/4504 : slist: add sys_slist_append_list/slist()
- https://gerrit.zephyrproject.org/r/4501 : dlist: add SYS_DLIST_FOR_EACH_NODE/_SAFE

MERGED within last 24 hours:
- https://gerrit.zephyrproject.org/r/4581 : libc: printf: Add support for 'z' length specifier
- https://gerrit.zephyrproject.org/r/4566 : kconfig: Specify ncurses explicitely
- https://gerrit.zephyrproject.org/r/4575 : Bluetooth: Controller: alternate ticker compare set logic
- https://gerrit.zephyrproject.org/r/4578 : build: Use __CYGWIN__ to detect Cygwin
- https://gerrit.zephyrproject.org/r/4577 : Bluetooth: RFCOMM: Modify bt_rfcomm_dlc() to return dlc
- https://gerrit.zephyrproject.org/r/4576 : Bluetooth: GATT: Fix ccc cfg leak
- https://gerrit.zephyrproject.org/r/4573 : driver: spi_flash_w25qxxdv: remove an incorrect erase size definition
- https://gerrit.zephyrproject.org/r/4564 : arm: exc_manage: fix printk format code usage
- https://gerrit.zephyrproject.org/r/4565 : add ARM GCC embedded toolchain to the list of supported toolchains
- https://gerrit.zephyrproject.org/r/4568 : Jenkins: don't send any email when there are not changes in Gerrit.
- https://gerrit.zephyrproject.org/r/4473 : i2c: Fix restart flag in burst read
- https://gerrit.zephyrproject.org/r/4472 : i2c: ksdk: Add shim driver
- https://gerrit.zephyrproject.org/r/4375 : tests: fixed resulting binary name in README
- https://gerrit.zephyrproject.org/r/4253 : net: yaip: ieee802154: Add CSMA-CA non slotted radio protocol support
- https://gerrit.zephyrproject.org/r/4165 : net: drivers: Add a fake ieee802154 radio driver for qemu
- https://gerrit.zephyrproject.org/r/4167 : samples: net: Qemu make utilities update
- https://gerrit.zephyrproject.org/r/4166 : samples: net: Moving the current ieee802154 sample
- https://gerrit.zephyrproject.org/r/4294 : net: drivers: Normalize ieee802154 Kconfig
- https://gerrit.zephyrproject.org/r/4168 : net: samples: Add a simple Qemu sample for testing off-line 802.15.4
- https://gerrit.zephyrproject.org/r/4164 : net: ieee802154: Add basic support for IEEE 802.15.4e on FCF
- https://gerrit.zephyrproject.org/r/4252 : net: yaip: Centralize generic IEEE 802.15.4 radio utility functions
- https://gerrit.zephyrproject.org/r/4251 : net: yaip: ieee802154: Normalize Kconfig
- https://gerrit.zephyrproject.org/r/4291 : net: yaip: Normalize Kconfig and fix it
- https://gerrit.zephyrproject.org/r/4290 : net: yaip: Move IPv4 related Kconfig options to its own file
- https://gerrit.zephyrproject.org/r/4293 : net: drivers: cc2520 ieee802154 drivers select relevant options
- https://gerrit.zephyrproject.org/r/4292 : net: Split debug Kconfig options from legacy to new stack
- https://gerrit.zephyrproject.org/r/4304 : net: Legacy IP stack Kconfig has nothing to do with new stack
- https://gerrit.zephyrproject.org/r/4289 : net: yaip: Move IPv6 related Kconfig options to its own file
- https://gerrit.zephyrproject.org/r/4492 : Bluetooth: tester: Add L2CAP init method
- https://gerrit.zephyrproject.org/r/4466 : Bluetooth: RFCOMM: Implement TX flow control
- https://gerrit.zephyrproject.org/r/3400 : known issues: ignore testcases failures
- https://gerrit.zephyrproject.org/r/3847 : arm: remove dynamic IRQs and exceptions
- https://gerrit.zephyrproject.org/r/4471 : sanitycheck: allow extra arguments to be passed to the build
- https://gerrit.zephyrproject.org/r/3846 : arc: remove deprecated dynamic interrupt implementation
- https://gerrit.zephyrproject.org/r/4458 : verify: prevent checkpatch from verifying -1
- https://gerrit.zephyrproject.org/r/3856 : x86: declare internal API for interrupt controllers
- https://gerrit.zephyrproject.org/r/3845 : x86: remove dynamic interrupts and exceptions
- https://gerrit.zephyrproject.org/r/4548 : Bluetooth: Controller: Switch to Zephyr's hci.h for cmd handling
- https://gerrit.zephyrproject.org/r/3953 : sanitycheck: complain loudly about missing platforms
- https://gerrit.zephyrproject.org/r/3843 : zephyr: remove deprecated dynamic interrupt API
- https://gerrit.zephyrproject.org/r/4554 : Bluetooth: HCI: Add definitions and macros
- https://gerrit.zephyrproject.org/r/4451 : net: uip: Fix compile fail with stats enabled, tcp disabled.
- https://gerrit.zephyrproject.org/r/4376 : Bluetooth: GAP: Support multiple peripheral role connections
- https://gerrit.zephyrproject.org/r/4553 : Bluetooth: HCI: Rename cmd complete struct
- https://gerrit.zephyrproject.org/r/4547 : Bluetooth: Controller: Unify handling of CC and CS
- https://gerrit.zephyrproject.org/r/4546 : Bluetooth: Controller: Unify handling of unknown command
- https://gerrit.zephyrproject.org/r/3844 : test_context: don't test dynamic exceptions
- https://gerrit.zephyrproject.org/r/4535 : kconfig: Use HOST_OS environment variable in Makefile
- https://gerrit.zephyrproject.org/r/3957 : microkernel: remove deprecated task IRQs
- https://gerrit.zephyrproject.org/r/4449 : net: Fix code formatting
- https://gerrit.zephyrproject.org/r/4448 : net: uip: Fix udp_socket_process receive data callback buffer handling.
- https://gerrit.zephyrproject.org/r/4542 : net: contiki: simplerdc: Fix an uninitialized variable warning


Re: Increasing bss section in Zephyr

Sukumar Ghorai
 

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)?

~Sukumar

On Tue, Sep 6, 2016 at 9:39 PM, Boie, Andrew P <andrew.p.boie(a)intel.com> wrote:
Typically the RAM region is defined to be the size of the available RAM on
the target board.



You are in one of two scenarios:

- The size of RAM defined by the build is too small, there is
actually more RAM available, and the board configuration needs to be updated
to the true size

- You need more .bss than there is available RAM on the device, in
which case you need to conserve RAM elsewhere or use a different board.



Unfortunately, the latter is the most likely.

What board is this?

If Arduino 101, RAM between ARC and x86 side is shared with different
regions for each. The default is 55K for x86 and 24K for ARC, with 1K of
shared space. 80K total available. If you don’t need the ARC you could claim
its ram on the x86 side.



Andrew



From: Mahendravarman Rajarao (RBEI/EAA3)
[mailto:Mahendravarman.Rajarao(a)in.bosch.com]
Sent: Monday, September 5, 2016 11:27 AM
To: devel(a)lists.zephyrproject.org
Subject: [devel] Increasing bss section in Zephyr



Hi All



How to Increase the .bss section in Zephyr ?



There is a requirement for my project to have a big size array for 15K

If I declare and compile , getting error as



.bss will not fit in region RAM

Region ‘RAM’ overflowed by 20160 bytes



Any help on this regard is welcome !!



Mahendra


Re: Proposal to streamline GPIO, Pinmux driver API

Piotr Mienkowski <Piotr.Mienkowski@...>
 

I have created a Jira issue: https://jira.zephyrproject.org/browse/ZEP-781

I would like to encourage anyone interested to add Jira comment / watch the issue.


Re: How to handle a board with a dozen SoC's?

Jon Medhurst (Tixy) <tixy@...>
 

On Tue, 2016-09-06 at 16:03 +0000, Boie, Andrew P wrote:
What I did for Nios II (which is a soft-CPU that runs on Altera FPGAs)
is to define each different Nios II configuration as a different soc
in the Zephyr build.

So for example I have the "nios2f-zephyr" soc which is the reference
config. Then another one "nios2-qemu" for the QEMU emulator which has
slightly different settings. Each one has a system.h header file with
all the configuration details. In this case the system.h was generated
by the Altera tools.

See arch/nios2/soc/ for what I mean.
This is assuming that the CPU types you want to support are of a
family of the same basic architecture with different configuration
options.
Well, they are all ARM at least :-). Some v7 some v8 architecture, some
single core, some multi core, some with caches, memory and security
protection areas. Some with DMA.

From looking at the nios stuff, it seems there is a separate board and
soc for each combinations, so in my case 20 socs and 20 boards. :-(

Perhaps I'll end up with some custom makefiles and scripts to generate
all these from some kind of meta config. Though possibly it might be as
simple as one board, one SoC and multiple defconfigs (but zephyr top
level scripts seem to assume one board == one defconfig ??).

For now, I hacked up a couple of board directories and a soc directory
just so I can write and test device drivers, but I'm aware I'll need to
dealing with this properly at some point.

As a slight tangent, I'm also doing other things in 'non-standard'
Zephyr ways for things like drivers, because I can't bring myself to
cut'n'paste Kconfig and code segments to support multiple instances of
drivers (most boards have 5 UARTs and 5 SPI devices).

HTH,
Andrew
Not sure it did, but thanks for reply. :-)

--
Tixy


Daily JIRA Digest

donotreply@...
 

NEW JIRA items within last 24 hours: 1
[ZEP-775] Enable USB CDC by default on Arduino 101 and redirect serial to USB
https://jira.zephyrproject.org/browse/ZEP-775


UPDATED JIRA items within last 24 hours: 1
[ZEP-346] Provide a HTTP library within Zephyr
https://jira.zephyrproject.org/browse/ZEP-346


CLOSED JIRA items within last 24 hours: 1
[ZEP-576] (Won't Do) hello_world app linking failed with zephyr sdk x86 toolchain
https://jira.zephyrproject.org/browse/ZEP-576


RESOLVED JIRA items within last 24 hours: 0


Daily Gerrit Digest

donotreply@...
 

NEW within last 24 hours:
- https://gerrit.zephyrproject.org/r/4552 : build: support pre-built host tools (DO NOT MERGE)
- https://gerrit.zephyrproject.org/r/4550 : samples: move pci tests to tests/
- https://gerrit.zephyrproject.org/r/4548 : Bluetooth: Controller: Switch to Zephyr's hci.h for cmd handling
- https://gerrit.zephyrproject.org/r/4551 : tests: move test code from samples to tests
- https://gerrit.zephyrproject.org/r/4547 : Bluetooth: Controller: Unify handling of CC and CS
- https://gerrit.zephyrproject.org/r/4546 : Bluetooth: Controller: Unify handling of unknown command
- https://gerrit.zephyrproject.org/r/4557 : Bluetooth: BR/EDR Write Class of device
- https://gerrit.zephyrproject.org/r/4561 : net: yaip: Use generic memory alignement helper
- https://gerrit.zephyrproject.org/r/4560 : net: buf: Use generic memory alignement helper
- https://gerrit.zephyrproject.org/r/4559 : misc: Add an helper for memory alignement
- https://gerrit.zephyrproject.org/r/4549 : samples: move spi tests to tests/
- https://gerrit.zephyrproject.org/r/4554 : Bluetooth: HCI: Add definitions and macros
- https://gerrit.zephyrproject.org/r/4553 : Bluetooth: HCI: Rename cmd complete struct
- https://gerrit.zephyrproject.org/r/4555 : Bluetooth: HFP HF: Implementation of SLC
- https://gerrit.zephyrproject.org/r/4545 : Bluetooth: A2DP: Connect and Disconnect
- https://gerrit.zephyrproject.org/r/4541 : DONT MERGE

UPDATED within last 24 hours:
- https://gerrit.zephyrproject.org/r/4166 : samples: net: Moving the current ieee802154 sample
- https://gerrit.zephyrproject.org/r/4167 : samples: net: Qemu make utilities update
- https://gerrit.zephyrproject.org/r/4506 : build: make sysgen take optional command line arguments
- https://gerrit.zephyrproject.org/r/4508 : build: only generate the SSE group for x86
- https://gerrit.zephyrproject.org/r/4507 : sysgen: add --kernel_type argument
- https://gerrit.zephyrproject.org/r/4505 : kernel: add CONFIG_MDEF
- https://gerrit.zephyrproject.org/r/4327 : fix: "uninitialized" variables break DEBUG sanity
- https://gerrit.zephyrproject.org/r/4532 : fix: net samples no longer include unneeded 802.15.4 files
- https://gerrit.zephyrproject.org/r/4503 : slist: add sys_slist_get() to fetch and remove the head
- https://gerrit.zephyrproject.org/r/4341 : Bluetooth: HFP HF: Initialize Handsfree profile
- https://gerrit.zephyrproject.org/r/4375 : tests: fixed resulting binary name in README
- https://gerrit.zephyrproject.org/r/4471 : sanitycheck: allow extra arguments to be passed to the build
- https://gerrit.zephyrproject.org/r/4502 : dlist: add static initialization macro
- https://gerrit.zephyrproject.org/r/4504 : slist: add sys_slist_append_list/slist()
- https://gerrit.zephyrproject.org/r/4447 : Bluetooth: AVDTP: Module Initialization
- https://gerrit.zephyrproject.org/r/4501 : dlist: add SYS_DLIST_FOR_EACH_NODE/_SAFE
- https://gerrit.zephyrproject.org/r/4539 : Bluetooth: tester: Add support for L2CAP send data command
- https://gerrit.zephyrproject.org/r/4376 : Bluetooth: GAP: Support multiple peripheral role connections
- https://gerrit.zephyrproject.org/r/4253 : net: yaip: ieee802154: Add CSMA-CA non slotted radio protocol support
- https://gerrit.zephyrproject.org/r/4165 : net: drivers: Add a fake ieee802154 radio driver for qemu
- https://gerrit.zephyrproject.org/r/3848 : lib: Introduce the CoAP implementation for Zephyr
- https://gerrit.zephyrproject.org/r/4294 : net: drivers: Normalize ieee802154 Kconfig
- https://gerrit.zephyrproject.org/r/4252 : net: yaip: Centralize generic IEEE 802.15.4 radio utility functions
- https://gerrit.zephyrproject.org/r/4168 : net: samples: Add a simple Qemu sample for testing off-line 802.15.4
- https://gerrit.zephyrproject.org/r/4293 : net: drivers: cc2520 ieee802154 drivers select relevant options
- https://gerrit.zephyrproject.org/r/4164 : net: ieee802154: Add basic support for IEEE 802.15.4e on FCF
- https://gerrit.zephyrproject.org/r/3527 : console: shell: Shell enhancement - Support multiple modules
- https://gerrit.zephyrproject.org/r/4466 : Bluetooth: RFCOMM: Implement TX flow control
- https://gerrit.zephyrproject.org/r/4495 : Bluetooth: tester: Add support for L2CAP listen command
- https://gerrit.zephyrproject.org/r/4494 : Bluetooth: tester: Add support for L2CAP disconnect commands
- https://gerrit.zephyrproject.org/r/4493 : Bluetooth: tester: Add support for L2CAP connect command
- https://gerrit.zephyrproject.org/r/4492 : Bluetooth: tester: Add L2CAP init method
- https://gerrit.zephyrproject.org/r/4251 : net: yaip: ieee802154: Normalize Kconfig
- https://gerrit.zephyrproject.org/r/4304 : net: Legacy IP stack Kconfig has nothing to do with new stack
- https://gerrit.zephyrproject.org/r/4292 : net: Split debug Kconfig options from legacy to new stack
- https://gerrit.zephyrproject.org/r/4291 : net: yaip: Normalize Kconfig and fix it
- https://gerrit.zephyrproject.org/r/4290 : net: yaip: Move IPv4 related Kconfig options to its own file
- https://gerrit.zephyrproject.org/r/4289 : net: yaip: Move IPv6 related Kconfig options to its own file
- https://gerrit.zephyrproject.org/r/4248 : net: Fix net_send return value documentation
- https://gerrit.zephyrproject.org/r/4486 : Bluetooth: SDP: Server: Initialize and accept incoming connections
- https://gerrit.zephyrproject.org/r/4457 : DONT MERGE
- https://gerrit.zephyrproject.org/r/3853 : MAINTAINERS: add Zoap section
- https://gerrit.zephyrproject.org/r/3851 : samples/net: Add a sample for a CoAP server
- https://gerrit.zephyrproject.org/r/3850 : samples/net: Add a sample for a CoAP client
- https://gerrit.zephyrproject.org/r/3849 : tests: Add simple CoAP tests
- https://gerrit.zephyrproject.org/r/4540 : Bluetooth: AVDTP: Connect and Disconnect

MERGED within last 24 hours:
- https://gerrit.zephyrproject.org/r/4542 : net: contiki: simplerdc: Fix an uninitialized variable warning
- https://gerrit.zephyrproject.org/r/4556 : Updated nav.awk file to fix yaml indentation.
- https://gerrit.zephyrproject.org/r/4543 : net: yaip: Add a macro to create specific net if instances
- https://gerrit.zephyrproject.org/r/3957 : microkernel: remove deprecated task IRQs
- https://gerrit.zephyrproject.org/r/3844 : test_context: don't test dynamic exceptions
- https://gerrit.zephyrproject.org/r/3843 : zephyr: remove deprecated dynamic interrupt API
- https://gerrit.zephyrproject.org/r/4535 : kconfig: Use HOST_OS environment variable in Makefile
- https://gerrit.zephyrproject.org/r/4491 : net: revert tcpip_poll_tcp() to not require a data_buf
- https://gerrit.zephyrproject.org/r/4448 : net: uip: Fix udp_socket_process receive data callback buffer handling.
- https://gerrit.zephyrproject.org/r/4449 : net: Fix code formatting
- https://gerrit.zephyrproject.org/r/4451 : net: uip: Fix compile fail with stats enabled, tcp disabled.
- https://gerrit.zephyrproject.org/r/4462 : Bluetooth: Controller: Enable all supported LE states
- https://gerrit.zephyrproject.org/r/4534 : Bluetooth: GATT: Fix unaligned accesses


Re: Increasing bss section in Zephyr

Boie, Andrew P
 

Typically the RAM region is defined to be the size of the available RAM on the target board.

You are in one of two scenarios:

- The size of RAM defined by the build is too small, there is actually more RAM available, and the board configuration needs to be updated to the true size

- You need more .bss than there is available RAM on the device, in which case you need to conserve RAM elsewhere or use a different board.

Unfortunately, the latter is the most likely.
What board is this?
If Arduino 101, RAM between ARC and x86 side is shared with different regions for each. The default is 55K for x86 and 24K for ARC, with 1K of shared space. 80K total available. If you don't need the ARC you could claim its ram on the x86 side.

Andrew

From: Mahendravarman Rajarao (RBEI/EAA3) [mailto:Mahendravarman.Rajarao(a)in.bosch.com]
Sent: Monday, September 5, 2016 11:27 AM
To: devel(a)lists.zephyrproject.org
Subject: [devel] Increasing bss section in Zephyr

Hi All

How to Increase the .bss section in Zephyr ?

There is a requirement for my project to have a big size array for 15K
If I declare and compile , getting error as

.bss will not fit in region RAM
Region 'RAM' overflowed by 20160 bytes

Any help on this regard is welcome !!

Mahendra


Re: How to handle a board with a dozen SoC's?

Boie, Andrew P
 

On Fri, 2016-09-02 at 15:46 +0100, Jon Medhurst (Tixy) wrote:
I'm trying to add Zephyr support for a board [1] where the 'SoC' is an
FPGA that can be programmed with a dozen different CPU types and
varying support IP, and I'm wondering how to organise this.
I realised this and $subject may be a bit ambiguous, I meant that the FPGA can
be programmed at any one time with a single CPU type chosen from a range of
a dozen or so. I'm not trying to support multiple CPU and 'SoC' types in a single
Zephyr image at the same time. I'm looking at a separate image for each one.

What I did for Nios II (which is a soft-CPU that runs on Altera FPGAs) is to define each different Nios II configuration as a different soc in the Zephyr build.

So for example I have the "nios2f-zephyr" soc which is the reference config. Then another one "nios2-qemu" for the QEMU emulator which has slightly different settings. Each one has a system.h header file with all the configuration details. In this case the system.h was generated by the Altera tools.

See arch/nios2/soc/ for what I mean.
This is assuming that the CPU types you want to support are of a family of the same basic architecture with different configuration options.

HTH,
Andrew


Re: Increasing bss section in Zephyr

Andy Ross
 

Mahendravarman Rajarao (RBEI/EAA3) wrote:
If The CONFIG_RAM_SIZE - denotes the internal RAM of controller means,
Iam using Atlas peak controller of 80KB SRAM. Even If I declare
CONFIG_RAM_SIZE = 85 in prj.conf file in my project Zephyr.bin is
getting generated
That just means there's no per-SoC checking of linker memory regions.
Clearly there should be, but obviously that doesn't mean that such a
file is going to execute successfully.

You can check how these are used in arch/x86/soc/quark_se/linker.ld if
you're curious. The linker just emits the sections in the RAM memory
region at CONFIG_PHYS_RAM_ADDR and assumes it can use up to
CONFIG_RAM_SIZE kb.

Andy


Re: Increasing bss section in Zephyr

Mahendravarman Rajarao (RBEI/EAA3) <Mahendravarman.Rajarao@...>
 

Hi

Thanks for replying
Please help on the following query

If The CONFIG_RAM_SIZE - denotes the internal RAM of controller means, Iam using Atlas peak controller of 80KB SRAM.
Even If I declare CONFIG_RAM_SIZE = 85 in prj.conf file in my project
Zephyr.bin is getting generated


Please clarify

Thanks
Mahendra

-----Original Message-----
From: Gustavo Lima Chaves [mailto:gustavo.lima.chaves(a)intel.com]
Sent: Tuesday, September 06, 2016 6:54 PM
To: Mahendravarman Rajarao (RBEI/EAA3) <Mahendravarman.Rajarao(a)in.bosch.com>
Cc: devel(a)lists.zephyrproject.org
Subject: Re: [devel] Increasing bss section in Zephyr

* Mahendravarman Rajarao (RBEI/EAA3) <Mahendravarman.Rajarao(a)in.bosch.com> [2016-09-05 18:27:04 +0000]:

Hi All

How to Increase the .bss section in Zephyr ?

There is a requirement for my project to have a big size array for 15K
If I declare and compile , getting error as

.bss will not fit in region RAM
Region 'RAM' overflowed by 20160 bytes

Any help on this regard is welcome !!

Mahendra
Have you taken a look at CONFIG_RAM_SIZE and friends? Last time I dealt with it these were the options I changed.

Regards,

--
Gustavo Lima Chaves
Intel - Open Source Technology Center


Re: Increasing bss section in Zephyr

Gustavo Lima Chaves <gustavo.lima.chaves@...>
 

* Mahendravarman Rajarao (RBEI/EAA3) <Mahendravarman.Rajarao(a)in.bosch.com> [2016-09-05 18:27:04 +0000]:

Hi All

How to Increase the .bss section in Zephyr ?

There is a requirement for my project to have a big size array for 15K
If I declare and compile , getting error as

.bss will not fit in region RAM
Region 'RAM' overflowed by 20160 bytes

Any help on this regard is welcome !!

Mahendra
Have you taken a look at CONFIG_RAM_SIZE and friends? Last time I
dealt with it these were the options I changed.

Regards,

--
Gustavo Lima Chaves
Intel - Open Source Technology Center


ARM _arch_irq_enable should not implicitly unpend IRQs

Chettimada, Vinayak Kariappa
 

Hi,

I am wondering why _arch_irq_enable for ARM unpends the IRQs, and not actually have a separate interfaces to pend and unpend IRQs.

Below is a diff that I want to submit, which removes the call to _NvicIrqUnpend() being made inside _arch_irq_enable. The reasoning is, sometimes an IRQ could be pending and implementations could then enable the ISR at a later time.

Regards,
Vinayak

diff --git a/arch/arm/core/irq_manage.c b/arch/arm/core/irq_manage.c
index 2d34ba5..bef7463 100644
--- a/arch/arm/core/irq_manage.c
+++ b/arch/arm/core/irq_manage.c
@@ -39,16 +39,13 @@ extern void __reserved(void);
*
* @brief Enable an interrupt line
*
- * Clear possible pending interrupts on the line, and enable the interrupt
- * line. After this call, the CPU will receive interrupts for the specified
- * <irq>.
+ * Enable the interrupt. After this call, the CPU will receive interrupts for
+ * the specified <irq>.
*
* @return N/A
*/
void _arch_irq_enable(unsigned int irq)
{
- /* before enabling interrupts, ensure that interrupt is cleared */
- _NvicIrqUnpend(irq);
_NvicIrqEnable(irq);
}


Daily JIRA Digest

donotreply@...
 

NEW JIRA items within last 24 hours: 1
[ZEP-775] Enable USB CDC by default on Arduino 101 and redirect serial to USB
https://jira.zephyrproject.org/browse/ZEP-775


UPDATED JIRA items within last 24 hours: 1
[ZEP-346] Provide a HTTP library within Zephyr
https://jira.zephyrproject.org/browse/ZEP-346


CLOSED JIRA items within last 24 hours: 1
[ZEP-576] (Won't Do) hello_world app linking failed with zephyr sdk x86 toolchain
https://jira.zephyrproject.org/browse/ZEP-576


RESOLVED JIRA items within last 24 hours: 0


Daily Gerrit Digest

donotreply@...
 

NEW within last 24 hours:
- https://gerrit.zephyrproject.org/r/4541 : DONT MERGE
- https://gerrit.zephyrproject.org/r/4540 : Bluetooth: AVDTP: Connect and Disconnect
- https://gerrit.zephyrproject.org/r/4539 : Bluetooth: tester: Add support for l2cap send data command
- https://gerrit.zephyrproject.org/r/4535 : kconfig: Use HOST_OS environment variable in Makefile

UPDATED within last 24 hours:
- https://gerrit.zephyrproject.org/r/3853 : MAINTAINERS: add Zoap section
- https://gerrit.zephyrproject.org/r/3851 : samples/net: Add a sample for a CoAP server
- https://gerrit.zephyrproject.org/r/3850 : samples/net: Add a sample for a CoAP client
- https://gerrit.zephyrproject.org/r/3849 : tests: Add simple CoAP tests
- https://gerrit.zephyrproject.org/r/3848 : lib: Introduce the CoAP implementation for Zephyr
- https://gerrit.zephyrproject.org/r/4327 : fix: "uninitialized" variables break DEBUG sanity
- https://gerrit.zephyrproject.org/r/4457 : DONT MERGE
- https://gerrit.zephyrproject.org/r/4532 : fix: net samples no longer include unneeded 802.15.4 files
- https://gerrit.zephyrproject.org/r/4495 : Bluetooth: tester: Add support for l2cap listen command
- https://gerrit.zephyrproject.org/r/4494 : Bluetooth: tester: Add support for l2cap disconnect commands
- https://gerrit.zephyrproject.org/r/4493 : Bluetooth: tester: Add support for l2cap connect command
- https://gerrit.zephyrproject.org/r/4376 : Bluetooth: GAP: Support multiple peripheral role connections
- https://gerrit.zephyrproject.org/r/4462 : Bluetooth: Controller: Enable all supported LE states
- https://gerrit.zephyrproject.org/r/4492 : Bluetooth: tester: Add l2cap init method
- https://gerrit.zephyrproject.org/r/4463 : power_mgmt: Update Power Management device driver API
- https://gerrit.zephyrproject.org/r/4477 : uart_qmsi: Get the interrupt handling right on ARC
- https://gerrit.zephyrproject.org/r/3527 : console: shell: Shell enhancement - Support multiple modules
- https://gerrit.zephyrproject.org/r/4346 : net: yaip: Initial architecture documentation

MERGED within last 24 hours:
- https://gerrit.zephyrproject.org/r/4534 : Bluetooth: GATT: Fix unaligned accesses
- https://gerrit.zephyrproject.org/r/4490 : Bluetooth: UUID: Add 32bit UUID support
- https://gerrit.zephyrproject.org/r/4479 : Bluetooth: Controller: Measure and use correct stack size


Increasing bss section in Zephyr

Mahendravarman Rajarao (RBEI/EAA3) <Mahendravarman.Rajarao@...>
 

Hi All

How to Increase the .bss section in Zephyr ?

There is a requirement for my project to have a big size array for 15K
If I declare and compile , getting error as

.bss will not fit in region RAM
Region 'RAM' overflowed by 20160 bytes

Any help on this regard is welcome !!

Mahendra


Zephyr API for I2S

Goldman, Michael <michael.goldman@...>
 

Hi all,

I would like to ask about future plans for I2S Zephyr API:


1) When are you planning to release the API?

2) Is it possible to share the code before officially releasing it?

Thanks,
Michael Goldman

---------------------------------------------------------------------
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.


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

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

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]


Daily Gerrit Digest

donotreply@...
 

NEW within last 24 hours:

UPDATED within last 24 hours:
- https://gerrit.zephyrproject.org/r/3922 : lib: Add HTTP support for Zephyr
- https://gerrit.zephyrproject.org/r/3924 : lib/http: Add test-case
- https://gerrit.zephyrproject.org/r/3923 : lib/http: Fix size_t dependency by adding stddef.h header
- https://gerrit.zephyrproject.org/r/4531 : unified/build: allow building the unified kernel
- 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/4511 : unified/doc: Kernel primer for unified kernel
- https://gerrit.zephyrproject.org/r/4524 : unified/test_mail: adapt test to not use sem groups and mem pools
- https://gerrit.zephyrproject.org/r/4530 : unified: initial unified kernel implementation
- https://gerrit.zephyrproject.org/r/4525 : unified/test_pipe: adapt to not use sem groups
- https://gerrit.zephyrproject.org/r/4521 : zperf_shell: add unified kernel string for unified kernel case
- 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 tests on unified kernel as 'unified_capable'
- 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/4517 : unified: include kernel.h via major top-level header files
- https://gerrit.zephyrproject.org/r/4512 : unified/build: adapt Kbuild for unified kernel
- 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/4513 : unified/arm: add unified kernel support for ARM arch
- https://gerrit.zephyrproject.org/r/4515 : atomic: fix bug in ATOMIC_INIT()
- https://gerrit.zephyrproject.org/r/4507 : sysgen: add --kernel_type argument
- https://gerrit.zephyrproject.org/r/4514 : unified/x86: add unified kernel support for x86 arch
- https://gerrit.zephyrproject.org/r/4510 : arm: only compile gdb stubs when CONFIG_GDB_INFO=y
- https://gerrit.zephyrproject.org/r/4509 : arm: add __ASSERT() for stack alignment
- https://gerrit.zephyrproject.org/r/4508 : build: only generate the SSE group for x86
- https://gerrit.zephyrproject.org/r/3312 : drivers/crypto: Tinycrypt shim driver
- https://gerrit.zephyrproject.org/r/3459 : soc: Add soc id and version interface
- https://gerrit.zephyrproject.org/r/4473 : i2c: Fix restart flag in burst read
- https://gerrit.zephyrproject.org/r/4477 : uart_qmsi: Get the interrupt handling right on ARC
- 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/4476 : samples/uart: More boards

MERGED within last 24 hours:

6521 - 6540 of 7909