Error with RoboInterface after programming RAM

Alles rund um TX(T) und RoboPro, mit ft-Hard- und Software
Computing using original ft hard- and software
Forumsregeln
Bitte beachte die Forumsregeln!
hvn
Beiträge: 256
Registriert: 20 Feb 2011, 11:15

Error with RoboInterface after programming RAM

Beitrag von hvn » 17 Aug 2014, 16:44

Hi,

I have a problem running a program uploaded to RAM. When I press button 4 as instructed, it shows there is a program loaded. However, when I press button 4 again as instructed, a red led starts blinking together with the IR led. The only way to end this, is power-cycle. What does this error mean ?

Thanks

thkais
Beiträge: 381
Registriert: 31 Okt 2010, 21:45

Re: Error with RoboInterface after programming RAM

Beitrag von thkais » 17 Aug 2014, 17:31

Hi,
there's a document which explains the error codes (german only) http://www.fischertechnik.de/ResourceIm ... x?raid=418
Error LED + IR LED blinking together: "Program error: Unknown command."
Unfortunately I don't know what exact this does mean...
I would recommend to update the firmware and erase the memory (is available in the "test"-window). Which RoboPro-version do you use?
Gruß
Thomas

hvn
Beiträge: 256
Registriert: 20 Feb 2011, 11:15

Re: Error with RoboInterface after programming RAM

Beitrag von hvn » 17 Aug 2014, 18:22

Hi,

The firmware is the latest. I don't use RoboPro, but I experimented with your (old) Basic compiler (and the Unix version from defiant) and translated a well-working Python program into Basic. This gave me a .hex file which I uploaded using "ftuploader -u=0 -U myrhand.hex -N myrhand". Result was:
Found program for RAM
Upload done

Then happened what I described.

hvn
Beiträge: 256
Registriert: 20 Feb 2011, 11:15

Re: Error with RoboInterface after programming RAM

Beitrag von hvn » 18 Sep 2014, 16:14

@thkais: have all .rib example programms been tested to work on RoboInterface or were those just examples ? So far, I haven't come any further with the Basic .rib/.hex testing, other than the same fault.

thkais
Beiträge: 381
Registriert: 31 Okt 2010, 21:45

Re: Error with RoboInterface after programming RAM

Beitrag von thkais » 19 Sep 2014, 09:08

Hi,
sorry - I did not see your reply and in your first posting you did not mentioned that you are using the basic compiler ...
It's really a long time ago I made this compiler, IIRC this behaviour can happen when a runtime error occurs. Is it possible for you to connect an additional RS232-cable to the serial Port of the Robo Interface? While running basic programs you will be able to send messages ("print" command) and runtime-errors will also be displayed. The default-parameters for the serial connection are 38400 baud, 8 Bit, no parity, 1 Stop-Bit.
Gruß
Thomas

hvn
Beiträge: 256
Registriert: 20 Feb 2011, 11:15

Re: Error with RoboInterface after programming RAM

Beitrag von hvn » 23 Sep 2014, 13:03

Hi,

Thank you for your response. I've been trying and testing on 2 interfaces now, and find that both go wrong on my program. So maybe something is wrong with my code.
On the use of RS232: "listening" to print messages over RS232 would only work when the Intelligent Interface (II)mode is active as stated by the manual ? I've tried to set up an RS232 link using minicom (on Linux), but despite being in the II mode I had no connection.

Thanks

Benutzeravatar
schnaggels
Beiträge: 389
Registriert: 31 Okt 2010, 23:14
Wohnort: Kelkheim
Kontaktdaten:

Re: Error with RoboInterface after programming RAM

Beitrag von schnaggels » 23 Sep 2014, 13:54

Hi hvn (having a first name would be nice)

the interface mode is something different, you still have to connect the interface via usb in RoboPro mode.
thkais added the serial output within his basic, a simple terminal connection with the parameters given will show the print command output and (hopefully) errors. There is no special driver needed for this connection...

@Defiant
As you worked with the Robo IF under Linux as well, could you help hvn a bit maybe? Only tried this on windows based OSs :|

Regards,
Thomas

Benutzeravatar
Defiant
Beiträge: 354
Registriert: 31 Okt 2010, 21:42
Wohnort: Narn Homeworld
Kontaktdaten:

Re: Error with RoboInterface after programming RAM

Beitrag von Defiant » 23 Sep 2014, 18:30

Have you tried edgetest.hex?
"Propaganda does not deceive people; it merely helps them to deceive themselves."
E Hoffer

hvn
Beiträge: 256
Registriert: 20 Feb 2011, 11:15

Re: Error with RoboInterface after programming RAM

Beitrag von hvn » 23 Sep 2014, 22:20

