SetEnv.bat malfunctioning?!

Technical questions regarding the XTC tools and programming with XMOS.
ClementG
Junior Member
Posts: 4
Joined: Wed Aug 24, 2016 3:19 pm

SetEnv.bat malfunctioning?!

Post by ClementG »

Hello everyone,

I am working with a Startkit at the moment but I encounter a weird issue.
Actually I have a .bat file that allows me to identify the Startkit connected to my laptop. It loads SetEnv.bat normally and the identification of the Startkit occurs.
BUT, when I try to run my code (the main one), the cmd prompt is blocked on :

call "D:\Program Files (x86)\XMOS\Community_14.2.1\SetEnv.bat" ... And nothing happens...

Whereas the exact same line works fine in my previous code (the one for the identification).

Any ideas?

Thank you for your attention,

Clement
henk
Verified
Respected Member
Posts: 347
Joined: Wed Jan 27, 2016 5:21 pm

Post by henk »

Hi Clement,

Could you execute the commands in the Setenv.bat one at a time and see which one hangs?

Cheers,
Henk
ClementG
Junior Member
Posts: 4
Joined: Wed Aug 24, 2016 3:19 pm

Post by ClementG »

Hi Henk,

Thank you for your answer !

I will execute the command of the SetEnv.bat file in the .bat file that execute my code. Am I right?
Or shall I try to execute them one by one separately in the cmd prompt (independently from the script that does not launch setenv) ?

cheers,

Clement
henk
Verified
Respected Member
Posts: 347
Joined: Wed Jan 27, 2016 5:21 pm

Post by henk »

Hi Clement ,

I would do them one at a time from the command line; or, if there is a verbose option set that and then run the script? (I am not too familiar with Windows, but in Linux/Max I would do a "set verbose" and then all comments are echoed before they execute, Windows could have a similar option.)

Cheers,
Henk
ClementG
Junior Member
Posts: 4
Joined: Wed Aug 24, 2016 3:19 pm

Post by ClementG »

Hi,

So, I have tested the SetEnv.bat line by line, no message appears in the prompt when I press Enter.
With Windows, I removed the "@echo off" to see if anything pops out in the prompt... Nothing... The lines of commands appear in the prompt but nothing else.
peter
XCore Addict
Posts: 230
Joined: Wed Mar 10, 2010 12:46 pm

Post by peter »

SetEnv.bat only contains SET commands, so it is not one of the SET commands.

What I think you are seeing is the fact that the script starts with "echo off" which puts the command prompt in a mode where you no longer see anything on the prompt.

Try doing "echo on" after calling the SetEnv.bat.
ClementG
Junior Member
Posts: 4
Joined: Wed Aug 24, 2016 3:19 pm

Post by ClementG »

Hi,

So, I have added "@echo on" to the SetEnv.bat script and also to the . bat script that runs SetEnv, but nothing abnormal came up. Only the blinking cursor of the command prompt appears.
I tried to put it on "very verbose" mode to catch every step of the code.

I put the snapshots of the prompt. (order of the screen capture : Capture 2 then Capture 3)

Cheers,

Clem
You do not have the required permissions to view the files attached to this post.