|
Re: [Zephyr-devel] Using Math function in zephyr
Hi,
It doesn't seem to be working for me. Here's a test program
#include <zephyr.h>
#include <misc/printk.h>
#include <math.h>
void main(void)
{
printk("round up %d \n\r",round(5.7));
Hi,
It doesn't seem to be working for me. Here's a test program
#include <zephyr.h>
#include <misc/printk.h>
#include <math.h>
void main(void)
{
printk("round up %d \n\r",round(5.7));
|
By
ashish.shukla@corvi.com <ashish.shukla@...>
·
#406
·
|
|
Re: [Zephyr-devel] Using Math function in zephyr
Huh, interesting. It works for me in a test program:
#include <zephyr.h>
#include <misc/printk.h>
#include <math.h>
void main(void)
{
printf("round up: %f\n", round(1.9));
Huh, interesting. It works for me in a test program:
#include <zephyr.h>
#include <misc/printk.h>
#include <math.h>
void main(void)
{
printf("round up: %f\n", round(1.9));
|
By
Michael Hope
·
#405
·
|
|
Re: [Zephyr-devel] Using Math function in zephyr
Hi Michael,
After switching to new library, code compiles but it rounds off all the values to 0.
--
Warm regards,
Ashish Shukla
Jr. Embedded Engineer
Research & Development
www.corvi.com
Please
Hi Michael,
After switching to new library, code compiles but it rounds off all the values to 0.
--
Warm regards,
Ashish Shukla
Jr. Embedded Engineer
Research & Development
www.corvi.com
Please
|
By
ashish.shukla@corvi.com <ashish.shukla@...>
·
#404
·
|
|
Re: [Zephyr-devel] Using Math function in zephyr
Hi Ashish. I haven't used this personally, but try switching the libc from the built-in minimal libc to newlib. See http://docs.zephyrproject.org/subsystems/c_library.html for more.
-- Michael
Hi Ashish. I haven't used this personally, but try switching the libc from the built-in minimal libc to newlib. See http://docs.zephyrproject.org/subsystems/c_library.html for more.
-- Michael
|
By
Michael Hope
·
#409
·
|
|
Using Math function in zephyr
Hello everyone !
I'm to use round() function in zephyr. How to include math functions in zephyr ?
--
Warm regards,
Ashish Shukla
Jr. Embedded Engineer
Research & Development
www.corvi.com
Please
Hello everyone !
I'm to use round() function in zephyr. How to include math functions in zephyr ?
--
Warm regards,
Ashish Shukla
Jr. Embedded Engineer
Research & Development
www.corvi.com
Please
|
By
ashish.shukla@corvi.com <ashish.shukla@...>
·
#403
·
|
|
Re: [Zephyr-devel] Confusion about Zephyr ADC API semantics
Hi Jonas,
Thanks for your response! I hope you don't mind I've added back the
users list as well.
I am leaving for holiday break at end of day and so likely won't have
more to say until the new
Hi Jonas,
Thanks for your response! I hope you don't mind I've added back the
users list as well.
I am leaving for holiday break at end of day and so likely won't have
more to say until the new
|
By
Marti Bolivar
·
#402
·
|
|
Problem in I2C interfacing with nrf52840
Hello everyone !!!
I'm trying to interface an EEPROM with nrf52840 using I2C protocol.
For this, I used .../samples/drivers/i2c_fujitsu_fram example, I'm able to read bytes from memory, but I
Hello everyone !!!
I'm trying to interface an EEPROM with nrf52840 using I2C protocol.
For this, I used .../samples/drivers/i2c_fujitsu_fram example, I'm able to read bytes from memory, but I
|
By
ashish.shukla@corvi.com <ashish.shukla@...>
·
#401
·
|
|
Re: Problem in working with Ozone and nRF52840
Thanks,
That solved the issue.
--
Warm regards,
Ashish Shukla
Jr. Embedded Engineer
Research & Development
www.corvi.com
Please consider the environment before printing this e-mail or its
Thanks,
That solved the issue.
--
Warm regards,
Ashish Shukla
Jr. Embedded Engineer
Research & Development
www.corvi.com
Please consider the environment before printing this e-mail or its
|
By
ashish.shukla@corvi.com <ashish.shukla@...>
·
#400
·
|
|
Re: Confusion about Zephyr ADC API semantics
Hello again,
Since about a week has passed by with no response, I assume that the
ADC infrastructure is currently unmaintained (or the maintainers are
on vacation), and will do my best to fix the
Hello again,
Since about a week has passed by with no response, I assume that the
ADC infrastructure is currently unmaintained (or the maintainers are
on vacation), and will do my best to fix the
|
By
Marti Bolivar
·
#399
·
|
|
Re: UART flash
Hi Alan,
Forgot to reply to this:
No, it's the same UART, but you'll need to reboot into MCUboot's serial recovery mode, update the image and then reboot back into the new image.
Regards,
Carles
Hi Alan,
Forgot to reply to this:
No, it's the same UART, but you'll need to reboot into MCUboot's serial recovery mode, update the image and then reboot back into the new image.
Regards,
Carles
|
By
Carles Cufi
·
#398
·
|
|
Re: UART flash
Hi Alan,
By
Carles Cufi
·
#397
·
|
|
Re: UART flash
Cool, thanks.
The purpose of this is to be able to do updates on the same physical
UART on which
the Bluetooth Host-Controller communication is taking place?
The HCI specs actually have this
Cool, thanks.
The purpose of this is to be able to do updates on the same physical
UART on which
the Bluetooth Host-Controller communication is taking place?
The HCI specs actually have this
|
By
Alan
·
#396
·
|
|
Re: Problem in working with Ozone and nRF52840
Hi Ashish,
The “variable is out of scope” is pretty common and I get it all the time too. It usually happens with local variables only, and it’s mostly due to the compiler optimizations. So
Hi Ashish,
The “variable is out of scope” is pretty common and I get it all the time too. It usually happens with local variables only, and it’s mostly due to the compiler optimizations. So
|
By
Carles Cufi
·
#395
·
|
|
Re: UART flash
Hi there Alan,
By
Carles Cufi
·
#394
·
|
|
UART flash
Hi,
we're using Zephyr for providing the HCI for a NRF52 chip.
The example from samples/bluetooth/hci_uart is working
very well.
However the flashing is done using jtag (the integrated Segger chip
on
Hi,
we're using Zephyr for providing the HCI for a NRF52 chip.
The example from samples/bluetooth/hci_uart is working
very well.
However the flashing is done using jtag (the integrated Segger chip
on
|
By
Alan
·
#393
·
|
|
Problem in working with Ozone and nRF52840
Hello everyone !!!
I'm just starting to work with Ozone for hardware debugging of nRF52840 uC.
When I enter a variable named cnt which is declared in main function, it says the variable is out of
Hello everyone !!!
I'm just starting to work with Ozone for hardware debugging of nRF52840 uC.
When I enter a variable named cnt which is declared in main function, it says the variable is out of
|
By
ashish.shukla@corvi.com <ashish.shukla@...>
·
#392
·
|
|
Re: Making use of Hardware debugger available with nrf52840 preview development kit
Hello all,
I got Ozone working for nrf52840 PDK. Thanks a lot.
--
Warm regards,
Ashish Shukla
Jr. Embedded Engineer
Research & Development
www.corvi.com
Please consider the environment before
Hello all,
I got Ozone working for nrf52840 PDK. Thanks a lot.
--
Warm regards,
Ashish Shukla
Jr. Embedded Engineer
Research & Development
www.corvi.com
Please consider the environment before
|
By
ashish.shukla@corvi.com <ashish.shukla@...>
·
#391
·
|
|
Re: Making use of Hardware debugger available with nrf52840 preview development kit
Hi there,
Once the PR below is merged, you will be able to use GDB by simply typing “make debug” if you prefer it to Ozone:
https://github.com/zephyrproject-rtos/zephyr/pull/5435
Hi there,
Once the PR below is merged, you will be able to use GDB by simply typing “make debug” if you prefer it to Ozone:
https://github.com/zephyrproject-rtos/zephyr/pull/5435
|
By
Carles Cufi
·
#390
·
|
|
Re: Making use of Hardware debugger available with nrf52840 preview development kit
Hi there,
You can use both GDB and Ozone using the built-in Segger chip.
Take a look at this page:
http://docs.zephyrproject.org/tools/nordic_segger.html#nordic-segger
Regards,
Hi there,
You can use both GDB and Ozone using the built-in Segger chip.
Take a look at this page:
http://docs.zephyrproject.org/tools/nordic_segger.html#nordic-segger
Regards,
|
By
Carles Cufi
·
#389
·
|
|
Re: Sending notification with MTU size more than 23 bytes - BLE
Hello Johan,
Many thanks for the reply. I tried changing the configuration for CONFIG_BT_L2CAP_TX_MTU to my required size (30 bytes to test)
and used the nRF connect app as client on my
Hello Johan,
Many thanks for the reply. I tried changing the configuration for CONFIG_BT_L2CAP_TX_MTU to my required size (30 bytes to test)
and used the nRF connect app as client on my
|
By
dhguja@gmail.com
·
#388
·
|