SofrwareSerial Atmega1284p-au

Hi friends,

Recently I migrated my cktech to atmega328 to atmega1284p-au. All works fine but the rx of the software serial no recibe anything.

Do you know if there are other serial libraries fot this atmega?

Regards

An AtMega1284 has more than one hardware serial port, doesn't it? Why do you need SoftwareSerial?

SoftwareSerial requires that the pins being used support pin change interrupts. Which pins are you using and do they support pin change interrupts?

Hi!!

I have all port used for the gsm module, gps module and I need other serial por for the bluetooth chip.
I saw in several post that there are problems with the software serial library, but I can't find a solution.

I used

RX (Pin 19 PC0)
TX (Pin 20 PC1)

I try to use other pins but I have the same result.

Regards

As PaulS wrote, ATmega1284P has two serial ports: Rx/Tx0 on PD0,1 and Rx/Tx1 on PD2,3. On PC0,1 is I2C.

Ok, I tried to used other pins, but I had the same results.

Regards

ecoss23:
Do you know if there are other serial libraries fot this atmega?

Which SoftwareSerial are you currently using? I noticed that MightyCore has a modified SoftwareSerial library MightyCore/avr/libraries/SoftwareSerial at master · MCUdude/MightyCore · GitHub but I haven't used it. May be worth a try.

Hi, Used the Software serial library that inclued in the arduino software. (ver 1.0.6)

I going to try it!

Regards

Hi Again,

I Tested your suggestion and I can't receive nothing using serialsoft library. I used the new version of it and doesn't work.

I changed the pins to RX PB2 and TX PB3 and have the same result!!!

Any suggest?

Regards

Any suggest?

Dig through the data sheet for the 1284 chip. Figure out which pins support pin change interrupts. Only use those pins for SoftwareSerial.

All the pins support PCINT on a 1284P.

So Why don't receive nothing using SerialSoftware with 1284p-au? I saw several post where more people have a same problem and they don't have the solution.

I using Arduino ver 1.0.6, custom atmega1284p-au pcbs, optiboot loader of maniac web page.

I migrate all to this atmega because need more program memory. I suppose that the serial lib working well but I can't find one solution.

Regards

The source code could help. Some time ago somebody solved here exactly the same. Do you have correctly defined pin mapping?
However, first response suggests to use HW serial instead of SoftwareSerial. SoftwareSerial has disadvantages. You need just 2 serial ports and 1284 offers it. In addition, you can get rid of all SoftwareSerial code to save memory.

This topic might help - response #6:
https://forum.arduino.cc/index.php?topic=360158.0

Budvar10:
You need just 2 serial ports and 1284 offers it.

How do you handle (1) GSM, (2) GPS and (3) Bluetooth with 2 ports?

ecoss23:
I have all port used for the gsm module, gps module and I need other serial por for the bluetooth chip.

Ah, sorry, so he needs 3 serial ports.

Yes, I need 3 seral ports. The pin mapper is the same that I download onf the maniac web page. In this page I download the bootloader and all folder for arduino.

I would like someone that it solve this problem contact with me or post the solution because I guess there are more people that have this problem.

Regars

I would like someone that it solve this problem contact with me or post the solution because I guess there are more people that have this problem.

YOU should be the one trying to solve the problem.

Connect ONE device to the 1284, on Serial1. Make SURE that you can get data from that device, and output it to Serial, so it can be seen in the Serial Monitor application.

Then move that device to two other pins, and replace Serial1 with an instance of the SoftwareSerial class that uses the two pins you moved the device to.

If that does not result in being able to read data from the device, then one can consider that the SoftwareSerial library may not be functioning properly FOR THE 1284, and someone that has a 1284 might need to make some changes/additions to the SoftwareSerial library to support the 1284.

Hi All,

At least I do that this Atmega1284p-au working with the SoftwareSerial library. The solution is using this new boot loader:

JChristensen/mighty-1284p

If there any person that need help with this issue, please contact with.

Thank you for all.

Regards