Questions tagged [makefile]
10 questions
5
votes
0 answers
Clion Arduino plugin: Error:Could not find Arduino SDK (set ARDUINO_SDK_PATH)
I am trying to setup CLion as my workspace for my arduino. I have installed the two Arduino plugins for CLion, generated a new sketch project, but I am getting cmake errors on opening the project.
CMake Error at…
John Snow
- 151
- 5
1
vote
1 answer
Arduino.Mk together with MightyCore
There's no end to my frustration trying to figure out how the arduino build system works -- despite my best efforts I just can't seem to grok it. Anyhow, I did this:
ALTERNATE_CORE_PATH=/path/to/MightyCore/avr
BOARD_TAG=324
...
make show_boards…
smbaker
- 19
- 5
1
vote
1 answer
Multiple definition error when linking firmware.elf
I just can't wrap my head around on how to properly work with multiple files. My code has been getting quite big so I decided to split all the classes into one file each. So I'm left with 6…
Cowboy_Patrick
- 174
- 1
- 16
1
vote
2 answers
Read and store data with the usb
Hi i am new to Arduino and I want to know if it is possible to read the data from a sensor that it is connected to the Arduino, I am using the Arduino mega 2560, which is already working, as I have a LED which change color depending on the detection…
Miguel Sanz Narrillos
- 101
- 2
- 8
1
vote
1 answer
How to program an Arduino Uno Pro with a makefile?
I'm using Arduino Makefile to compile sketches for Uno and Mega boards. I'm now trying to compile a sketch for an Arduino Uno Pro, which is an Uno with a replaced chip to give it features more like a Mega.
When writing a makefile to compile for this…
Cerin
- 1,688
- 2
- 28
- 45
0
votes
1 answer
How to include a file from another (parent) directory
This is my structure
program/
src/
Makefile
main.ino
test.h
...
lib/
i2c.h
In main.ino I include test.h and in test.h I'm trying to include i2c.h but it is just not working, I keep getting:
make: *** No rule to make target…
php_nub_qq
- 223
- 3
- 10
0
votes
1 answer
Including Arduino library in a Makefile for Due
I'm currently using a Makefile for the Arduino Due I've found on Github (with some modifications). It's useful to me cause it allows me to add a static library for cryptographic functions I need and I can't do it using the IDE. Now I need to include…
Jéssica Carneiro
- 37
- 6
0
votes
1 answer
How to find integer inside a file with STRNCMP
I'm trying to compare the int number 18 with strcmp but give to me wrong result, the program looking for char 18 and not for integer 18, how i can look for an integer with strcmp?
/*
SD card read/write
This example shows how to read and write…
Francesco Valla
- 376
- 1
- 8
- 17
0
votes
2 answers
Read value from a file inside SD card
it's possible to read value from a file inside sd card?
I'm trying to start with the sample code
/*
SD card read/write
This example shows how to read and write data to and from an SD card file
The circuit:
* SD card attached to SPI bus as…
Francesco Valla
- 376
- 1
- 8
- 17
-1
votes
1 answer
Using SD library in a ESP-IDF project on ESP32
I just started to move from the Arduino firmware to the esp-idf firmware.
I read that link. I learn that I have to include libraries creating a component files, with a component.mk file, *.c, *.cpp files and an include/ folder for *.h files.
That…
BuzzRage
- 7
- 4