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 support@ccsinfo.com

Reading configuration memory of 18F4523

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
/dev/human



Joined: 01 Sep 2008
Posts: 19
Location: Earth / Europe / Germany

View user's profile Send private message

Reading configuration memory of 18F4523
PostPosted: Mon Sep 22, 2008 3:37 am     Reply with quote

Hi,

I just tried read_configuration_memory (data, 10) function to see the MCLRE flag.

Regardless of the NOMCLR fuse I always get the same data:

2D, EF, 09, F0, FF, FF, FF, FF, 05, 6E

Actually I was expecting to see the bold FF to change to 7F with the NOMCLR fuse. I need to say that this is a real read-out of my HW directly written to an LCD without ICD or simulation interference.

What may have gone wrong?

Thanks in advance

/dev/human
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Mon Sep 22, 2008 4:40 am     Reply with quote

I could verify the bug with 18F2455 and V4.079. As you can easily see, read_configuration_memory() is reading program memory from adress 0 rather than configuration memory from 0x30000.
/dev/human



Joined: 01 Sep 2008
Posts: 19
Location: Earth / Europe / Germany

View user's profile Send private message

PostPosted: Mon Sep 22, 2008 5:57 am     Reply with quote

Thanks! Do you know whether this is true for the write_configuration_memory as well?
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Mon Sep 22, 2008 6:37 am     Reply with quote

With write_configuration_memory(), the correct TBLPTR value of 0x300000 is loaded, thus I expect it is working correct.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group