RS232 failure to communicate

Questions on UARTs, and serial communication

RS232 failure to communicate

Postby vincent1971 » Mon Nov 12, 2012 4:21 pm

If I type the run command I get this nice messages. Can someone help me?

couldn't open "-1": no such file or directory
couldn't open "-1": no such file or directory
while executing
"open $file2send"
(procedure "compileFile" line 31)
invoked from within
"compileFile $file2send"
(procedure "runButton" line 10)
invoked from within
"runButton"
(procedure "incCompile" line 21)
invoked from within
"incCompile $line"
(procedure "putRS232" line 8)
invoked from within
"putRS232"
(command bound to event)
vincent1971
 
Posts: 9
Joined: Mon Nov 12, 2012 4:17 pm

Re: RS232 failure to communicate

Postby basicchip » Mon Nov 12, 2012 7:40 pm

OK, I need some details, what board/chip are you using? What type of serial connection? It looks like it's probably BASIC

What version of BASICtools are you running?

What is the name of the program you are trying to download? It looks like the name is -1 which would be a problem.

Does your version of BASICtools show examples under the Help menus? Can you load any of those?

If BASICtools does not show those, then there is a newer version, download that from the Coridium website Support page.
basicchip
 
Posts: 330
Joined: Fri Oct 19, 2012 2:39 am
Location: Lake Tahoe, CA

Re: RS232 failure to communicate

Postby vincent1971 » Mon Nov 12, 2012 8:28 pm

I am using a LPC11144NC28 controller.
For example if I type
I am using the program Basictools 5.16.
print "hello world" no problem. I can do a list etcetera. But if I type the run command it shows that error message.

Welcome to ARMbasic Kernel[8.14] with Floating Point Copyright 2012, Coridium Corp.
for the BASICchip

list

print "hello world"
list

run

Programming Flash 19200 Manual...

And it doesn't show anymore.
vincent1971
 
Posts: 9
Joined: Mon Nov 12, 2012 4:17 pm

Re: RS232 failure to communicate

Postby basicchip » Mon Nov 12, 2012 9:16 pm

Here's what I see when I type what you typed on a BASICboard, was the same for me in manual mode

Welcome to ARMbasic Kernel[8.15] with Floating Point Copyright 2012, Coridium Corp.
for the BASICchip

so far so good, you see the same message from BASICchip (different firmware version, but that's OK)

list

print "hello world"
list

print "hello world"

not sure why you didn't see this. You did type into the box following the ? Enter:

run
Programming Flash 1114... now why it showed 19200 Manual -- I can't ever remember seeing that -- but it may have in a very old version of the tools
ARMbasic[8.16d] on the PC Copyright 2012, Coridium Corp. the fact this line did not show up tells me it is an old version of the tools, this was added last spring so we could see which compiler was being used
*+*+
... ( 0.02K code + 0.01K string)/20K 0.00/2K data programmed
Executing...

hello world

... Finished in 7 ms

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

So first thing to do is try a newer version of the tools, get them from the link on the Coridium website http://coridium.us/technical_support.html page
basicchip
 
Posts: 330
Joined: Fri Oct 19, 2012 2:39 am
Location: Lake Tahoe, CA

Re: RS232 failure to communicate

Postby vincent1971 » Mon Nov 12, 2012 9:51 pm

Ok,

I installed the new basic tools program and the same troubles. Must I upgrade also to version 8.16 or so and if yes must I pay for that firmware upgrade?
vincent1971
 
Posts: 9
Joined: Mon Nov 12, 2012 4:17 pm

Re: RS232 failure to communicate

Postby basicchip » Mon Nov 12, 2012 9:59 pm

You don't need a firmware upgrade.

What version of the compiler do you have (it's in the Help About BASICtools line)?

It seems to me you don't really have the latest tools, as it doesn't show the compiler version in the clip you sent. Maybe remove the old tools, delete any Coridium directories and re-install

What are you using for a serial connection?
basicchip
 
Posts: 330
Joined: Fri Oct 19, 2012 2:39 am
Location: Lake Tahoe, CA

Re: RS232 failure to communicate

Postby vincent1971 » Mon Nov 12, 2012 10:06 pm

Image

I am using a chipkit max with a ftdi as the serial communication.
vincent1971
 
Posts: 9
Joined: Mon Nov 12, 2012 4:17 pm

Re: RS232 failure to communicate

Postby basicchip » Mon Nov 12, 2012 10:22 pm

I can't speak the the chipkit, though I believe it should work.

What happens when you load the blinky example?

HELP -> Examples -> Blinky
basicchip
 
Posts: 330
Joined: Fri Oct 19, 2012 2:39 am
Location: Lake Tahoe, CA

Re: RS232 failure to communicate

Postby vincent1971 » Mon Nov 12, 2012 10:52 pm

Image

I got almost the same failure message. Both on windows xp and on windows 7.
vincent1971
 
Posts: 9
Joined: Mon Nov 12, 2012 4:17 pm

Re: RS232 failure to communicate

Postby basicchip » Mon Nov 12, 2012 10:54 pm

I can't explain why what you see is different, so the other questions would be--

What OS are you using? (we routinely are running Win7 or XP)
What FTDI driver are you using? (we are now using 2.8.24 -- available from our installer in Windows Driver folder or check http://www.ftdichip.com for the latest VCP driver)

As you are getting data from the BASICchip, TXD (from chip) to the PC is connected
Maybe you don't have RXD (to chip from PC) connected.

What happens when you type @0 into the Enter window

You should see

00000000: 10000FE0 000000C9 000008B3 000008B7 000008BB 000008BF 000008C3 EFFFC3B0

If you don't see that, then your RXD line is not connected.
basicchip
 
Posts: 330
Joined: Fri Oct 19, 2012 2:39 am
Location: Lake Tahoe, CA

Next

Return to Serial Communication

Who is online

Users browsing this forum: No registered users and 2 guests

cron