Comments (2)
Previously I was able to flash my chip (exactly the same as yours), but through my Pi.
I think this is the correct config that I used, maybe you can use it:
source [find interface/sysfsgpio-raspberrypi.cfg]
transport select swd
set CHIPNAME nrf52
source [find target/nrf52.cfg]
reset_config srst_nogate
adapter_nsrst_delay 100
adapter_nsrst_assert_width 100
init
reset halt
nrf5 mass_erase
reset halt
program /home/pi/nrf52/s132_nrf52_7.0.1_softdevice.hex verify
program /home/pi/nrf52/ble_app_hrs_c_pca10040_s132.hex verify
reset run
exit
It might contains unnecessary commands, but I was happy that it works π
Note: I compiled an official nrf example with SES ide, not using this library.
Alternatively you can use the 'mergehex' tool which merges the two hex files and you only need to flash one file.
Note 2: Meanwhile I bought a J-link debugger, so I use it for programming. After flashing, I need to send two commands: r(=reset) and g(=run), which are I think identical to 'reset run' in OpenOCD. But if you can't see you device, you might need to manually reset it (cut and re-add power).
from arduino-bleperipheral.
Thanks for all that I do. I may give that a go. The thing that stumps me is that the programmers output makes it look like the programming was successful. The test sketch should just broadcast a new service, but I donβt see it after I flash it. Do I need to send some command to wake it back up?
Also, when you flashed yours, did you just solder to the DIO, CLK, VIN, and GND, update the program and then search for the service? I am wondering if I should try to attach an FTDI adapter to check for serial communication to ensure that the flash is actually working.
from arduino-bleperipheral.
Related Issues (20)
- Can't detect remote devices
- NRF5: CCCDs aren't persisted for bonded peers
- How to set service name ? HOT 1
- ANCS Implementation canWrite is false
- Speed / baudrate of the BLE connection?
- Numpad key codes, anyone?
- How to send more than 20bytes in each transaction with bleSerial.write()?
- Olimexino-nano + Olimexino-nano-ble freezes after begin()
- [Question] Sending long string BLECharacteristic
- Abandoned project?
- nrf52840 HOT 4
- Freeze on blePeripheral.begin(); HOT 7
- BLE Scan
- softdevice_sys_evt_handler_set()
- RFDuino using BLEPerfipheralObserver to scan for iBeacons - Issue HOT 2
- Update iBeacon broadcast packet after starting
- Setting chip to idle state in between measurements
- nRF52832 Supported?
- UART Rx hangs after a few seconds when BLEPeripheral.begin(); is called on nRF51802
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 arduino-bleperipheral.