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 103 matches
CCS Forum Index
Author Message
  Topic: Write-protect boot and program memory
kgng97ccs

Replies: 15
Views: 4855

PostForum: General CCS C Discussion   Posted: Tue Feb 11, 2025 3:13 am   Subject: Write-protect boot and program memory
Thank you, Ttelmah and Temtronic, for your suggestions.
Our temperature logger has no all-round insulator inside the plastic casing. Also, our battery is not able to support a heater because of its l ...
  Topic: Write-protect boot and program memory
kgng97ccs

Replies: 15
Views: 4855

PostForum: General CCS C Discussion   Posted: Mon Jan 27, 2025 4:05 am   Subject: Write-protect boot and program memory
Thank you, Ttelmah and Temtronic. When we designed this product, we actually did not intend for it to be used below -40°C, so we did not choose components rated to -45°C. For now, we will do our bes ...
  Topic: Write-protect boot and program memory
kgng97ccs

Replies: 15
Views: 4855

PostForum: General CCS C Discussion   Posted: Thu Jan 23, 2025 8:39 pm   Subject: Write-protect boot and program memory
Thank you, Ttelmah and Temtronic. We will enable the BROWNOUT and PUT and continue to observe. This product is a cold-chain temperature logger. It uses a lithium thionyl chloride (Li-SOCl2) battery ra ...
  Topic: Write-protect boot and program memory
kgng97ccs

Replies: 15
Views: 4855

PostForum: General CCS C Discussion   Posted: Wed Jan 22, 2025 4:44 am   Subject: Write-protect boot and program memory
Thank you, Telmah.

In the field, the bootloader mode is unlikely to happen in normal use, as that would require a combination of MCU reset and external button press. There is a temperature sensor o ...
  Topic: Write-protect boot and program memory
kgng97ccs

Replies: 15
Views: 4855

PostForum: General CCS C Discussion   Posted: Tue Jan 21, 2025 10:10 pm   Subject: Write-protect boot and program memory
Thank you, Ttelmah.

My main concern is not about prevention from external reading and writing, but I have observed some cases of corruption of program memory during runtime. The device can be expos ...
  Topic: Write-protect boot and program memory
kgng97ccs

Replies: 15
Views: 4855

PostForum: General CCS C Discussion   Posted: Tue Jan 21, 2025 1:55 am   Subject: Write-protect boot and program memory
Environment: PIC18LF46K22, MPLAB 8.92, CCS v5.115

I am trying to resolve an issue I am facing. I am using a bootloader and a serial loaded application on the PIC18LF46K22.

Bootloader: #fuses WRT ...
  Topic: Out of ROM, A segment or the program is too large
kgng97ccs

Replies: 18
Views: 22603

PostForum: General CCS C Discussion   Posted: Wed Jan 03, 2024 7:16 am   Subject: Out of ROM, A segment or the program is too large
Thank you, Ttelmah. I see your point.

For a moment, I forgot that RAM is volatile memory.
  Topic: Out of ROM, A segment or the program is too large
kgng97ccs

Replies: 18
Views: 22603

PostForum: General CCS C Discussion   Posted: Wed Jan 03, 2024 5:39 am   Subject: Out of ROM, A segment or the program is too large
I have managed to get the ROM usage down to 95% (from 100%) by doing the following (I have “opt compress” in my code).
1. Abbreviating some text in fprintf() statements.
2. Consolidating sequent ...
  Topic: Out of ROM, A segment or the program is too large
kgng97ccs

Replies: 18
Views: 22603

PostForum: General CCS C Discussion   Posted: Tue Jan 02, 2024 12:39 am   Subject: Out of ROM, A segment or the program is too large
Thank you, Newguy and Ttelmah. Yes, the example helps.

1. If I am passing a string constant declared in an array, I will not need to use the directive “#device PASS_STRINGS=IN_RAM”. Is this cor ...
  Topic: Out of ROM, A segment or the program is too large
kgng97ccs

Replies: 18
Views: 22603

PostForum: General CCS C Discussion   Posted: Mon Jan 01, 2024 3:51 am   Subject: Out of ROM, A segment or the program is too large
Thank you, everyone, for your ideas.

So far, by shortening the text in fprintf statements by using abbreviations for some words, I have managed to get the ROM usage down to 97% (not much, but at le ...
  Topic: Out of ROM, A segment or the program is too large
kgng97ccs

Replies: 18
Views: 22603

PostForum: General CCS C Discussion   Posted: Sat Dec 30, 2023 7:20 am   Subject: Out of ROM, A segment or the program is too large
Thank you, Ttelmah and Temtronic.

My code can now compile, but with 99% ROM usage (I removed a function that is not called):
Memory usage: ROM=99% RAM=61% - 67%

I am still looking into h ...
  Topic: Out of ROM, A segment or the program is too large
kgng97ccs

Replies: 18
Views: 22603

PostForum: General CCS C Discussion   Posted: Sat Dec 30, 2023 3:33 am   Subject: Out of ROM, A segment or the program is too large
I am using the PIC18LF46K22 MCU, MPLAB IDE v8.92, and CCS C compiler v5.115.

I am referencing this helpful reply from Ttelmah regarding optimizing code (https://ccsinfo.com/forum/viewtopic.php?t=59 ...
  Topic: Using the watchdog timer
kgng97ccs

Replies: 5
Views: 16065

PostForum: General CCS C Discussion   Posted: Wed Jun 28, 2023 1:56 am   Subject: Using the watchdog timer
Thank you, Ttelmah.

1. Is there a CCS statement I can use to check, at any time, whether the watchdog timer is enabled (ON) or not (OFF)?
2. Is there a CCS statement I can use to check, at any t ...
  Topic: Using the watchdog timer
kgng97ccs

Replies: 5
Views: 16065

PostForum: General CCS C Discussion   Posted: Sun Jun 25, 2023 4:35 am   Subject: Using the watchdog timer
Thank you, Ttelmah, for your input.

From some testing, I observed the following:
1. If NOWDT is explicitly placed in the fuses, there seems to be no way to turn ON the watchdog timer.
2. Once WDT ...
  Topic: Counting number of MCU resets
kgng97ccs

Replies: 8
Views: 19177

PostForum: General CCS C Discussion   Posted: Sat Jun 17, 2023 6:09 am   Subject: Counting number of MCU resets
Thank you, Ttelmah.

1. Currently, button2 is used to perform a certain function if it is pressed for at least 3 seconds:timeout_ct = 0;

while (input(button2_pin)==0 && timeo ...
 
Page 1 of 7 Goto page 1, 2, 3, 4, 5, 6, 7  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group