Giter VIP home page Giter VIP logo

Comments (8)

MrPointer avatar MrPointer commented on May 23, 2024 1

@foriequal0 Hi, just a little update:
I'm currently on a very busy schedule and don't have much time to work on the project, however, I can say that I'm in the middle of solving this bug and getting close to it.
It's a tough one, and it lays its roots in the core of the framework, and there's no "quick" way of temporarily fixing it.
Because of that, I'll integrate this fix officially into the next, v0.7 release (which refactors the entire framework anyways), and you could "enjoy" the fix once it gets PRed into master. This will be the first feature to PR in this release, so it won't drift much from the v0.6 release.

from arduino-cmake-ng.

foriequal0 avatar foriequal0 commented on May 23, 2024

https://github.com/foriequal0/Arduino-CMake-NG/tree/feature/fix-recursive-resolve
I tried to fix this. It just works for the hello-world example, but I think I'm breaking some other things.

from arduino-cmake-ng.

MrPointer avatar MrPointer commented on May 23, 2024

Whoa! That's a lot of info!
@foriequal0 Thanks so much for providing so many diagnostics, definitely will ease solving the bug 😄

As to the bug itself - Yes, it looks like something I'm partly aware of, as I've never fully completed the work there, thus recursive expansion isn't supported.
One of the main reasons for this is my lack of knowledge of Arduino development (ironic right?) - I only manage this project due to my CMake knowledge.

Anyways I'll have a look at it and your proposed solution as well.

from arduino-cmake-ng.

foriequal0 avatar foriequal0 commented on May 23, 2024

Thank you! I'm looking forward to it!

from arduino-cmake-ng.

pjwebster avatar pjwebster commented on May 23, 2024

Just encountered this and have a temporary workaround for compiling at least. You can add the appropriate USB_VID and USB_PID defines in the CMakeLists.txt:

cmake_minimum_required(VERSION 3.8)

set(CMAKE_TOOLCHAIN_FILE cmake/Arduino-Toolchain.cmake)

add_definitions("-DUSB_VID=0x2a03")
add_definitions("-DUSB_PID=0x8036")

project(myproject)

set(ARDUINO_TARGET_BOARD leonardo)
set(ARDUINO_SERIAL_PORT /dev/ttyACM0)

get_board_id(board_id ${ARDUINO_TARGET_BOARD})
add_arduino_example(${PROJECT_NAME} ${board_id} Blink)
upload_arduino_target(${PROJECT_NAME} ${board_id} ${ARDUINO_SERIAL_PORT})

I haven't got any further yet though, because the upload isn't working for my Leonardo based board. The avrdude and avrdude.conf in the Arduino 1.8.7 SDK gives the error " programmer type jtagice3_updi not found". Still digging into that one

from arduino-cmake-ng.

MrPointer avatar MrPointer commented on May 23, 2024

@pjwebster Thanks for the suggestion, although not pretty it's a perfectly valid fix!
About the upload issues you're having - no need to dig further since programmer support isn't available yet. Only the basic uploaders are supported, and I guess the jtagice3_updi isn't one of them ☚ī¸

from arduino-cmake-ng.

pjwebster avatar pjwebster commented on May 23, 2024

Ironically, I don't want to use that programmer, just the normal one.

After no success, I tried using add_custom_target to add an upload step using avrdude directly and bricked my board. Had to dig up my usbasp and revert to using the Arduino IDE to reload the bootloader via the icsp đŸ˜ĸ

from arduino-cmake-ng.

MrPointer avatar MrPointer commented on May 23, 2024

I'm sorry to hear that... Currently I have no solution for this, and unfortunately no time to investigate & possibly solve it either.

from arduino-cmake-ng.

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.