Re: Setting and displaying time

2018-12-28 Thread Rohit Gujarathi
culate the > amount of time that has passed and update real-time accordingly. > > > > Will > > > > PS You have to be careful about timer roll-over and dealing with that > but that should be easy. > > > >> On Dec 27, 2018, at 8:57 AM, Christopher Collins

Setting and displaying time

2018-12-26 Thread Rohit Gujarathi
Hi Everyone, I wanted to make a desktop clock using mynewt and am stuck at setting the time. I read the os_timeval part but How do i set time in mynewt and display it human form? I am using the nrf52840 which has a RTC, how can i use that? has anyone used the __DATE__ and __TIME__ macro? Any help

Possible error in documentation

2018-09-23 Thread Rohit Gujarathi
Hello, There might be a possible error in the "Enabling Newt Manager in Your Application" documentation or I might be doing something wrong. Adding the listed packages in pkg.yml gives the following error, *Error: Unsatisfied APIs detected:* ** bootloader, required by: boot/split, mgmt/imgmgr

msec and nsec delay in mynewt OS

2018-09-19 Thread Rohit Gujarathi
Hello all, I am new to mynewt OS and was wondering whats the most optimised way to get accurate msec and nsec delay. I want to be able to call this delay in libraries as well. Thank you

Re: how to print floating points in mynewt

2018-09-05 Thread Rohit Gujarathi
> > baselibc's float printf support is a bit limited. In particular, it > ignores precision specifiers and always prints three digits after the > decimal point. > > Chris > > On Wed, Sep 05, 2018 at 11:00:32PM +0530, Rohit Gujarathi wrote: > > Hi everyone, >

how to print floating points in mynewt

2018-09-05 Thread Rohit Gujarathi
Hi everyone, I am trying to print floating point in mynewt using *console_printf("%f",floating_var)* but i am unable to do so. I read that the baselibc does not support floating point, so I tried removing the libc/baselibc from pkg.deps: in pkg.yml so that the compiler uses newlib but then i hit t

loading/debugging using BMP

2018-08-04 Thread Rohit Gujarathi
Hello, I am new to mynewt and wanted to know if there is a shell script or a BSP made by someone to use Black magic probe with nrf52832. I can upload hex and elf files using the gdb server of BMP. but i wanted to know if there is support in newt using the "newt load" command. Thanks for your hel