On Thu, Mar 30, 2017 at 6:08 PM, marko kiiskila <[email protected]> wrote:
> Hi Amit,
>
> if you want to build without OS, take a look at
> apps/boot/syscfg.yml:syscfg.vals
Thank you Marko for the pointer.
On a related note, I noticed today that my simple blinky example
that uses Nordic's peripheral library, along with the mynewt RTOS
seem to be crashing. Logs below:
[amit@discworld mynewt-nrf52-prph]$ newt debug my_blinky
[/home/amit/Documents/devel/ble/distrib/mynewt-nrf52-prph/repos/apache-mynewt-core/hw/bsp/nrf52dk/nrf52dk_debug.sh
/home/amit/Documents/devel/ble/distrib/mynewt-nrf52-prph/repos/apache-mynewt-core/hw/bsp/nrf52dk
/home/amit/Documents/devel/ble/distrib/mynewt-nrf52-prph/bin/targets/my_blinky/app/apps/blinky/blinky]
Debugging
/home/amit/Documents/devel/ble/distrib/mynewt-nrf52-prph/bin/targets/my_blinky/app/apps/blinky/blinky.elf
GNU gdb (GNU Tools for ARM Embedded Processors) 7.8.0.20150604-cvs
...
...
Reading symbols from
/home/amit/Documents/devel/ble/distrib/mynewt-nrf52-prph/bin/targets/my_blinky/app/apps/blinky/blinky.elf...done.
0x0000856a in nrf_delay_us (number_of_us=999) at
repos/mynewt_nordic/hw/mcu/nordic_sdk/src/ext/nRF5_SDK_11.0.0_89a8197/components/drivers_nrf/delay/nrf_delay.h:170
170 __ASM volatile (
(gdb) b apps/blinky/src/main.c:57
Breakpoint 1 at 0x8436: file apps/blinky/src/main.c, line 57.
(gdb) c
Continuing.
Breakpoint 1, main (argc=<optimized out>, argv=<optimized out>) at
apps/blinky/src/main.c:59 <-- system reset probably
59 ++g_task1_loops;
(gdb) list
54
55 g_led_pin = LED_BLINK_PIN;
56 hal_gpio_init_out(g_led_pin, 1);
57
58 while (1) {
59 ++g_task1_loops;
60
61 /* Wait one second.
62 *
63 * XXX: Invoke Nordic's defined method instead.
(gdb) c
Continuing.
Breakpoint 1, main (argc=<optimized out>, argv=<optimized out>) at
apps/blinky/src/main.c:59 <-- once again a reset seem to have occurred
59 ++g_task1_loops;
With this simple blinky app, I was trying to see If I can use the
Nordic's peripheral library along with Mynewt core/Mynewt RTOS.
I mentioned [1], this somedays back in the dev-mailing list.
Questions:
1: How can I debug this further ? I've used gdb, but not much in past.
2: Is such a approach (using Nordic's peripheral library) with mynewt
core is indeed okay ? For example, I was interested in trying out
Nordic's PPI examples, but couldn't find PPI related APIs under,
Mynewt's core repo and hence, thought of using this approach.
Lastly, If someone wants to try this setup, then please follow this [2]
readme; the code is hosted on github.
[1]
http://mail-archives.apache.org/mod_mbox/incubator-mynewt-dev/201703.mbox/raw/%3cCAOUxTKOmit07kodpSt-=iozu5xm_h44xyvwsmakrtnazz2p...@mail.gmail.com%3e/
[2] https://github.com/bartledan/mynewt-nrf52-prph/blob/master/README.md
Thanks,
Amit
--
Sent from Bahamas, while drinking chi-chi and piƱa colada.