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

SoftwareSerial fails to compile for chipKIT WiFire #460

Open
jg2562 opened this issue May 21, 2020 · 4 comments
Open

SoftwareSerial fails to compile for chipKIT WiFire #460

jg2562 opened this issue May 21, 2020 · 4 comments

Comments

@jg2562
Copy link

jg2562 commented May 21, 2020

Hi,

I seem to be having an error using the following minimal script and I was not able to compile SoftwareSerial.cpp library for the chipKIT WiFire.

#include <SoftwareSerial.h>

void setup() {

}

void loop() {
}

It appears to be an error in the struct as it gave back this error.

Arduino: 1.8.12 (Linux), Board: "chipKIT WiFire, Rev C and Newer (FPU), Custom / Disabled"

~/.arduino15/packages/chipKIT/hardware/pic32/2.1.0/libraries/SoftwareSerial/SoftwareSerial.cpp: In member function 'void SoftwareSerial::begin(long int, uint32_t)':
~/.arduino15/packages/chipKIT/hardware/pic32/2.1.0/libraries/SoftwareSerial/SoftwareSerial.cpp:700:14: error: 'volatile union __CNCONAbits_t' has no member named 'SIDL'
   CNCONAbits.SIDL = 0;
              ^
~/.arduino15/packages/chipKIT/hardware/pic32/2.1.0/libraries/SoftwareSerial/SoftwareSerial.cpp:703:14: error: 'volatile union __CNCONBbits_t' has no member named 'SIDL'
   CNCONBbits.SIDL = 0;
              ^
~/.arduino15/packages/chipKIT/hardware/pic32/2.1.0/libraries/SoftwareSerial/SoftwareSerial.cpp:706:14: error: 'volatile union __CNCONCbits_t' has no member named 'SIDL'
   CNCONCbits.SIDL = 0;
              ^
~/.arduino15/packages/chipKIT/hardware/pic32/2.1.0/libraries/SoftwareSerial/SoftwareSerial.cpp:709:14: error: 'volatile union __CNCONDbits_t' has no member named 'SIDL'
   CNCONDbits.SIDL = 0;
              ^
~/.arduino15/packages/chipKIT/hardware/pic32/2.1.0/libraries/SoftwareSerial/SoftwareSerial.cpp:712:14: error: 'volatile union __CNCONEbits_t' has no member named 'SIDL'
   CNCONEbits.SIDL = 0;
              ^
~/.arduino15/packages/chipKIT/hardware/pic32/2.1.0/libraries/SoftwareSerial/SoftwareSerial.cpp:715:14: error: 'volatile union __CNCONFbits_t' has no member named 'SIDL'
   CNCONFbits.SIDL = 0;
              ^
~/.arduino15/packages/chipKIT/hardware/pic32/2.1.0/libraries/SoftwareSerial/SoftwareSerial.cpp:718:14: error: 'volatile union __CNCONGbits_t' has no member named 'SIDL'
   CNCONGbits.SIDL = 0;
              ^
exit status 255
Error compiling for board chipKIT WiFire.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

@majenkotech
Copy link
Member

Software serial does not work on MZ chips and never has done. But then, why would you want it on a chip with 6 hardware uarts?

@jg2562
Copy link
Author

jg2562 commented May 27, 2020

Unfortunately, the chipKIT WiFire only wires out 2 of the hardware uarts from what we found. We need at least 3 for our current project. Are there plans to implement Software Serial for the MZ chipset?

@JacobChrist
Copy link
Member

JacobChrist commented May 27, 2020 via email

@jg2562
Copy link
Author

jg2562 commented May 27, 2020

That is a consideration we are looking into, but it would be easier to read from software serial for now if that's an option.

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

3 participants