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 22 matches
CCS Forum Index
Author Message
  Topic: Change PIN at Runtime
PeWa

Replies: 4
Views: 16405

PostForum: General CCS C Discussion   Posted: Sat Nov 27, 2021 8:43 am   Subject: Re: Change PIN at Runtime
In many examples we can use for example a #Define Pin_to_Use PIN_D1.

This is used when compiler generate the code.

However I have seen an example of change the PIN in runtime like this:

int ...
  Topic: Change PIN at Runtime
PeWa

Replies: 4
Views: 16405

PostForum: General CCS C Discussion   Posted: Sat Nov 27, 2021 5:02 am   Subject: Change PIN at Runtime
In many examples we can use for example a #Define Pin_to_Use PIN_D1.

This is used when compiler generate the code.

However I have seen an example of change the PIN in runtime like this:

int ...
  Topic: Function Used but not defined
PeWa

Replies: 2
Views: 12611

PostForum: General CCS C Discussion   Posted: Tue Jun 15, 2021 12:32 pm   Subject: Function Used but not defined
Ttelmah, thanks for input.

I have fixed it, some time it is worth taking a pause and come back to the code.

The problem was that I had only the header file included in main
but the .c file and ...
  Topic: Function Used but not defined
PeWa

Replies: 2
Views: 12611

PostForum: General CCS C Discussion   Posted: Tue Jun 15, 2021 3:19 am   Subject: Function Used but not defined
Hello a quick question before I post more code.
Compiler 5.076 PIC30F4011

I am up to convert a C file for a Analog DDS chip from Linux C to CCS C.

Almost done but
I got "not defined erro ...
  Topic: dsPIC30F4011 setup_spi and #use spi parameters
PeWa

Replies: 3
Views: 14328

PostForum: General CCS C Discussion   Posted: Sun May 02, 2021 2:07 am   Subject: dsPIC30F4011 setup_spi and #use spi parameters
Big problem is the parameters you are trying to use in #USE SPI. The SPI
hardware cannot support separate times for the high and low parts of the
cycle. Look at the data sheet. The only control is ...
  Topic: dsPIC30F4011 setup_spi and #use spi parameters
PeWa

Replies: 3
Views: 14328

PostForum: General CCS C Discussion   Posted: Sat May 01, 2021 11:20 am   Subject: dsPIC30F4011 setup_spi and #use spi parameters
I have some problem to manually set spi parameters it does not work
I am copying a spi transfer from another circuit and I try to build the
same data and clock.

The clock shift is now right ON t ...
  Topic: "Pointer type do not match" error MMCSD.c and FAT.
PeWa

Replies: 21
Views: 42431

PostForum: General CCS C Discussion   Posted: Sat Jan 11, 2020 8:29 am   Subject: "Pointer type do not match" error MMCSD.c and FAT.
OK, basic Hardware questions.... What voltage is the PIC VDD and what interface is between PIC and SD card ?

I run MCU on 3.3V and SDcard from the same 3V3 line, it is a demoboard Olimex PIC-WEB i ...
  Topic: "Pointer type do not match" error MMCSD.c and FAT.
PeWa

Replies: 21
Views: 42431

PostForum: General CCS C Discussion   Posted: Fri Jan 10, 2020 3:33 am   Subject: "Pointer type do not match" error MMCSD.c and FAT.
One of the first things to try is to read the sticky thread in the code library about mmcsd.c and fat.c to fix the library (MBR fix) and the sticky thread about SD card in the General CCS C Discussion ...
  Topic: "Pointer type do not match" error MMCSD.c and FAT.
PeWa

Replies: 21
Views: 42431

PostForum: General CCS C Discussion   Posted: Fri Jan 10, 2020 2:30 am   Subject: "Pointer type do not match" error MMCSD.c and FAT.
OK, basic Hardware questions.... What voltage is the PIC VDD and what interface is between PIC and SD card ?

I run MCU on 3.3V and SDcard from the same 3V3 line, it is a demoboard Olimex PIC-WEB i ...
  Topic: "Pointer type do not match" error MMCSD.c and FAT.
PeWa

Replies: 21
Views: 42431

PostForum: General CCS C Discussion   Posted: Thu Jan 09, 2020 9:44 am   Subject: "Pointer type do not match" error MMCSD.c and FAT.
Hello again.

I tested the disp_fat_stats() and it showed strange values or same values
on different SD cards so I understand that it could be some wrong with the wiring.

However I also changed ...
  Topic: "Pointer type do not match" error MMCSD.c and FAT.
PeWa

Replies: 21
Views: 42431

PostForum: General CCS C Discussion   Posted: Tue Jan 07, 2020 3:18 am   Subject: "Pointer type do not match" error MMCSD.c and FAT.
Hi Ttelmah

I'm on it I included ex_fat , it seems to be conflicts with drivers,
it use fat.c from driver lib, I have compiled it OK but must sort out what happens.

I saw that I could get medi ...
  Topic: "Pointer type do not match" error MMCSD.c and FAT.
PeWa

Replies: 21
Views: 42431

PostForum: General CCS C Discussion   Posted: Mon Jan 06, 2020 1:16 pm   Subject: "Pointer type do not match" error MMCSD.c and FAT.
Yep I have the

#device PASS_STRINGS=IN_RAM

in top of header file after #include processor defs.


If I set FILE *file_stream to a pointer with *
I get the same error again that the function ...
  Topic: "Pointer type do not match" error MMCSD.c and FAT.
PeWa

Replies: 21
Views: 42431

PostForum: General CCS C Discussion   Posted: Mon Jan 06, 2020 11:50 am   Subject: "Pointer type do not match" error MMCSD.c and FAT.
Ok I get rid of the Pointer now and it found the function but


FILE file_stream;

char filename[] = "Logg.txt";

mmcsd_init();
fat_init();
...
  Topic: "Pointer type do not match" error MMCSD.c and FAT.
PeWa

Replies: 21
Views: 42431

PostForum: General CCS C Discussion   Posted: Mon Jan 06, 2020 10:52 am   Subject: "Pointer type do not match" error MMCSD.c and FAT.
Ok

1 thing left then.

I now try to open a file that is created on the SD media Logg.txt

FILE *file_stream;

char filename
if(set_file(target_file, 0x10, &cur_stream ...
  Topic: "Pointer type do not match" error MMCSD.c and FAT.
PeWa

Replies: 21
Views: 42431

PostForum: General CCS C Discussion   Posted: Mon Jan 06, 2020 8:55 am   Subject: "Pointer type do not match" error MMCSD.c and FAT.
Hi Ttelmah

Thank's for reply.

Puhh a lot of changes I have made now.

I have get rid of lot of warnings now but a couple still show up.

I have set Signed int to int8 but how about int16 a ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group