Error while trying to upload to Feather nRF52 with J-Link Se

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
mydadisaplumber
 
Posts: 83
Joined: Thu Jun 08, 2017 11:15 pm

Error while trying to upload to Feather nRF52 with J-Link Se

Post by mydadisaplumber »

Hi, I've been using a micro USB to upload to an nRF52 through the Arduino IDE and it works fine. I bought a J-Link Segger, and I'm trying to just upload the code to it, not even burn a bootloader or anything, and I'm getting:

Code: Select all

Error while uploading: missing 'program.params.verbose' configuration parameter
If I change the IDE option to not have a verbose upload, I get:

Code: Select all

Error while uploading: missing 'program.params.quiet' configuration parameter
The Board I have selected is "Adafruit Bluefruit nRF52 Feather" and the Programmer is "J-Link for Bluefruit 52". I'm doing the "Upload through programmer" option, and it seems to happen whether or not the programmer is plugged in or not. It seems to me like some parameter is not defined somewhere? What can I do?

User avatar
hathach
 
Posts: 1269
Joined: Tue Apr 23, 2013 1:02 am

Re: Error while trying to upload to Feather nRF52 with J-Lin

Post by hathach »

it is not supported to upload with jlink yet. You either wait for the feature or implement it yourself.

User avatar
mydadisaplumber
 
Posts: 83
Joined: Thu Jun 08, 2017 11:15 pm

Re: Error while trying to upload to Feather nRF52 with J-Lin

Post by mydadisaplumber »

Thanks, so is there any device supported that can upload a Bluefruit nRF52 sketch through the SWD header?

User avatar
hathach
 
Posts: 1269
Joined: Tue Apr 23, 2013 1:02 am

Re: Error while trying to upload to Feather nRF52 with J-Lin

Post by hathach »

To be clear, Jlink could upload easily, we just not support it by using Arduino IDE yet. You have to do it manually with command line

User avatar
mydadisaplumber
 
Posts: 83
Joined: Thu Jun 08, 2017 11:15 pm

Re: Error while trying to upload to Feather nRF52 with J-Lin

Post by mydadisaplumber »

I hate to keep being a pain, but how can I do that? I followed this tutorial:

http://www.ladyada.net/learn/avr/avrdude.html

Just from the Arduino IDE installation alone, I didn't have the "avrdude" command recognized at the prompt. So I downloaded WinAVR, but both the Feather board and the J-Link Segger are not available boards or programmers for the avrdude command when I look into it like the tutorial says. How can I add the board and programmer? Again, sorry to bother you, I've done a fair bit of searching, but still can't find an answer.

User avatar
hathach
 
Posts: 1269
Joined: Tue Apr 23, 2013 1:02 am

Re: Error while trying to upload to Feather nRF52 with J-Lin

Post by hathach »

you will need a jlink and use the nrfjprog command to flash it. avrdude is for AVR chip only.
There is some information you could find in this issue
https://github.com/adafruit/Adafruit_nR ... issues/133

User avatar
mydadisaplumber
 
Posts: 83
Joined: Thu Jun 08, 2017 11:15 pm

Re: Error while trying to upload to Feather nRF52 with J-Lin

Post by mydadisaplumber »

Just to get back into this, I still want to upload through the SWD header with a J-Link Segger. Do I need to use nrfjprog or AdaLink as described here: https://learn.adafruit.com/bluefruit-nr ... bootloader and point to the hex files that I output when I compile for the nRF52? Or are there other bin files I'm supposed to find?

Thanks.

User avatar
hathach
 
Posts: 1269
Joined: Tue Apr 23, 2013 1:02 am

Re: Error while trying to upload to Feather nRF52 with J-Lin

Post by hathach »

install nrfjprog + jlink, select jlink for bluefruit nrf52 in IDE then click shift + upload sketch.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”