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

Search found 31 matches
CCS Forum Index
Author Message
  Topic: float variable problem
Milentije89

Replies: 6
Views: 20646

PostForum: General CCS C Discussion   Posted: Fri Feb 04, 2022 2:50 pm   Subject: float variable problem
Look at the symbol table. (it's in the .SYM file in your project folder)
Notice that 'string' has only 1 byte of memory assigned to it.
So when you write to 'string', it's over-writing variables th ...
  Topic: float variable problem
Milentije89

Replies: 6
Views: 20646

PostForum: General CCS C Discussion   Posted: Fri Feb 04, 2022 2:29 pm   Subject: float variable problem
595s are used to control 16 relays (via ULN2803). Nothing special. Have some 1 I2C sensor, one 4-20 mA sensor and one IR sensor (digital output).

Nothing complex.

Root of the problem is that it ...
  Topic: float variable problem
Milentije89

Replies: 6
Views: 20646

PostForum: General CCS C Discussion   Posted: Fri Feb 04, 2022 1:17 pm   Subject: float variable problem
Hi to everyone!

I have a really strange problem. It took me 2 days to find out what is happening, but I still don't know why.

MCU: 18F87J11
Compiler version: 5.075

This works.


#include ...
  Topic: Bootloader - Updating FW - SIOW works, TeraTerm doesn't
Milentije89

Replies: 30
Views: 69144

PostForum: General CCS C Discussion   Posted: Tue Apr 06, 2021 4:50 am   Subject: Bootloader - Updating FW - SIOW works, TeraTerm doesn't
Hi temtronic,

I only have FT232 and MCP2200 chips on hand.
I do not have any problem using them except this XON/XOFF thing in combination with TeraTerm, RealTerm or any other serial port except SI ...
  Topic: Bootloader - Updating FW - SIOW works, TeraTerm doesn't
Milentije89

Replies: 30
Views: 69144

PostForum: General CCS C Discussion   Posted: Tue Apr 06, 2021 4:04 am   Subject: Bootloader - Updating FW - SIOW works, TeraTerm doesn't
That is surprising.

Very!

The point about SIOW, is that it turns this on. Remember all the serial
programs merrily change the settings while they are running.

OK, lets say software (in this ...
  Topic: Bootloader - Updating FW - SIOW works, TeraTerm doesn't
Milentije89

Replies: 30
Views: 69144

PostForum: General CCS C Discussion   Posted: Tue Apr 06, 2021 3:49 am   Subject: Bootloader - Updating FW - SIOW works, TeraTerm doesn't
I did, doesn't work, as I wrote in previous post.
  Topic: Bootloader - Updating FW - SIOW works, TeraTerm doesn't
Milentije89

Replies: 30
Views: 69144

PostForum: General CCS C Discussion   Posted: Tue Apr 06, 2021 3:01 am   Subject: Bootloader - Updating FW - SIOW works, TeraTerm doesn't
That would mean there are two problems.

1. MCP2200 driver which doesn't work with XON/XOFF
2. TeraTerm and RealTerm do not work with XON/XOFF

I can't believe that Microchip has this kind of pro ...
  Topic: Bootloader - Updating FW - SIOW works, TeraTerm doesn't
Milentije89

Replies: 30
Views: 69144

PostForum: General CCS C Discussion   Posted: Tue Apr 06, 2021 1:51 am   Subject: Bootloader - Updating FW - SIOW works, TeraTerm doesn't
Hmmmm, few new things.

With FTDI chip on its latest drivers I see the difference in comparison with MCP2200.

When using MCP2200 DC3 and DC1 are passing through. But, with FT232RL they don't.

...
  Topic: Bootloader - Updating FW - SIOW works, TeraTerm doesn't
Milentije89

Replies: 30
Views: 69144

PostForum: General CCS C Discussion   Posted: Tue Apr 06, 2021 1:09 am   Subject: Bootloader - Updating FW - SIOW works, TeraTerm doesn't
I already have version 2.12.28 from 16.8.2017. Acording to FTDI website it is the latest one for FT232RL.

It does not work with TeraTerm, but with SIOW does.
  Topic: Bootloader - Updating FW - SIOW works, TeraTerm doesn't
Milentije89

Replies: 30
Views: 69144

PostForum: General CCS C Discussion   Posted: Mon Apr 05, 2021 1:07 pm   Subject: Bootloader - Updating FW - SIOW works, TeraTerm doesn't
Just tried an example on EasyPIC PRO V7 which has FTDI chip.

Same story. SIOW works, TeraTerm doesn't.
Tried copy from CMD, doesn't work.

Used:
PIC18F87K22
Serial bootloader from CCS C
CCS C ...
  Topic: Bootloader - Updating FW - SIOW works, TeraTerm doesn't
Milentije89

Replies: 30
Views: 69144

PostForum: General CCS C Discussion   Posted: Mon Apr 05, 2021 11:31 am   Subject: Bootloader - Updating FW - SIOW works, TeraTerm doesn't
Yes, SIOW handles it on its own.

I just tried to transfer the file to COM port in command prompt. I got the same behavior. So, MCP2200 drivers are the source of the problem. Or it might be OS.

...
  Topic: Bootloader - Updating FW - SIOW works, TeraTerm doesn't
Milentije89

Replies: 30
Views: 69144

PostForum: General CCS C Discussion   Posted: Mon Apr 05, 2021 9:56 am   Subject: Bootloader - Updating FW - SIOW works, TeraTerm doesn't
Already tried CR on receive and transmit in TeraTerm, nothing.

YAT (Yet another terminal) has option to turn this off, doesn't work.


I am googling about TeraTerm XON XOFF control and it seams ...
  Topic: Bootloader - Updating FW - SIOW works, TeraTerm doesn't
Milentije89

Replies: 30
Views: 69144

PostForum: General CCS C Discussion   Posted: Mon Apr 05, 2021 9:39 am   Subject: Bootloader - Updating FW - SIOW works, TeraTerm doesn't
No, I don't see that option.
  Topic: Bootloader - Updating FW - SIOW works, TeraTerm doesn't
Milentije89

Replies: 30
Views: 69144

PostForum: General CCS C Discussion   Posted: Mon Apr 05, 2021 8:23 am   Subject: Bootloader - Updating FW - SIOW works, TeraTerm doesn't
Tried all 12 possible combinations. Still doesn't work.
  Topic: Bootloader - Updating FW - SIOW works, TeraTerm doesn't
Milentije89

Replies: 30
Views: 69144

PostForum: General CCS C Discussion   Posted: Mon Apr 05, 2021 7:53 am   Subject: Bootloader - Updating FW - SIOW works, TeraTerm doesn't
SIOW always accepts XON/XOFF. It is _required_ for the bootload.
It is the only thing that can stop the transmission while the programming
actually takes place. It handles this internally.
Now, ...
 
Page 1 of 3 Goto page 1, 2, 3  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group