Community
cancel
Showing results for 
Search instead for 
Did you mean: 
LLore4
Novice
1,157 Views

Problem with sketch if power is removed

Hello everyone,

my name is Lorenzo and I am working with an Intel Edison board with Intel board.

I have a problem: sketches I wrote go, but if I decide to cycle power on the board, it does not start performing sketch I uploaded but it is as if, for any loss of power, there is a need to reupload the sketch.

As you can bypass the problem?

Thank you in advance for your reply

Best regards,

Lorenzo

14 Replies
LLore4
Novice
38 Views

Another info: i'm using Arduino IDE to program it!

LLore4
Novice
38 Views

No answer?

It would be very important.

Thanks in advance,

Lorenzo

idata
Community Manager
38 Views

Hi Lorenzo,

 

 

Thank you for your interest in the Intel Edison Platform.

 

You are right if you do a cycle power you will lost the sketch that you upload through the Arduino IDE. This is an issue in the latest images, there are several ways to solve this problem. First I would recommend to follow the steps of this tutorial were you will have to interact with the Edison from console: https://software.intel.com/en-us/blogs/2015/08/01/procedure-to-autostart-the-arduino-sketch-on-ediso... . Another way to do it is following this other thread, please don't forget to add a "chmod + x clloader" between the steps 7 and 8: https://communities.intel.com/thread/77945 https://communities.intel.com/thread/77945 .

 

 

I hope you find this information useful, I will be waiting for your reply.

 

 

Have a nice day.

 

 

Best regards,

 

-Jose

 

LLore4
Novice
38 Views

Using the first method, are all the steps used on putty?

I said it beacuse now I have problem to connect to board using Putty!

Help me please! I'm desperate.

Thanks in advance,

Lorenzo

idata
Community Manager
38 Views

Hi Lorenzo,

 

I would recommend to first check your Device Manager and check your USB Serial Port, if there is nothing in the Ports, please install again the drivers (https://software.intel.com/en-us/iot/hardware/edison/downloads https://software.intel.com/en-us/iot/hardware/edison/downloads ).

Use this port to connect through Putty and use the Speed:115200.

 

 

After doing this you should see a dark console just press Enter and type "root" in the login.

 

I hope you find this information useful, I will be waiting for your reply.

 

 

Best regards,

 

-Jose.

 

LLore4
Novice
38 Views

In device manager I see:

Which come have I choose?

idata
Community Manager
38 Views

Hi Lorenzo,

 

 

It should be COM1 or COM2. One way to be sure is to disconnect the serial cable while the Edison is powered and plug in again and see which COM port shows up in the Device Manager. Please let me know if you where able to connect through Putty.

 

 

I will be waiting for your reply, have a nice day.

 

 

Best Regards,

 

 

-Jose
LLore4
Novice
38 Views

Unfortunately, neither COM1 and COM2 responds to putty.

How can I do?

Thanks in advance,

Lorenzo

idata
Community Manager
38 Views

Hi Lorenzo,

Lets try a little experiment could you please connect only the devices shown in the image. Go to Device Manager open the section of COM and LPT, disconnect only the serial cable, you will see that a Serial Port will disappear, plug in again the serial cable and you will see which COM to use in the Putty console. Remember to used in serial mode use the COMX you saw in our experiment and use a speed of 115200.

If this doesn't works please download again your drivers https://software.intel.com/en-us/iot/hardware/edison/downloads Downloads for Intel® Edison Module | IoT | Intel® Software .

I will be waiting for your reply, have a nice day.

Best Regards,

-Jose

LLore4
Novice
38 Views

Thank you very much! Now it works. But I have a problem with the autostart of sketch at the moment.

Now I can't write the script in the file automatesketch. (I'd write in it

# !/bin/sh

exec /sketch/sketch.elf /dev/ttyGS0 /dev/ttyGS0).

How can I do? Do you help me with any screenshot for all the reamined steps?

Excuse me for disturbing and many thanks,

Lorenzo

idata
Community Manager
38 Views

Hi Lorenzo,

 

 

In order to write in the text editor vi, you must press the key "i", now you can start writing. After you write:

 

# !/bin/sh

 

exec /sketch/sketch.elf /dev/ttyGS0 /dev/ttyGS0

 

 

In order to exit and save this in the file automateSketch.sh you must press "Esc" then type ":wq!" and press enter. After this you should have exit the text editor, if you want to check that you write correcty in the automateSketch.sh use the following command "cat automateSketch.sh".

 

 

Best Regards,

 

-Jose
LLore4
Novice
38 Views

Done, thank you!

But the sketch doesn't start when I power the shield....

I upload in it a simple sketch to let me see on the monitor value of temperature..

When I turn off and turn on the power it doesn't rework.. why??

Thanks in advance,

Lorenzo

LLore4
Novice
38 Views

Now it works!

Thank everybody!!!!!!!!!! =) =) =)

idata
Community Manager
38 Views

Hi Lorenzo,

 

 

I'm glad to hear that is working! If you have any more technical problems open another thread indicating your issues and we will be happy to help you.

 

 

Have a nice day!

 

 

Best Regards,

 

-Jose
Reply