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 15 matches
CCS Forum Index
Author Message
  Topic: Analog input AN9 pin_B4 drives high (pic18f46k80)
tolliug

Replies: 3
Views: 11187

PostForum: General CCS C Discussion   Posted: Wed Mar 13, 2019 10:34 am   Subject: Analog input AN9 pin_B4 drives high (pic18f46k80)
Hi Everyone,

On our last project, we want to use pin_B4 as analog input. ADC is configured as:

setup_adc( ADC_CLOCK_INTERNAL );
setup_adc_ports( sAN1 | sAN4 | sAN6 | sAN7 | sAN9) ...
  Topic: write_program_memory PIC18F46k80 Bootloader
tolliug

Replies: 12
Views: 26450

PostForum: General CCS C Discussion   Posted: Thu Dec 13, 2018 2:30 am   Subject: write_program_memory PIC18F46k80 Bootloader
Hello Ttelmah, There's definitely something wrong with the way I try to update program memory.

I am using CCSInfo IDE and ICD-U64. To check if program memory has been updated I am running the boot ...
  Topic: write_program_memory PIC18F46k80 Bootloader
tolliug

Replies: 12
Views: 26450

PostForum: General CCS C Discussion   Posted: Wed Dec 12, 2018 3:44 am   Subject: write_program_memory PIC18F46k80 Bootloader
I am testing the write behavior using ccsinfo debugging mode and an ICD-U64 programmer, maybe you are right this might be not possible while debugging...

I will try your test code.
  Topic: write_program_memory PIC18F46k80 Bootloader
tolliug

Replies: 12
Views: 26450

PostForum: General CCS C Discussion   Posted: Wed Dec 12, 2018 2:25 am   Subject: write_program_memory PIC18F46k80 Bootloader
Here's the fuses:

Configuration Fuses:
Word 1: 5215 VREGSLEEP INTRC_HP SOSC_DIG NOXINST HSH PLLEN FCMEN NOIESO
Word 2: 3469 NOPUT NOBROWNOUT BORV27 ZPBORM NOWDT WDT8192
...
  Topic: write_program_memory PIC18F46k80 Bootloader
tolliug

Replies: 12
Views: 26450

PostForum: General CCS C Discussion   Posted: Tue Dec 11, 2018 11:09 am   Subject: write_program_memory PIC18F46k80 Bootloader

//memory program method
// unoptimized should use pointer instead of vreating new vars
void write_prog(int32 addr, int32 cpt_block, int8 * global_buffer,int8 received_size)
{
...
  Topic: write_program_memory PIC18F46k80 Bootloader
tolliug

Replies: 12
Views: 26450

PostForum: General CCS C Discussion   Posted: Tue Dec 11, 2018 10:30 am   Subject: write_program_memory PIC18F46k80 Bootloader
I understand that and now create a 64 bytes array that I fill in with CAN data. however I still miss something because ROM is not update (my write method is wrong... and need to first understand why.. ...
  Topic: write_program_memory PIC18F46k80 Bootloader
tolliug

Replies: 12
Views: 26450

PostForum: General CCS C Discussion   Posted: Tue Dec 11, 2018 5:11 am   Subject: write_program_memory PIC18F46k80 Bootloader
From datasheet of pic18F46k80 (section 7,0 page 125), erase block size is 64 bytes and write block size is also 64 bytes. From CCS compiler documentation, page 90:
For chips where getenv("FLASH ...
  Topic: write_program_memory PIC18F46k80 Bootloader
tolliug

Replies: 12
Views: 26450

PostForum: General CCS C Discussion   Posted: Fri Dec 07, 2018 5:31 am   Subject: write_program_memory PIC18F46k80 Bootloader
Hello,

I am working on a CAN bus bootloader for a PIC18F46K80. HEX file is received through CAN bus (without line preamble and Checksum) by packets of 6 bytes at most and stored in a temp_buffer (i ...
  Topic: PIC18F46K80 and mcp2561
tolliug

Replies: 10
Views: 21905

PostForum: General CCS C Discussion   Posted: Wed Sep 12, 2018 1:48 am   Subject: PIC18F46K80 and mcp2561
I changed the transceiver on a second unit but problem still occurs, less often but still there. I rechecked the transceiver and Rx toggle properly however the pic does not seems to see anything. I wi ...
  Topic: PIC18F46K80 and mcp2561
tolliug

Replies: 10
Views: 21905

PostForum: General CCS C Discussion   Posted: Fri Sep 07, 2018 7:25 am   Subject: PIC18F46K80 and mcp2561
Weird changing the transceiver by hand soldering seems to solve the problem...
  Topic: PIC18F46K80 and mcp2561
tolliug

Replies: 10
Views: 21905

PostForum: General CCS C Discussion   Posted: Thu Sep 06, 2018 6:09 am   Subject: PIC18F46K80 and mcp2561
When the problem occurs, the reception of messages does not work neither. I do not succeed to enable a loopback mode is there any tutorial?
  Topic: PIC18F46K80 and mcp2561
tolliug

Replies: 10
Views: 21905

PostForum: General CCS C Discussion   Posted: Tue Sep 04, 2018 10:00 am   Subject: PIC18F46K80 and mcp2561
Ok I am back from holidays, tomorrow I will try to restart the can peripheral and will let you know. I hope this will help (the strange thing is that the problem occurs only on 2 board over tens).
  Topic: PIC18F46K80 and mcp2561
tolliug

Replies: 10
Views: 21905

PostForum: General CCS C Discussion   Posted: Fri Aug 10, 2018 1:20 am   Subject: PIC18F46K80 and mcp2561
This could have been the issue but no, parts are well mcp2561E. I am already aware about ESD issue with MCP2551. Now the questions are, may I solve the issue in a software manner (how to know that CAN ...
  Topic: PIC18F46K80 and mcp2561
tolliug

Replies: 10
Views: 21905

PostForum: General CCS C Discussion   Posted: Thu Aug 09, 2018 11:39 am   Subject: PIC18F46K80 and mcp2561
The thing is that the devices are connected to standard M12(5pins) connectors. I observed the same lock while switching on the power supply. I decided to change the board to investigate in the office ...
  Topic: PIC18F46K80 and mcp2561
tolliug

Replies: 10
Views: 21905

PostForum: General CCS C Discussion   Posted: Thu Aug 09, 2018 10:46 am   Subject: PIC18F46K80 and mcp2561
Hi everyone, I am observing a strange thing using a custom board and mcp2561. On a subset of 2 boards over 10, the following phenomena occurs. If I plug the GND after VCC these two boards fail at send ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group