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 30 matches
CCS Forum Index
Author Message
  Topic: Trouble using SPI Flash memory SST25VF010A
thibow

Replies: 13
Views: 21815

PostForum: General CCS C Discussion   Posted: Thu May 31, 2012 8:17 am   Subject: Trouble using SPI Flash memory SST25VF010A
Thank you for your advices. I did a mistake in my comment, but everything was right in the code. I have then implemented the Hold pin, that I didn't before !

I have switched to C18 as I already mad ...
  Topic: Trouble using SPI Flash memory SST25VF010A
thibow

Replies: 13
Views: 21815

PostForum: General CCS C Discussion   Posted: Wed May 30, 2012 7:59 pm   Subject: Trouble using SPI Flash memory SST25VF010A
Thank you for your suggestion.
I have used read_spi as well, but I remember from another project that there are troubles in CCS library while reading or writing (I don't remember which as there is al ...
  Topic: Trouble using SPI Flash memory SST25VF010A
thibow

Replies: 13
Views: 21815

PostForum: General CCS C Discussion   Posted: Wed May 30, 2012 3:02 pm   Subject: Trouble using SPI Flash memory SST25VF010A
Hello, I have switched to a PIC 18F2620 which has UART and SPI pins separated, and I am now on C18 compiler.. which doesn't change much.. I have exactly the same problem, (except that my UART is ok no ...
  Topic: Trouble using SPI Flash memory SST25VF010A
thibow

Replies: 13
Views: 21815

PostForum: General CCS C Discussion   Posted: Wed May 30, 2012 2:51 pm   Subject: Trouble using SPI Flash memory SST25VF010A
First of all, thank you very much for your help

- Post your compiler version number. Some versions have known problems.
- What are the voltages used for your processor and for the flash memory? Th ...
  Topic: Trouble using SPI Flash memory SST25VF010A
thibow

Replies: 13
Views: 21815

PostForum: General CCS C Discussion   Posted: Tue May 29, 2012 12:31 pm   Subject: Trouble using SPI Flash memory SST25VF010A
I have just checked with a scope where the problem could come from.

#HOLD is high
#WP is high
SCLK is ok
SI is ok
#CE goes down when I send or read something and high afterwards
SO does not s ...
  Topic: Trouble using SPI Flash memory SST25VF010A
thibow

Replies: 13
Views: 21815

PostForum: General CCS C Discussion   Posted: Tue May 29, 2012 7:51 am   Subject: Trouble using SPI Flash memory SST25VF010A
A few more notes:
1) The call to malloc uses a variable 'length' which is uninitialized.
2) Use of malloc in an embedded application is not recommended because memory fragmentation could cause probl ...
  Topic: Trouble using SPI Flash memory SST25VF010A
thibow

Replies: 13
Views: 21815

PostForum: General CCS C Discussion   Posted: Tue May 29, 2012 7:24 am   Subject: Trouble using SPI Flash memory SST25VF010A
Hello,

@newguy: Thank you for your help, I have added "PUT" to the fuses and a while(1); at the end of my main, but I still got nothing as output (plus the microcontroller reset as it pr ...
  Topic: Trouble using SPI Flash memory SST25VF010A
thibow

Replies: 13
Views: 21815

PostForum: General CCS C Discussion   Posted: Mon May 28, 2012 2:51 pm   Subject: Trouble using SPI Flash memory SST25VF010A
Hello,

I've been looking around to find any sample code to compare with what I am doing, but I couldn't find anything that solved my problem. I am simply trying to read the status register of the m ...
  Topic: nRF24L01+ full driver by Eduardo Guilherme Brandt
thibow

Replies: 286
Views: 1379618

PostForum: Code Library   Posted: Thu May 03, 2012 8:41 am   Subject: nRF24L01+ full driver by Eduardo Guilherme Brandt
Hello Eduardo, as I implemented you files and built my project, i got some buildings errors on your nRF24L01P.C

Attempt to create a pointer to a constant on line:
RF24_TX_putbuffer(fal ...
  Topic: nRF24L01+ full driver by Eduardo Guilherme Brandt
thibow

Replies: 286
Views: 1379618

PostForum: Code Library   Posted: Thu May 03, 2012 7:26 am   Subject: nRF24L01+ full driver by Eduardo Guilherme Brandt
That's great thank you very much
  Topic: nRF24L01+ full driver by Eduardo Guilherme Brandt
thibow

Replies: 286
Views: 1379618

PostForum: Code Library   Posted: Wed May 02, 2012 5:57 pm   Subject: nRF24L01+ full driver by Eduardo Guilherme Brandt
Thank you very much Eduardo for your library, I will manage to use it but I need one more explication. When you say "it will asks you for the pins. " You mean I should set the pin, but where ...
  Topic: nRF24L01 using PIC18F2550 and CCS compiler with Brennen lib
thibow

Replies: 3
Views: 11750

PostForum: General CCS C Discussion   Posted: Wed May 02, 2012 5:53 pm   Subject: nRF24L01 using PIC18F2550 and CCS compiler with Brennen lib
well, I managed to understand that what was wrong was the fact that this library uses variable names that are reserved (such as byte)... I'll have a closer look at Eduardo's library much more recent a ...
  Topic: nRF24L01 using PIC18F2550 and CCS compiler with Brennen lib
thibow

Replies: 3
Views: 11750

PostForum: General CCS C Discussion   Posted: Wed May 02, 2012 1:26 pm   Subject: nRF24L01 using PIC18F2550 and CCS compiler with Brennen lib
Hello,
I'm trying to get my nRF24L01+ board working with 2 Pic 18LF2550. Thank's to Brennen's library I managed to understand how it works but I am facing some building's errors as I modified some mi ...
  Topic: 2 PIC18 can't talk using SPI connection..
thibow

Replies: 29
Views: 35023

PostForum: General CCS C Discussion   Posted: Mon Apr 16, 2012 10:13 am   Subject: 2 PIC18 can't talk using SPI connection..
The best way not to get confused is to use spi_read() for both read AND write and use the return value if needed... avoiding spi_write

Thank you very much for your explanation, it's clear now.
  Topic: 2 PIC18 can't talk using SPI connection..
thibow

Replies: 29
Views: 35023

PostForum: General CCS C Discussion   Posted: Mon Apr 16, 2012 9:52 am   Subject: 2 PIC18 can't talk using SPI connection..
It is great it works the way I want. The weird thing is that If I write
spi_write() it writes only, and spi_read() writes and reads.. why is there a read then...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group