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

cargo check fails #1

Open
bismitpanda opened this issue Feb 23, 2023 · 1 comment
Open

cargo check fails #1

bismitpanda opened this issue Feb 23, 2023 · 1 comment

Comments

@bismitpanda
Copy link

Hello, I cloned this repo and changed some files and run cargo check but getting errors.

main.rs

#![no_std]
#![no_main]

use arduino_hal::prelude::*;
use panic_halt as _;

#[arduino_hal::entry]
unsafe fn main() -> ! {
    loop { }
}

arduino.yaml

arduino_home: "%LOCALAPPDATA%/Arduino15"
external_libraries_home: "%LOCALAPPDATA%/Arduino15/libraries"
core_version: 1.8.6
variant: eightanaloginputs
avr_gcc_version: 7.3.0-atmel3.6.1-arduino7
external_libraries:
arduino_libraries:
  - LiquidCrystal
definitions:
  ARDUINO: '10807'
  F_CPU: 16000000L
  ARDUINO_AVR_UNO: '1'
  ARDUINO_ARCH_AVR: '1'
flags:
  - '-mmcu=atmega328p'
bindgen_lists:
  allowlist_function:
    - LiquidCrystal.*
  allowlist_type:
    - LiquidCrystal.*
  blocklist_function:
    - Print.*
    - String.*
  blocklist_type:
    - Print.*
    - String.*

the error log is attatched below

Note: I used LiquidCrystal.h as it was installed in my ArduinoIDE and it did not have Wire.h as an include
error.log

@bismitpanda bismitpanda changed the title crago check fails cargo check fails Feb 23, 2023
@aspiringLich
Copy link

Ditto. I got the same exact error with the same exact setup (except on linux but still).

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

2 participants