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 and
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 crashes on sysinit()
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
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 definitions?
Well, it
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!
> I suppose it cann
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 definition that made
it
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 bot
Just a short update.
I've bought nrf52dk and build lora_app_shell for this target - still crashes.
Tried loraping app - crashes on both nrf devkits. Slinky works fine on both,
tried btshell app on nrf52dk - it works. Updated SX1276 SPI pins according to
bsp.c and updated syscfg with SX1276_SPI
> On Nov 30, 2017, at 1:51 AM, K Dmitry wrote:
>
> 29.11.2017, 21:34, "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()?
>
> Looks like it crashes before reaching main:
> (gdb) load
> Loading
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 irqs.
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 wan
29.11.2017, 21:34, "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()?
Looks like it crashes before reaching main:
(gdb) load
Loading section .text, size 0x119a8 lma 0x8020
Loading section .ARM.exid
Actually, TIMER_3 is not the correct timer to use. The lora code currently does
not use the RTC timer so you need a different timer to run lora. I would use
TIMER_2 to do this for the nrf51.
I also presume that you found the definitions for the various GPIO that connect
the sx1276 to the main c
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, in
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
syscfg=BASELIBC_ASSERT_FILE_LINE=1
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 is it
>> crashing?
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 define few more pins and
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 assert(err
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 without SX1276 actually c
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 r1:0
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, 2017,
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
Driv
22 matches
Mail list logo