Comments (8)
@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.
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.
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.
Thank you! I'm looking forward to it!
from arduino-cmake-ng.
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.
@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.
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.
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)
- Project is dead HOT 1
- upload_arduino_target does not work (avrdude problem?) HOT 4
- Problem when with determining link language. HOT 3
- Include library header from another library HOT 9
- Undefined reference error when linking 3rd party libraries. HOT 4
- Refactor upload API
- Undefined reference to countPulseASM when using pulseIn function HOT 8
- Newbie: need some hand holding. HOT 2
- RegisterHardwarePlatform doesn't work HOT 3
- Install for library depending on platform HOT 6
- FastLED library linker errors HOT 1
- vidor 4000 HOT 1
- SDK not found on Debian 9 with official Arduino binary HOT 2
- Provide means to override `avrdude`
- find_arduino_library simply doesn't work HOT 6
- ARDUINO_SDK_PATH variable is forgotten during compiler check (v0.6.1) HOT 2
- Support for Third-Party Boards - Game plan HOT 4
- Reduce search-paths for version.txt file
- Board 'nano33ble' not working, unrecorgnized command -mcpu=cortex-m4 HOT 1
- SD card library is not being found. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â¤ī¸ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino-cmake-ng.