Skip to content

Adds support to choose between JLINK and BMP as programmers#7

Open
EarthLord wants to merge 3 commits intoelectronut:masterfrom
EarthLord:master
Open

Adds support to choose between JLINK and BMP as programmers#7
EarthLord wants to merge 3 commits intoelectronut:masterfrom
EarthLord:master

Conversation

@EarthLord
Copy link
Copy Markdown

The targets of flash, flash_softdevice and erase work based
on what the variable DEBUGGER is set as: JLINK or BMP.
Needs arm-none-eabi-gdb in the path for BMP to work.

The targets of flash, flash_softdevice and erase work based
on what the variable DEBUGGER is set as: JLINK or BMP.
@electronut
Copy link
Copy Markdown
Collaborator

electronut commented Jul 28, 2017

You seem to have hardcoded the USB port:

/dev/ttyBmpGdb

That will not work on Windows and Linux. Instead, it should be a make variable.

Eg.:

$make BMP_PORT=COM5 flash

Also I think we need a check on DEBUGGER - if it's already from cmd line, it should take precedence. eg.:

$make DEBUGGER=BMP BMP_PORT=COM5 flash

@EarthLord
Copy link
Copy Markdown
Author

What is this 'Windows' that you speak of? :P

OK, I'll see what I can do for making it compatible with both the OS. Also there is an issue with the path of nrfjprog. I'll fix that too.

@electronut
Copy link
Copy Markdown
Collaborator

Windows - holds inmates. :-)

This commit removes the hardcoding of the BMP port to /dev/ttyBmpGdb
so that people using other OS apart from Linux can set it appropriately.
@EarthLord
Copy link
Copy Markdown
Author

Ok, I've made the changes. Untested in Windows and Mac though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants