Re: Cannot build lora_app_shell

2017-12-08 Thread will sanfilippo
I should have explained this in a bit more detail before. Sorry about that. The code is crashing on the nrf51 because it is attempting to initialize too many gpio irqs. The issue with the code is that it can support both FSK modes and lora modes. Two of those interrupts are not used for lora

Re: Cannot build lora_app_shell

2017-12-08 Thread K Dmitry
01.12.2017, 20:34, "will sanfilippo" : > Something does not quite make sense I have to say. Where it was crashing was > in a very odd place; I can’t imagine different pins doing anything. > I've tried to trace it again on nrf51 and here is what I got. App gets to main() and

Re: Cannot build lora_app_shell

2017-12-01 Thread will sanfilippo
Something does not quite make sense I have to say. Where it was crashing was in a very odd place; I can’t imagine different pins doing anything. I also have to apologize for not being a bit more helpful in regards to getting the code running on the nrf51. It is quite possible to do so. The lora

Re: Cannot build lora_app_shell

2017-12-01 Thread K Dmitry
01.12.2017, 13:11, "Fabio Utzig" : > Ah, sorry I might have missed something, but you wrote "I've bought > nrf52dk and build lora_app_shell for this target - still crashes." and > "lora app still crashes" at the end. Then it is working now and it was > just a matter of pin

Re: Cannot build lora_app_shell

2017-12-01 Thread Fabio Utzig
On Fri, Dec 1, 2017, at 08:02 AM, K Dmitry wrote: > > > 01.12.2017, 12:50, "Fabio Utzig" : > > Do you mind attaching the output of "newt target config show > > "? I want to try reproducing the bug here. > > Guess there is no point in it any more. App finally runs on nrf52dk!

Re: Cannot build lora_app_shell

2017-12-01 Thread K Dmitry
01.12.2017, 12:50, "Fabio Utzig" : > Do you mind attaching the output of "newt target config show > "? I want to try reproducing the bug here. Guess there is no point in it any more. App finally runs on nrf52dk! I suppose it cannot run on nrf51, but was it incorrect pin

Re: Cannot build lora_app_shell

2017-12-01 Thread Fabio Utzig
Do you mind attaching the output of "newt target config show "? I want to try reproducing the bug here. On Fri, Dec 1, 2017, at 07:39 AM, K Dmitry wrote: > Just a short update. > > I've bought nrf52dk and build lora_app_shell for this target - still > crashes. Tried loraping app - crashes on

Re: Cannot build lora_app_shell

2017-11-30 Thread will sanfilippo
I was not able to reproduce your exact problem but there is an issue using the nrf51 with the sx1276 driver as it currently exists. The sx1276 code is attempting to install a number of gpio irqs. The nrf51 only allows 4 of them so the code will assert when trying to enable more than 4 gpio

Re: Cannot build lora_app_shell

2017-11-30 Thread will sanfilippo
Well, it looks like it is crashing in os_init() which is very odd at the call to os_arch_os_init() assuming I am reading your backtrace correctly and my line #’s and yours match. One thing about the SPI pins: those -D variables you changed are used by the nordic SDK and are not the ones you

Re: Cannot build lora_app_shell

2017-11-29 Thread marko kiiskila
I don’t think the system is even booting properly. If you run it under debugger, can you verify that you’re not reaching main()? Here’s few things that you should look at: TIMER_4 does not exist with the BSP you’re using. So you could try adjusting LORA_MAC_TIMER_NUM to 3, and saying TIMER_3=1,

Re: Cannot build lora_app_shell

2017-11-29 Thread K Dmitry
I've connected SX1276 with some wires but not sure if connection is good. Also I've added debug info: $ newt target show targets/nrf51lora_app app=@apache-mynewt-core/apps/lora_app_shell bsp=@apache-mynewt-core/hw/bsp/nrf51dk build_profile=debug

Re: Cannot build lora_app_shell

2017-11-29 Thread will sanfilippo
Could you also tell us what your target looks like: newt target show Thanks > On Nov 29, 2017, at 8:26 AM, Christopher Collins wrote: > > On Wed, Nov 29, 2017 at 07:43:20AM -0800, will sanfilippo wrote: >> I doubt it was ever tested with no sx1276 actually connected. Where

Re: Cannot build lora_app_shell

2017-11-29 Thread Christopher Collins
On Wed, Nov 29, 2017 at 07:43:20AM -0800, will sanfilippo wrote: > I doubt it was ever tested with no sx1276 actually connected. Where is it > crashing? What function is at 0x81bc? > > > On Nov 29, 2017, at 6:20 AM, K Dmitry wrote: > > > > Thanks! That helped. I had to

Re: Cannot build lora_app_shell

2017-11-29 Thread K Dmitry
This is what objdump shows for 0x81bc: 81bc g F .text 000e hal_system_init This is what I got from gdb: os_init (main_fn=0x84d5 ) at repos/apache-mynewt-core/kernel/os/src/os.c:183 183 os_dev_reset(); (gdb) 185 err = os_arch_os_init(); (gdb) 186

Re: Cannot build lora_app_shell

2017-11-29 Thread will sanfilippo
I doubt it was ever tested with no sx1276 actually connected. Where is it crashing? What function is at 0x81bc? > On Nov 29, 2017, at 6:20 AM, K Dmitry wrote: > > Thanks! That helped. I had to define few more pins and was able to build app. > Now I'm trying to test it

Re: Cannot build lora_app_shell

2017-11-29 Thread K Dmitry
Thanks! That helped. I had to define few more pins and was able to build app. Now I'm trying to test it without SX1276 actually connected, but looks like app crashes: 00 ICSR:0x00421002 00 Assert @ 0xfb63 00 Unhandled interrupt (2), exception sp 0x200013c0 00 r0:0x

Re: Cannot build lora_app_shell

2017-11-29 Thread Fabio Utzig
Hello, The telee02 has a dependency on one of the LoRa drivers. If you look at "hw/bsp/telee02/pkg.yml" you'll see: pkg.deps.LORA_NODE: - hw/drivers/lora/sx1276 the nrf51dk doesn't have this dependency. You would need to add it yourself to satisfy the api requirements. On Wed, Nov 29,

Cannot build lora_app_shell

2017-11-29 Thread K Dmitry
Hello! I'm trying to build lora_app_shell using tutorial (https://mynewt.apache.org/latest/os/tutorials/lora/lorawanapp/) but build fails: $ newt build nrf51lora_app Building target targets/nrf51lora_app Error: Unsatisfied APIs detected: * lora_node_driver, required by: net/lora/node