CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

bootloader
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
SeeCwriter



Joined: 18 Nov 2013
Posts: 162

View user's profile Send private message

PostPosted: Mon Mar 07, 2016 1:06 pm     Reply with quote

Continuing the bootloader issue, even though I have it working with my PC, there are several other PCs in the company that are unable to load an application image.

All PCs are using Tera Term v4.89. I have used the same serial cables on all the PCs. I am loading the same application image. I've scoped the RS-232 signals from all the PCs and they are all the same. Yet several are unable to successfully load the image. Tera Term goes through the motions, and appears to end normally, but the PIC won't boot or run afterward.

Any ideas on what else I might looked for?
Ttelmah



Joined: 11 Mar 2010
Posts: 20061

View user's profile Send private message

PostPosted: Mon Mar 07, 2016 1:23 pm     Reply with quote

Flow control settings.

Xon/Xoff flow control must be enabled for the bootloader upload to work.
SeeCwriter



Joined: 18 Nov 2013
Posts: 162

View user's profile Send private message

PostPosted: Mon Mar 07, 2016 5:47 pm     Reply with quote

I didn't mention it, but the port settings were all the same between all the PCs. I went through every menu screen and verified the settings on each PC. And Xon/Xoff was enabled on all PCs.
temtronic



Joined: 01 Jul 2010
Posts: 9632
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Mon Mar 07, 2016 8:16 pm     Reply with quote

What OS ? What about supervisor/user access rights ? File protections ? Other applications ? Anything newer than W98 is full of 'overhead' that cn make you lose a lot of time and hair over !!!
I'd record EACH PC OS, setup, etc. to see what's common on the ones that fail to perform.

Jay
Jerson



Joined: 31 Jul 2009
Posts: 133
Location: Bombay, India

View user's profile Send private message Visit poster's website

PostPosted: Mon Mar 07, 2016 9:34 pm     Reply with quote

I would hazard a guess that the PCs which did not work are running on a USB-serial connection.
Ttelmah



Joined: 11 Mar 2010
Posts: 20061

View user's profile Send private message

PostPosted: Tue Mar 08, 2016 1:53 am     Reply with quote

SeeCwriter wrote:
I didn't mention it, but the port settings were all the same between all the PCs. I went through every menu screen and verified the settings on each PC. And Xon/Xoff was enabled on all PCs.


Are you talking the Teraterm port settings, or the Windows port settings?. I'd make sure both are set to Xon/Xoff.
SeeCwriter



Joined: 18 Nov 2013
Posts: 162

View user's profile Send private message

PostPosted: Tue Mar 08, 2016 8:50 am     Reply with quote

The serial ports used on the PCs were not USB ports with a serial adapter. They were standard RS-232 ports using 9-pin D-sub connectors on the motherboard of the PC.

Using a scope I can see the Xon/Xoff commands going back to the PC. But it's being suggested that Tera Term on some PCs doesn't enable Xon/Xoff but on others it does? That seems far fetched, but I will look into it.

All the PCs are Win7 Pro. It's interesting that someone mentioned supervisor/user access rights, because all the PCs that don't work are ones that our IT dept has seriously locked down. That's something that I considered briefly, but since other files can be sent successfully with those PCs I rejected the idea. Also, wouldn't I get an error message if the file could not be accessed or that Tera Term could not run?
Ttelmah



Joined: 11 Mar 2010
Posts: 20061

View user's profile Send private message

PostPosted: Tue Mar 08, 2016 9:22 am     Reply with quote

What happens is that TeraTerm itself, does not handle Xon/Xoff. What it does is signal the serial driver to enable this. It is possible to lock the serial driver, so it won't accept this command. However if Xon/Xoff is already enabled in the driver, then it will work.
Hence it is always safest to first enable it in the driver, and then in TeraTerm. If you can't enable it in the driver, then neither can TeraTerm....
SeeCwriter



Joined: 18 Nov 2013
Posts: 162

View user's profile Send private message

PostPosted: Tue Mar 08, 2016 9:48 am     Reply with quote

Wouldn't the same be true of the baud rate? I've verified I can change the baud rate in Tera Term.
Ttelmah



Joined: 11 Mar 2010
Posts: 20061

View user's profile Send private message

PostPosted: Tue Mar 08, 2016 9:57 am     Reply with quote

Funnily enough, no. Xon/Xoff, is specifically the one that gives problems. I think there is an internal difference in how this is 'exposed' by the driver interface. There also seem to be some drivers that just do not accept the command to enable it from a program, but have to have it set in the driver.

As a separate question though, 'are the versions of TeraTerm the same'?. There is a known issue on enabling Xon/Xoff in some versions.

Remember it is the PIC that is sending these, and it is then the driver/terminal program that has to respond to these. If data is being sent after Xoff is sent, before the next Xon, then 'you have your answer'. It's then a matter of finding how to fix it!...
SeeCwriter



Joined: 18 Nov 2013
Posts: 162

View user's profile Send private message

PostPosted: Tue Mar 08, 2016 10:01 am     Reply with quote

That's good information. I will investigate this further.

Yes, all the PCs have the same version of Tera Term, v4.89.
newguy



Joined: 24 Jun 2004
Posts: 1934

View user's profile Send private message

PostPosted: Tue Mar 08, 2016 11:19 am     Reply with quote

SeeCwriter wrote:
...It's interesting that someone mentioned supervisor/user access rights, because all the PCs that don't work are ones that our IT dept has seriously locked down...


Seriously, what harm could possibly come from unlocking the serial port? I really hate when the IT department's policies end up crippling engineering/production/test.

[OFF TOPIC IT RANT]

When we migrated to W7, our IT department initially did not grant me admin privileges, as per their policy. It took precisely 30 hours for them to grant me admin privileges because I was constantly asking for support/override so that I could install/run all of the various tools I need to use in order to do my job.

In the ~5 years since, we've had at least 12 major infections caused by "standard" users with no admin privileges downloading viruses (or bringing viruses from home on USB thumb drives so they can back up their photos to our servers!), including one person that was stupid enough to click a "your PC is infected!" popup which encrypted most of the data on one of our critical servers.

IT policies don't stop viruses.
SeeCwriter



Joined: 18 Nov 2013
Posts: 162

View user's profile Send private message

PostPosted: Tue Mar 08, 2016 11:38 am     Reply with quote

Quote:

IT policies don't stop viruses.


Correct, they stop progress. But you'll never convince them of that. Water off a duck's back.
temtronic



Joined: 01 Jul 2010
Posts: 9632
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Tue Mar 08, 2016 3:28 pm     Reply with quote

Every 'ENG PC' here is fully open and the 'TEST PCs' do NOT have Interent access (no need !).
Quickest way to get IT to 'open access' a PC, call then at 2:30 in the morning, telling them to get their butts down and ifx it cause the 'guy who signs their paycheck' wants it 'up and running' for the client at 9 AM.
BTDT it works...

Sad thing is there are NO standards anymore. One machine handles the USB ports on one 'chip' differently than then other 'chip' on the same motherboard! TRY to figure that one out...at 2:30 in the morning....

Jay
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group