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 6 matches
CCS Forum Index
Author Message
  Topic: rom mapping of a constant
[email protected]

Replies: 5
Views: 13679

PostForum: General CCS C Discussion   Posted: Fri Oct 27, 2017 1:15 am   Subject: rom mapping of a constant
Hi "Ttelmah",
I try with your suggested code but some error and warning was generated....

*** Error 27 "Graphics.c" Line 26(18,19): Expression must evaluate to a constant
*** ...
  Topic: rom mapping of a constant
[email protected]

Replies: 5
Views: 13679

PostForum: General CCS C Discussion   Posted: Thu Oct 26, 2017 7:11 am   Subject: rom mapping of a constant
Hi to all,
I've a problem regarding the rom position of a constant.

The code:

#include <18F67K22.h>

...
#org 0x00800, 0x00C00, default // <<<------- desired position
rom ...
  Topic: #org an const variable ROM placement
[email protected]

Replies: 8
Views: 19170

PostForum: General CCS C Discussion   Posted: Fri Mar 25, 2016 3:31 am   Subject: #org an const variable ROM placement
The only differences from my code and your code is the dimension, for my isnt declared

#org 0x0200
const char MyString[] = "Hello World";
#org default

On your

#org 0x020 ...
  Topic: #org an const variable ROM placement
[email protected]

Replies: 8
Views: 19170

PostForum: General CCS C Discussion   Posted: Thu Mar 24, 2016 3:39 pm   Subject: Compiler version
I've checked on .lst file.

CCS PCH C Compiler, Version 4.135, 23-mar-16 06:48

Bye
  Topic: #org an const variable ROM placement
[email protected]

Replies: 8
Views: 19170

PostForum: General CCS C Discussion   Posted: Tue Mar 15, 2016 3:23 pm   Subject: #org an const variable ROM placement
Hi,
I've try with your suggestion

I'm using V4 version compiler.


#include "18F46K22.H"
#include "DEF_18(L)F2X_4XK22.h"

#fuses INTRC_IO, NOPLLEN, PRIMARY_ON ...
  Topic: #org an const variable ROM placement
[email protected]

Replies: 8
Views: 19170

PostForum: General CCS C Discussion   Posted: Tue Mar 15, 2016 12:19 am   Subject: #org an const variable ROM placement
Hi to all.
In order to optimize the time to program (and debug) my application I try to place some constant at beginning of the ROM.

Due the fact that compiler place constant at end of rom, the pr ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group