anlif / rtt_minimal

Minimal example to run SEGGER Real Time Transfer (RTT) on a Nordic Semiconductor NRF52-DK on OSX using GCC.
11 stars 1 forks source link

make flash - nrfjprog program command may need changing #2

Open RShergold opened 8 years ago

RShergold commented 8 years ago

Hey. First, Thanks for this repo I found it really useful.

However I had to change the make file flash from

flash: nrf52832_xxaa
    @echo Flashing: $(OUTPUT_BINARY_DIRECTORY)/$<.hex
    nrfjprog program -c $(OUTPUT_BINARY_DIRECTORY)/$<.hex -d nrf52

to

flash: nrf52832_xxaa
    @echo Flashing: $(OUTPUT_BINARY_DIRECTORY)/$<.hex
    nrfjprog --program $(OUTPUT_BINARY_DIRECTORY)/$<.hex -f nrf52 --chiperase
    nrfjprog --reset -f nrf52

Perhaps our version of nrfjprog is different. I have:

nrfjprog version: 8.3.0
JLinkARM.dll version: 6.00d

It may be a good idea to mention this in the readme if other people have this issue. Might save someone some time!

anlif commented 8 years ago

Hi,

Thanks for the report. I'm sure someone else could have similar issues. Are you running Windows? I've only tried this on OSX/Linux, and building may be slightly different on Windows.

It sure looks like the nrfjprog interface is different on your end. My version is probably a bit old: nrfjprog --version version: v1.0.10

RShergold commented 7 years ago

Hey. Yep I'm on a mac. Not sure why or how JLinkARM.dll is used in my version of nrfjprog.

¯\_(ツ)_/¯