|
Re: Logging with a string via %s
Such a "sharp tool" should at least not look exactly like the slow but safe version used absolutely everywhere else.
http://www.catb.org/~esr/writings/taouu/html/ch01s03.html#rule-surprise
On the
Such a "sharp tool" should at least not look exactly like the slow but safe version used absolutely everywhere else.
http://www.catb.org/~esr/writings/taouu/html/ch01s03.html#rule-surprise
On the
|
By
Marc Herbert
·
#5981
·
|
|
Re: Logging with a string via %s
Hi,
I think what confused me is that I was reading about the ‘improved logging’ from this guide:https://foundries.io/insights/2018/08/14/zephyr-logging-part-2/ which doesn’t mention anything
Hi,
I think what confused me is that I was reading about the ‘improved logging’ from this guide:https://foundries.io/insights/2018/08/14/zephyr-logging-part-2/ which doesn’t mention anything
|
By
lairdjm
·
#5980
·
|
|
Re: Logging with a string via %s
For an operating system that aims to support various functional safety certifications, asynchronous rendering of %s is a terrible idea.
I think %s capability should be dropped from the logger’s
For an operating system that aims to support various functional safety certifications, asynchronous rendering of %s is a terrible idea.
I think %s capability should be dropped from the logger’s
|
By
Boie, Andrew P
·
#5979
·
|
|
Re: Logging with a string via %s
Hi,
To optimize time of log processing message construction is deferred. For this reason you cannot use arrays that will not live long enough for logger thread to see them.
In other words you can
Hi,
To optimize time of log processing message construction is deferred. For this reason you cannot use arrays that will not live long enough for logger thread to see them.
In other words you can
|
By
pawel.dunaj@...
·
#5978
·
|
|
Re: [NRF52840] GPIO 1 problem
Hi,
NRF_GPIO_PIN_MAP will effectively change pin number from 6 to (32+6). This would be ok if you use nrfx but when you use Zephyr GPIO API you should use pin id as is. So you should write to
Hi,
NRF_GPIO_PIN_MAP will effectively change pin number from 6 to (32+6). This would be ok if you use nrfx but when you use Zephyr GPIO API you should use pin id as is. So you should write to
|
By
pawel.dunaj@...
·
#5977
·
|
|
Upcoming Event: Zephyr Project: Dev Meeting - Thu, 05/16/2019 8:00am-9:00am, Please RSVP
#cal-reminder
Reminder: Zephyr Project: Dev Meeting
When: Thursday, 16 May 2019, 8:00am to 9:00am, (GMT-07:00) America/Los Angeles
Where:https://zoom.us/j/993312203
An RSVP is requested. Click here to
Reminder: Zephyr Project: Dev Meeting
When: Thursday, 16 May 2019, 8:00am to 9:00am, (GMT-07:00) America/Los Angeles
Where:https://zoom.us/j/993312203
An RSVP is requested. Click here to
|
By
devel@lists.zephyrproject.org Calendar <devel@...>
·
#5976
·
|
|
[NRF52840] GPIO 1 problem
Hi,
I'm trying to write a value to a GPIO port 1 on a custom board and to pca_10056 and I'm getting nothing on the output. On GPIO port 0 it works properly. My code has no secrets, I'm using blinky
Hi,
I'm trying to write a value to a GPIO port 1 on a custom board and to pca_10056 and I'm getting nothing on the output. On GPIO port 0 it works properly. My code has no secrets, I'm using blinky
|
By
Felipe Gabardo Gonçalves <felipe@...>
·
#5975
·
|
|
Re: Logging with a string via %s
Hi,
There’s also a log_strdup() API to deal with this issue.
Johan
Hi,
There’s also a log_strdup() API to deal with this issue.
Johan
|
By
Johan Hedberg
·
#5974
·
|
|
Re: Logging with a string via %s
Hi Stefan,
Brilliant, didn’t think of that, all working now, thank you.
Thanks,
Jamie
From: devel@... <devel@...> On Behalf Of Stefan Jaritz via Lists.Zephyrproject.Org
Hi Stefan,
Brilliant, didn’t think of that, all working now, thank you.
Thanks,
Jamie
From: devel@... <devel@...> On Behalf Of Stefan Jaritz via Lists.Zephyrproject.Org
|
By
lairdjm
·
#5973
·
|
|
Re: Logging with a string via %s
Hey Lairdjm,
Depending on you logging setup, the log of the string is done inside the "LOG_DBG" command or later.
Later means, that your main function was already left
Hey Lairdjm,
Depending on you logging setup, the log of the string is done inside the "LOG_DBG" command or later.
Later means, that your main function was already left
|
By
Stefan Jaritz
·
#5972
·
|
|
Re: Logging with a string via %s
> sprintf(baTmpBuf, "%s", "ffffffff");?
Using that works fine, it just doesn’t like it when a variable is used.
THIS MESSAGE, ANY ATTACHMENT(S), AND THE INFORMATION CONTAINED HEREIN MAY BE
> sprintf(baTmpBuf, "%s", "ffffffff");?
Using that works fine, it just doesn’t like it when a variable is used.
THIS MESSAGE, ANY ATTACHMENT(S), AND THE INFORMATION CONTAINED HEREIN MAY BE
|
By
lairdjm
·
#5971
·
|
|
Re: Logging with a string via %s
sprintf(baTmpBuf, "%s", "ffffffff"); ?
---Original---
From: "lairdjm"<jamie.mccrae@...>
Date: Wed, May 15, 2019 18:52 PM
To: "devel@..."<devel@...>;
Subject: [Zephyr-devel] Logging with a string
sprintf(baTmpBuf, "%s", "ffffffff"); ?
---Original---
From: "lairdjm"<jamie.mccrae@...>
Date: Wed, May 15, 2019 18:52 PM
To: "devel@..."<devel@...>;
Subject: [Zephyr-devel] Logging with a string
|
By
"K.I.R.A.
·
#5970
·
|
|
Logging with a string via %s
Hi,
I’m seeing an issue whereby I am unable to log strings using LOG_DBG() and %s format, for a quick example I modified the hello world sample to enable logging and change the code to
Hi,
I’m seeing an issue whereby I am unable to log strings using LOG_DBG() and %s format, for a quick example I modified the hello world sample to enable logging and change the code to
|
By
lairdjm
·
#5969
·
|
|
Re: #ble Refresh advertising data after disconnect
#ble
Hi Robert,
You could try using BT_LE_ADV_OPT_ONE_TIME with bt_le_adv_start(). That should ensure that the stack doesn’t automatically restart advertising after a disconnection event.
Johan
Hi Robert,
You could try using BT_LE_ADV_OPT_ONE_TIME with bt_le_adv_start(). That should ensure that the stack doesn’t automatically restart advertising after a disconnection event.
Johan
|
By
Johan Hedberg
·
#5968
·
|
|
Upcoming Event: Zephyr Project: APIs - Tue, 05/14/2019 9:00am-10:00am, Please RSVP
#cal-reminder
Reminder: Zephyr Project: APIs
When: Tuesday, 14 May 2019, 9:00am to 10:00am, (GMT-07:00) America/Los Angeles
Where:https://zoom.us/j/177647878
An RSVP is requested. Click here to
Reminder: Zephyr Project: APIs
When: Tuesday, 14 May 2019, 9:00am to 10:00am, (GMT-07:00) America/Los Angeles
Where:https://zoom.us/j/177647878
An RSVP is requested. Click here to
|
By
devel@lists.zephyrproject.org Calendar <devel@...>
·
#5967
·
|
|
#ble Refresh advertising data after disconnect
#ble
In disconnect callback event I was try to update advertising data but function "bt_le_adv_update_data" return with -11 (error code).
As I understand BLE stack start to advwrise after disconnect
In disconnect callback event I was try to update advertising data but function "bt_le_adv_update_data" return with -11 (error code).
As I understand BLE stack start to advwrise after disconnect
|
By
robert.konc@...
·
#5966
·
|
|
Re: [Zephyr Main] WEST File Initialization Problem
Thank you for your help. I have successfully installed Zephyr.
Now basically i want to do project in Zephyr and will use ReNode for simulation purposes. As i am quite new in this area. I have already
Thank you for your help. I have successfully installed Zephyr.
Now basically i want to do project in Zephyr and will use ReNode for simulation purposes. As i am quite new in this area. I have already
|
By
M Rizwan Ghori <rizwanghori@...>
·
#5965
·
|
|
Re: More apps sharing the same building system
#nrf52840
Hi,
Do you mean by "apps" to create multiple images for multiple boards,
or multiple threads in one image?
Zephyr is not like Linux; meaning that you don't have multiple apps
running on a board.
Hi,
Do you mean by "apps" to create multiple images for multiple boards,
or multiple threads in one image?
Zephyr is not like Linux; meaning that you don't have multiple apps
running on a board.
|
By
Yasushi SHOJI
·
#5964
·
|
|
STM32-Nucleo-F411RE SPI1 NSS pin pull-up
Hi,
I'm using the SPI1 bus in master mode on a STM32-Nucleo-F411RE board with the following small app:
https://github.com/ideak/zephyr-stm32-spi/blob/master/src/main.c
Things work fine, except I had
Hi,
I'm using the SPI1 bus in master mode on a STM32-Nucleo-F411RE board with the following small app:
https://github.com/ideak/zephyr-stm32-spi/blob/master/src/main.c
Things work fine, except I had
|
By
imre.deak@...
·
#5963
·
Edited
|
|
Request for help in interfacing ENC28J60 to PCA10056
#nrf52840
Hi,
I am trying to interface ENC28J60 module to PCA10056(NRF52840). Below are my pin configurations:
================= ===================================
NRF52840 PCA10056 ENC28J60 (pin numbers
Hi,
I am trying to interface ENC28J60 module to PCA10056(NRF52840). Below are my pin configurations:
================= ===================================
NRF52840 PCA10056 ENC28J60 (pin numbers
|
By
giriprasad@...
·
#5962
·
|