I just did try edgetest.hex. Uploading with ftuploader -u=0 -U edgetest.hex -N edgetest (result: Found program for RAM
Upload done), test with ftuploader -n (Flash #1: <No Program stored> Flash #2: Ram: edgetest) and when selecting RAM by [4] and pressing [4] again, the RoboInterface goes into the same error: unknown command. Right now I'm not sure what's going wrong.

Benutzeravatar
Defiant
Beiträge: 354
Registriert: 31 Okt 2010, 21:42
Wohnort: Narn Homeworld
Kontaktdaten:

Re: Error with RoboInterface after programming RAM

Beitrag von Defiant » 23 Sep 2014, 22:55

Can you upload edgetest.hex for us?
"Propaganda does not deceive people; it merely helps them to deceive themselves."
E Hoffer

hvn
Beiträge: 256
Registriert: 20 Feb 2011, 11:15

Re: Error with RoboInterface after programming RAM

Beitrag von hvn » 24 Sep 2014, 16:36

Upload where to ?

Benutzeravatar
schnaggels
Beiträge: 389
Registriert: 31 Okt 2010, 23:14
Wohnort: Kelkheim
Kontaktdaten:

Re: Error with RoboInterface after programming RAM

Beitrag von schnaggels » 24 Sep 2014, 16:56

Maybe here?
http://ftcommunity.de/downloads.php?kategorie=Software

I know this is a bit confusing as you get there via the menu entry "Downloads" - but you can upload files there as well :|

Thomas

hvn
Beiträge: 256
Registriert: 20 Feb 2011, 11:15

Re: Error with RoboInterface after programming RAM

Beitrag von hvn » 24 Sep 2014, 18:04

OK, I will do that after my registration has been verified. Why isn't it the same as this forum ?

thkais
Beiträge: 381
Registriert: 31 Okt 2010, 21:45

Re: Error with RoboInterface after programming RAM

Beitrag von thkais » 25 Sep 2014, 06:50

hvn hat geschrieben:I just did try edgetest.hex. Uploading with ftuploader -u=0 -U edgetest.hex -N edgetest (result: Found program for RAM
Upload done), test with ftuploader -n (Flash #1: <No Program stored> Flash #2: Ram: edgetest) and when selecting RAM by [4] and pressing [4] again, the RoboInterface goes into the same error: unknown command. Right now I'm not sure what's going wrong.
I am missing the interpreter in Flash #1 (the compiler makes a bytecode out of the .rib-programs). Without the Interpreter the compiled programs won't work...
The windows-uploader I made uploads the interpreter automatically - defiant: How this works on the Linux-environment?
Gruß
Thomas

Benutzeravatar
Defiant
Beiträge: 354
Registriert: 31 Okt 2010, 21:42
Wohnort: Narn Homeworld
Kontaktdaten:

Re: Error with RoboInterface after programming RAM

Beitrag von Defiant » 25 Sep 2014, 07:02

The interpreter has to be manually uploaded.

Huub, have you done that?
"Propaganda does not deceive people; it merely helps them to deceive themselves."
E Hoffer

hvn
Beiträge: 256
Registriert: 20 Feb 2011, 11:15

Re: Error with RoboInterface after programming RAM

Beitrag von hvn » 26 Sep 2014, 07:23

No, I didn't know that had to be done as well. Assuming it's in the manual, I'll read again and give another try.

hvn
Beiträge: 256
Registriert: 20 Feb 2011, 11:15

Re: Error with RoboInterface after programming RAM

Beitrag von hvn » 02 Okt 2014, 16:00

OK, assuming that robobasic is the interpreter to be uploaded, I try this: "ftuploader -u 0 -U robobasic -N robobasic -t FLASH1"
and get:
Unknown MEM Target
Failed to parse file

I've tried "-t=FLASH1", "-t=flash1", "-t flash1", but it's not working. What do I do wrong ?

Benutzeravatar
Defiant
Beiträge: 354
Registriert: 31 Okt 2010, 21:42
Wohnort: Narn Homeworld
Kontaktdaten:

Re: Error with RoboInterface after programming RAM

Beitrag von Defiant » 02 Okt 2014, 16:35

robobasic is the compile, look for a file interpreterV1.01.rom.
"Propaganda does not deceive people; it merely helps them to deceive themselves."
E Hoffer

hvn
Beiträge: 256
Registriert: 20 Feb 2011, 11:15

Re: Error with RoboInterface after programming RAM

Beitrag von hvn » 02 Okt 2014, 17:03

Then I get this:

ftuploader -u 0 -U interpreterV1.01.rom -N interpreterV1.01 -t FLASH1
Found program for Flash 1
Overwriting Destination: Using Flash 1
Upload Error: Target mismatch
Error uploading Program: Return value for 0xC0, 0x20 is 0xef
Sorry: upload failed
Please restart Device!

I did restart, but the problem stays. What is going wrong now ?

Benutzeravatar
Defiant
Beiträge: 354
Registriert: 31 Okt 2010, 21:42
Wohnort: Narn Homeworld
Kontaktdaten:

Re: Error with RoboInterface after programming RAM

Beitrag von Defiant » 02 Okt 2014, 17:23

try just

Code: Alles auswählen

ftuploader -U interpreter.rom -N BasicInterpreter
after restarting the interface.
"Propaganda does not deceive people; it merely helps them to deceive themselves."
E Hoffer

Antworten