View previous topic :: View next topic |
Author |
Message |
/dev/human
Joined: 01 Sep 2008 Posts: 19 Location: Earth / Europe / Germany
|
Reading configuration memory of 18F4523 |
Posted: Mon Sep 22, 2008 3:37 am |
|
|
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
|
|
Posted: Mon Sep 22, 2008 4:40 am |
|
|
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
|
|
Posted: Mon Sep 22, 2008 5:57 am |
|
|
Thanks! Do you know whether this is true for the write_configuration_memory as well? |
|
|
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
|
|
Posted: Mon Sep 22, 2008 6:37 am |
|
|
With write_configuration_memory(), the correct TBLPTR value of 0x300000 is loaded, thus I expect it is working correct. |
|
|
|