Can't compile - missing softwareserial.h

Trying to work with a Nextion hmi and the code won't compile to upload. Error "softwareserial.h" not found. It doesn't show up in the libraries drop down menu, unless I select a board different than the d21g (ie if I change to the mega 2650, it's there) I've tried updating all the libraries from Indio and updated the IDE (from 1.8.3 to 1.8.9) I compiled this code in the past, and successfully uploaded it. But now I need to make some updates to the system.

| 2 1 1
Asked on 7/26/19, 3:56 PM

hi, softwareserial is indeed not available on Arduino M0 type boards such as the Industruino D21G, for the reason that there are usually enough hardware serials available. so it should be relatively easy to re-write your code to use Serial on D0/D1 or Serial1 on D10/D5 ; also see this post

if you can provide the library you are using, we can have a look

UPDATE Feb 2020: i have modified the Nextion library to work with RS485, see

this library will also compile without softwareserial now

| 1 1 3
Answered on 8/12/19, 7:17 AM

Maybe this will help. Seems like a similar workaround was required.

Kelly Sprayberry
Kelly Sprayberry
| 2 1 2
Answered on 9/14/19, 6:52 PM

Your answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

Ask a Question

Keep Informed

About This Forum

This community is for professionals and enthusiasts of our products and services.

Read Guidelines

Question tools

58 follower(s)


Asked: 7/26/19, 3:56 PM
Seen: 3083 times
Last updated: 1/31/20, 6:24 AM