Coder Social home page Coder Social logo

Comments (8)

rnestler avatar rnestler commented on July 20, 2024

According to https://learn.adafruit.com/adafruit-feather-32u4-basic-proto?view=all#logic-pins-2-9 it looks like you can use pin 0 and 1 with Serial1.

Then just use Serial1.begin() and remove the pinPeripheral calls.

from embedded-uart-sps.

nit1995 avatar nit1995 commented on July 20, 2024

I changed all the references of Serial2 to Serial1. But I am getting the following error in sps30_example_usage.c :
/tmp/ccTGaACo.ltrans0.ltrans.o: In function main': /home/dinesh/Arduino/libraries/sps30-uart/sps30_example_usage.c:61: undefined reference to sleep'
/home/dinesh/Arduino/libraries/sps30-uart/sps30_example_usage.c:119: undefined reference to `sleep'
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board Adafruit Feather 32u4.

from embedded-uart-sps.

abrauchli avatar abrauchli commented on July 20, 2024

Arduino just compiles all files it finds which is a bit suboptimal in this case. You'll have to remove sps30_example_usage.c, I'm assuming you're using some kind of .ino file. You can use the example as a base for what functions to call on the generic sps driver..

I don't know which is the correct serial interface to use for which pins on your board since this is very platform specific. For general Arduino programming support you'll be much better off asking in an Arduino forum. But once you get it working, we'd be happy to include your findings on how to get the example working for your board. I'll leave the issue open for a while.

from embedded-uart-sps.

nit1995 avatar nit1995 commented on July 20, 2024

Thanks, I kinda figured that out. I removed the sps30_example_usage.c file. I then added
#define NULL 0 in sps30.c .
The program is now compiling without errors. There is a problem with interfacing it to the hardware. I will update any progress.

from embedded-uart-sps.

abrauchli avatar abrauchli commented on July 20, 2024

@nit1995 did you get it working? If so, would you provide us with a sample or post a pull request?

from embedded-uart-sps.

rnestler avatar rnestler commented on July 20, 2024

@nit1995 Do you have any updates?

from embedded-uart-sps.

nit1995 avatar nit1995 commented on July 20, 2024

@rnestler Nope. I stopped working on the project. Instead of Feater, we integrated it with another microcontroller.

from embedded-uart-sps.

rnestler avatar rnestler commented on July 20, 2024

@nit1995 I'll close this for now. Feel free to re-open or open a new issue if you encounter any problems 🙂

from embedded-uart-sps.

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.