Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use arduino-cli for upload #1

Closed
mkettn opened this issue Oct 8, 2021 · 1 comment
Closed

use arduino-cli for upload #1

mkettn opened this issue Oct 8, 2021 · 1 comment

Comments

@mkettn
Copy link
Owner

mkettn commented Oct 8, 2021

a9183756-gh#47

I have some different arduino-devices and it is a pain in the *** to remember all the different upload commands. hence I want to be able to upload just using "make upload-${target}" as I know it from arduino-mk either by supplying a upload command or the arduino-cli will do it for me.

upload command would be:

arduino-cli upload -i ${TARGET}.bin -p ${SERIAL_PORT_FILE} -b ${BOARD_FQBN}

${SERIAL_PORT_FILE} should be configurable

${BOARD_FQBN} needs some sort of a translation from the ARDUINO_BOARD option

@mkettn
Copy link
Owner Author

mkettn commented Oct 8, 2021

looks like you can also just set the command directly before you include the toolchain file:

set(UPLOAD_SERIAL_PATTERN "bossac {upload.verbose} --port={serial.port.file} -U -i -e -w "{build.path}/{build.project_name}.bin" -R")
include(${CMAKE_CURRENT_LIST_DIR}/Arduino-CMake-Toolchain/Arduino-toolchain.cmake)

no need for arduino-cli

@mkettn mkettn closed this as completed Oct 8, 2021
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

No branches or pull requests

1 participant