Git Product home page Git Product logo

Comments (10)

trond-snekvik avatar trond-snekvik commented on August 16, 2024

Hi, error code 12 is NRF_ERROR_DATA_SIZE, and in this case, this means that the advertisement length exceeds the advertisement 31 byte maximum. I don't have the numbers in front of me, but I assume that the S130 attempts to add more auxiliary data to the advertisement than the S110 does. Does removing (or shortening) the name of the device fix your problem? Are you able to see where in the ble_advdata_set() procedure (or its subprocedures) the error originates?

from nrf51-ble-bcast-mesh.

itrs avatar itrs commented on August 16, 2024

no, this is not cause of the issue. the issue is the ble_adv_data is totally corrupted somewhere. (checked content and there are meaningless fields). I can't find any control path doing this so I assume something like memory overflow.

Is there anyone have tried using bcast-mesh with S130 stack ?
Any example are welcome.

from nrf51-ble-bcast-mesh.

trond-snekvik avatar trond-snekvik commented on August 16, 2024

Could you post the resulting ble_adv_data as it is when you get the crash?

from nrf51-ble-bcast-mesh.

VonRehberg avatar VonRehberg commented on August 16, 2024

Hey guys,

I wondern how you were able to utilize rbc_mesh with softdevice s130 at all!?
When trying to run the sample code on s110 everything works fine. But whenever I flash softdevice s130 and switch all code references accordingly, nothing gets executed and I'm unable to debug.
Am I missing something?

Thanks in advance,
Joschi

from nrf51-ble-bcast-mesh.

trond-snekvik avatar trond-snekvik commented on August 16, 2024

The S130 v1.0 has been tested with the SDK8-branch, and should work if configured correctly. Did you change the scatter-file (for gcc) or the target-address dialog in Keil? The S130 is differently sized than the S110, and the application start address must be different.

from nrf51-ble-bcast-mesh.

VonRehberg avatar VonRehberg commented on August 16, 2024

Thanks for your fast reply.
Yes I changed it in Keil, but I'm not sure whether it is correct as I always have trouble finding the correct addresses (I'm new to this ;-) )
Currently I'm using IROM start address 0x1C000 and size 0x24000
For IRAM I'm using 0x20002800 and size 0x5800.
Is that correct?

from nrf51-ble-bcast-mesh.

trond-snekvik avatar trond-snekvik commented on August 16, 2024

I think your IROM address is off. The S130 Specification (pdf-warning!), chapter 10.1 gives you the correct offsets. Try 0x20000 instead of 0x1C000, and size 0x20000.
I think your RAM-offset is alright though.

from nrf51-ble-bcast-mesh.

VonRehberg avatar VonRehberg commented on August 16, 2024

Thanks for your help!
Unfortunately nothing has changed. Maybe I messed around to much.
I think I will start over from the examples this evening and try to switch from S110 to S130.

from nrf51-ble-bcast-mesh.

trond-snekvik avatar trond-snekvik commented on August 16, 2024

Hm, maybe. If that doesn't help, try starting the program in debug mode in Keil, and set breakpoints in your app_error_handler() and HardfaultHandler(), and see if they're hit. Once initialized, the framework is very sensitive to timing, and will crash if you try to execute after hitting breakpoints or any code stepping, so be careful. Report back with any errors, and I'll see what I can do.

from nrf51-ble-bcast-mesh.

daviddedwin avatar daviddedwin commented on August 16, 2024

The S130 v1 and v2 and the bcast mesh should work together. Start with an S130 peripheral project and then add the mesh to it.

from nrf51-ble-bcast-mesh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.