Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Novice
1,688 Views

Using Galileo with a SD card DISABLES Serial2 !!!

Jump to solution

hi, everyone!

 

Firstly, I'm a user of Galileo Gen2. and now working on a project that must use both UART ports (UART# 0 from Digital I/O pin 0,1 and UART# 1 from pin 2,3)

Today I feel very frustrated finding out this problem.

 

I found that pin 3 does not transmit any data.

Although it sets HIGH (5V) after calling Serial2.begin(baudrate), it does not make any responses to my calling Serial2.print(somedata) or Serial2.write(somedata).

Therefore, I tried with the simplest code,

----------------------------------------------

void setup() {

Serial1.begin(500000);

Serial2.begin(19200);

}

void loop() {

Serial1.write("Test");

Serial2.write("Test");

delay(100);

}

----------------------------------------------

,which also gave me the same result.

After other frustrating tests, I finally found that the code itself was not wrong at all. Simply removing the SD card, booting again, and uploading the exactly same code again gave me the perfect, originally expected result.

Well, anyone know solution to this problem??

Although I can just upload codes every time I pull out the DC adapter and plug it in again, for this project, I'm not going to use Galileo for my next projects if I should keep doing that.

Maybe I should try with other versions of the images first.

Thank you so much for your any comments, in advance.

Have a nice day!

0 Kudos

Accepted Solutions
Highlighted
Employee

Re: Using Galileo with a SD card DISABLES Serial2 !!!

Jump to solution

Hello sglee367,

Are you using the latest Yocto image? Previous images didn't have serial 2 properly set up on the Arduino environment, but it should work fine on the latest image. However you won't be able to see the output of serial 2 on the Arduino console since serial 2 pins are physically separated from it.

Peter.

View solution in original post

4 Replies
Highlighted
Employee
1 View

Re: Using Galileo with a SD card DISABLES Serial2 !!!

Jump to solution

Hello sglee367,

Are you using the latest Yocto image? Previous images didn't have serial 2 properly set up on the Arduino environment, but it should work fine on the latest image. However you won't be able to see the output of serial 2 on the Arduino console since serial 2 pins are physically separated from it.

Peter.

View solution in original post

Highlighted
Employee

Re: Using Galileo with a SD card DISABLES Serial2 !!!

Jump to solution

Hi sglee367

Were you able to fix your issue? Which image are you using?

Regards;

CMata

Highlighted
Novice

Re: Using Galileo with a SD card DISABLES Serial2 !!!

Jump to solution

Hi Peter, sorry for replying so late. I've been too busy with another problems so I couldn't test other images, but I made it this morning.

At first, I was using this image that I got from here : https://software.intel.com/sites/landingpage/iotdk/board-boot-image.html IoT Download - Board Boot Image

I thought the image that I had been using was an older version, so I download it again and retry, which ended up with the same result.

I tried another image from http://www.intel.com/support/galileo/sb/CS-035101.htm Intel® Galileo Boards and Kits — Software Downloads (SD-Card Linux Image)

and it works properly now. thank you!

Highlighted
Novice

Re: Using Galileo with a SD card DISABLES Serial2 !!!

Jump to solution

Hi CMata, thank you for your reply. I had been using Yocto 1.6 image, which I got from : https://software.intel.com/sites/landingpage/iotdk/board-boot-image.html IoT Download - Board Boot Image but it failed to write on the Serial2. With another image, http://www.intel.com/support/galileo/sb/CS-035101.htm Intel® Galileo Boards and Kits — Software Downloads, thankfully however, it works