Comments (16)
WOW. Somebody is actually playing with this :-). Sweet.
So I ended up buying a DK board (one to help me write the code, and two to make the install easier on the real board). But in the end I think a cheap jlink programmer will do as well.
I ended up making a cable (like this one - https://devzone.nordicsemi.com/attachment/e417459405c7675236d8842c0015b72f) to do my flashing.
SCK and SDO are labeled on the BLE board, and then VCC and GND are the other connections (that are labeled as well).
When the DK sees the GND Detect it programs the external chip vs the internal one.
Hope that helps. Let me know if you run into anything else.
from diydragy.
e417459405c7675236d8842c0015b72f I ended up making a cable (like this one - https://devzone.nordicsemi.com/attachment/e417459405c7675236d8842c0015b72f) to do my flashing.
Link no longer works(
from diydragy.
Heck yeah man! Really was excited to find your Tesla post and then all of this! Figured what better way to get more involved with BLE and software meshing (ios app data pulling, etc).
Do you know if this cable would work as a DK?
https://www.sparkfun.com/products/15345
I can grab that right down the road if so!
Barring that, they also have:
https://www.sparkfun.com/products/15025 (Can I use a 840 board to program an 832?)
or do I need to use an FTDI breakout and this:
https://www.sparkfun.com/products/13990
Forgive the simple questions please :)
I'll talk with Sparkfun tomorrow to see if they can help me understand as well.
Really appreciate any and all help man! Very excited for this!
from diydragy.
So the j-link edu might work. It has the SWDIO SWCLK pins that are needed. Also looking through a lot of the documentation for it there is a lot of references for Segger stuff. So thats encouraging.
I don't know if the nRF52840 board will work. It's a different chip and I don't know enough to know if it's compatible.
The nRF52832 board is actually just the same as the board you already have. It just has broken out more of the pins. There isn't any of the programming circuitry.
As far as I know you can't program these chips serially (like with a FTDI like an arduino). So I think in this situation the j-link board is your best bet.
from diydragy.
Awesome, really appreciate the follow up! Thank you for clarifying! Sparkfun said the same, going to grab that jlink cable over the weekend!
from diydragy.
Sweet.
Looking forward to hearing how things go with it.
from diydragy.
Hey! So I finally got my cable setup (long story) and can program the chip finally. I am using the edu mini and it does work.
However, I am still very lost as to the software end on this.
I tried to compile the DIYDragy.emProject once I replaced the path name and got two errors:
I don't suppose you'd be willing to do a little more hand holding? No worries if not.
I can connect to the device via Jlink, but I have yet to be able to get it to show up on any bluetooth scanner?
I definitely went in over my head on this and it shows, haha.
Thanks regardless for your time and efforts!
from diydragy.
Hmm... That seems like a build problem in Segger. What version of Segger are you using? I can see if I can try to get it building. I haven't installed stuff on my new laptop so its a good test bed to see whats up.
from diydragy.
@pyjamasam is there any other place to buy all the components other then aliexpress? not trying to wait two-three months for all the parts.
from diydragy.
@pyjamasam is there any other place to buy all the components other then aliexpress? not trying to wait two-three months for all the parts.
Doing some quick googling it looks like a bunch of the parts are available in from different suppliers. The big keys are the ublox compatible 10hz gps and the BLE board thats a nRF52832 chip.
I was going for cheap alternatives when I was initially building stuff, so waiting for aliexpress was the way I went. If you are ok with spending a little more there are options I am sure.
from diydragy.
https://www.adafruit.com/product/3406
will these work?
I don't see the VDD out on these boards? Also don't see Pin out 6 or 8 on the BLE board. If the GPS has the 3.3v out then do I still need the regulator?
from diydragy.
GPS looks fine. It says it supports UBX binary output as well as 10HZ (looks like even 18HZ with only a single satellite constellation).
The adafruit board is the right chipset, and it has the pins needed exposed (tx/rx) as well as a charge controller, and voltage regulator.
The downside is that I don't know if the code for the nRF board that is posted in this repo will be easily loadable. Adafruit's board has a bootloader loaded that lets you serially program the board using the arduino toolsets. That actually makes it easier slightly. But you'll more then likely have to re-write the board firmware based off of the example they provide (https://learn.adafruit.com/bluefruit-nrf52-feather-learning-guide/ble-uart-controller).
The board firmware is really just a BLE to UART bridge. There isn't any smarts with regards to speed and launches and anything else. All that is done in the iOS app. So it's all technically possible. But it will require work.
This board (https://www.adafruit.com/product/4077) is closer to the board I had listed in the BOM. But it required an external programmer and then all the battery and voltage stuff. But it would be a drop in with regards to the code posted in this repository.
OHHH. As I read more you can put a header in the middle of the feather board that will expose the SWD programming pins... That suddenly makes it possible to use the same external j-link programmer (https://www.adafruit.com/product/3571) to program it with my code here. So maybe thats a good option. Makes all the power stuff easier to work with since its all on board, and then you just need a board and programmer and GPS.
Hopefully this all helps. I have been kinda rambling. Sorry.
from diydragy.
Its been a while with no updates.... Closing this
from diydragy.
@sleepiestdave were you able to figure things out?
from diydragy.
@sleepiestdave are you able to upload diagram how you managed to connect Jlink to BLE?
from diydragy.
https://devzone.nordicsemi.com/f/nordic-q-a/14058/external-programming-using-nrf52-dk
from diydragy.
Related Issues (4)
- Starting tutorial HOT 5
- Any thoughts HOT 1
- Run without battery, connected to car 12v? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from diydragy.