Coder Social home page Coder Social logo

Comments (6)

dhalbert avatar dhalbert commented on June 9, 2024 1

I have reproduced this problem. with a simplified version of your test programs on a Feather and ItsyBitsy nRF52840 I see that it's looping forever in ble_drv_add_event_handler_entry(). I think this may be due to insufficient locking around a data structure, but need to look further.

EDIT: it was a gc problem.

from circuitpython.

gkecskes78 avatar gkecskes78 commented on June 9, 2024

The following code I am using on the other dongle to connect and activate UART:
main.zip

from circuitpython.

dhalbert avatar dhalbert commented on June 9, 2024

If you remove the PWMOut use, does it make any difference?
Do you only have nRF52840 dongles to try, or do you also have, say, a Feather nRF52840? The latter uses external flash for CIRCUITPY.

Style note:
if x: in this context can be used instead of if x == True:. It is idiomatic in Python. Similarly, one would say if not x: instead of if x==False:.

from circuitpython.

gkecskes78 avatar gkecskes78 commented on June 9, 2024

Thanks for the style note hint, I updated my code accordingly.
Unfortunately no difference without PWMOut.
We are working with nordic dongles(PCA10059) only but we have some nordic DK (PCA10056) as well. Could it be helpful to check on them ?

from circuitpython.

dhalbert avatar dhalbert commented on June 9, 2024

We are working with nordic dongles(PCA10059) only but we have some nordic DK (PCA10056) as well. Could it be helpful to check on them ?

Yes, please try. The CircuitPython build for PCA10059 uses on-board external flash chips for CIRCUITPY. If there is some issue with the chip-internal-flash CIRCUITPY code, then that would be a clue and differentiator.

from circuitpython.

gkecskes78 avatar gkecskes78 commented on June 9, 2024

I can confirm the same behaviour on PCA10056, CP version 9.0.4 (pca10056_bootloader-0.8.3_s140_6.1.1) and without PWMOut :(
Let me know if I can help further.

from circuitpython.

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.