Problem with SoftwareSerial attiny861 #571
Replies: 8 comments 6 replies
-
|
I'll bet I know what's causing it..... If you enable warnings, do you get an warning about a missspelled vector? |
Beta Was this translation helpful? Give feedback.
-
|
the configuration of the pinout is the new style, the example code that I load in the arduino is the following: int c; #include <SoftwareSerial.h> const int rx=0; SoftwareSerial portOne(rx,tx); } void loop() Serial.print("C: "); |
Beta Was this translation helpful? Give feedback.
-
|
once the program is loaded into the attiny861 CC: 0C:C: 0 |
Beta Was this translation helpful? Give feedback.
-
|
no ISR warning? So they handled PCINT vectors correctly here? checks... oh..... well that would do it... From the library: From the io headers: Library doesn't look for PCINT_vect, only PCINT0/1/2/3. and it doesn't complain when it doesn't find any ISR (god softwareserial is a terrible library, I hate everything about it!) |
Beta Was this translation helpful? Give feedback.
-
|
Adding to that part of SoftwareSerial.cpp will fix it. Can you please make an issue about this so I remember to get the fix into the next release? |
Beta Was this translation helpful? Give feedback.
-
|
an apology I recompiled the program and now I got these warnings, this happened when changing the pinout from new style to legacy C:\Users\itacag01\AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.5.2\libraries\SoftwareSerial\SoftwareSerial.cpp: In function 'void DebugPulse(uint8_t, uint8_t)': when I load the bootloader the warnings are: ***failed; |
Beta Was this translation helpful? Give feedback.
-
|
Hello again I made the changes you mentioned and the attiny861 no longer restarts. Thank you very much for your help, I really appreciate it. |
Beta Was this translation helpful? Give feedback.
-
|
Fix is in, located in 2.0.0-dev branch. Simple stuff - warnings should be gone and it now jhas an interrupt vector to ise - you should be able to pull in that file to an older version of ATTinycore and it should work correctly there, too. Please try that and let me know how well it works, I'm not set up to actually test the coder, because I don't want to switch my environment back out of 2.0.0-land, but 2.0.0 doesn't compile anything because ti's boards.txt bears no relationship to the current structure of the core. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi spence konde
Currently I am working with the attiny861 and I would like to have two serial communications one to communicate through an FTDI to the computer and the other to communicate with an attiny85, but I have a problem when using the serial Software library, when loading the project the attiny861 it restarts at every moment, with the Serial that comes by default it works very well, but by including the serial software it starts the problem.
Could you advise me how to solve the problem?
Beta Was this translation helpful? Give feedback.
All reactions