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 10 matches
CCS Forum Index
Author Message
  Topic: PIC24 + enc28j60 freeze
pomakmrysen

Replies: 23
Views: 44972

PostForum: General CCS C Discussion   Posted: Fri Sep 29, 2017 11:39 am   Subject: PIC24 + enc28j60 freeze
Yeah its address trap but in internal memory not external eeprom. Do you have some code that will work on 24 ?
  Topic: PIC24 + enc28j60 freeze
pomakmrysen

Replies: 23
Views: 44972

PostForum: General CCS C Discussion   Posted: Thu Sep 28, 2017 12:32 pm   Subject: PIC24 + enc28j60 freeze
I am not writing the code, its compiler generated from project wizard . I try to run it.
  Topic: PIC24 + enc28j60 freeze
pomakmrysen

Replies: 23
Views: 44972

PostForum: General CCS C Discussion   Posted: Thu Sep 28, 2017 12:03 pm   Subject: PIC24 + enc28j60 freeze
This is the function

void memcpypgm2ram(unsigned int8 *pDst, rom unsigned int8 *pSrc, size_t n)
{
unsigned int8 c;
debug_printf(debug_putc, "\r\nmemcpypgm2r ...
  Topic: PIC24 + enc28j60 freeze
pomakmrysen

Replies: 23
Views: 44972

PostForum: General CCS C Discussion   Posted: Thu Sep 28, 2017 10:14 am   Subject: PIC24 + enc28j60 freeze
Hello everybody, problem was faulty pic. I also tried library with PIC18 working well. Now i try with PIC24HJ128GP202 and when try to reach web page address trap occur. I take the address of trap from ...
  Topic: PIC24 + enc28j60 freeze
pomakmrysen

Replies: 23
Views: 44972

PostForum: General CCS C Discussion   Posted: Sat Sep 16, 2017 9:28 am   Subject: PIC24 + enc28j60 freeze
Directly using the interrupt flag for the ADC, suggests non CCS code being ported. Possibly an incorrect register address. The test for the ADC flag in CCS is:

while(!interrupt_active(INT_A ...
  Topic: PIC24 + enc28j60 freeze
pomakmrysen

Replies: 23
Views: 44972

PostForum: General CCS C Discussion   Posted: Fri Sep 15, 2017 1:23 pm   Subject: PIC24 + enc28j60 freeze
Before first freeze AD1CON1 is set to 0x80E4 in library file


AD1CON1 = 0x80E4; // Turn on the A/D module, auto-convert

T1CON = 0x8000; // TON = 1, no prescalar
PR1 = 0x ...
  Topic: PIC24 + enc28j60 freeze
pomakmrysen

Replies: 23
Views: 44972

PostForum: General CCS C Discussion   Posted: Fri Sep 15, 2017 11:56 am   Subject: PIC24 + enc28j60 freeze
I see now maybe some interrupt problem. First time freeze waiting adc interrupt flag:
while(!IFS0bits.AD1IF);

Second time waiting for spi interrupt flag:

#define ENC_SPI_IF IFS0b ...
  Topic: PIC24 + enc28j60 freeze
pomakmrysen

Replies: 23
Views: 44972

PostForum: General CCS C Discussion   Posted: Fri Sep 15, 2017 10:53 am   Subject: PIC24 + enc28j60 freeze
Connections are ok, checked many times...
Check the connections between the PIC and the ENC with an ohmmeter
and post the list of connections.
Post the pin numbers (and the package used for the PI ...
  Topic: PIC24 + enc28j60 freeze
pomakmrysen

Replies: 23
Views: 44972

PostForum: General CCS C Discussion   Posted: Thu Sep 14, 2017 10:56 am   Subject: PIC24 + enc28j60 freeze
Connections are ok, checked many times...
  Topic: PIC24 + enc28j60 freeze
pomakmrysen

Replies: 23
Views: 44972

PostForum: General CCS C Discussion   Posted: Thu Sep 14, 2017 10:40 am   Subject: PIC24 + enc28j60 freeze
Hello,

I tried to use PIC24FJ128GA202 with enc28j60 and tcp/ip library but the pic freezes. This is my code:


#include <main.h>

#include <ctype.h>
#include <errno.h>
#in ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group