Questions tagged [makefile]
The makefile tag has no usage guidance.
11
questions
0
votes
1answer
62 views
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 ...
1
vote
1answer
22 views
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/...
0
votes
0answers
180 views
avr-g++: error: missing device or architecture after '-mmcu='
Im on Linux Manjaro right now and Im following this tutorial (https://youtu.be/qAM2S27FWAI) on how to use Arduino from the command line. Im currently trying to create a Makefile for my Arduino ...
0
votes
1answer
2k views
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 files:
...
-1
votes
1answer
2k views
Using SD library in a ESP-IDF project on ESP32 [closed]
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 ...
2
votes
0answers
1k views
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.
...
0
votes
1answer
107 views
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 ...
1
vote
2answers
1k views
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 ...
0
votes
1answer
329 views
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/...
-1
votes
2answers
4k views
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
...
1
vote
1answer
188 views
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 ...