Code Monkey home page Code Monkey logo

Comments (2)

adamhun94 avatar adamhun94 commented on July 17, 2024

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.

ab3lson avatar ab3lson commented on July 17, 2024

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)

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.