Menu

Problem writing OSCCAL value from file

2025-01-01
2025-01-13
  • Daniel Harrop

    Daniel Harrop - 2025-01-01

    Hi,
    I am trying to program a PIC 12F675 with OPgui, but have come across some issues with the software.

    The initial problem I found was in programming a new OSCCAL value in the program memory (address 03FFh). Although the software has an option to program the value from the hex file at this location, selecting this does not seem to work, as the original value read from the memory is just programmed in again as per the default setting. This was found by reading the PIC after programming to see what value was stored in that address. I may just be missing something obvious, but I tried with and without "write ID and BKosccal" enabled, as well as reopening the hex file after reading from the device.

    I wanted to see if this was some error in the GUI part of the program, by looking at the command produced for the programming part of the software, if that is actually how it works? I would assume this would be shown in the log file, but I have found that enabling logging causes the program to crash. As far as I can tell, all other aspects of writing to the PIC are working fine.

    Any help with this would be greatly appreciated.

     
  • Alberto Maccioni

    Hi, indeed the GUI code does not consider this option.
    It somewhat was lost during a major GTK3 code refactoring some time ago.
    You may try an old version or wait for the next revision.
    For sure a rarely used option as nobody ever reported the problem.
    Thanks for signaling!

     
  • Alberto Maccioni

    I tried myself and the problem is that "OSCCal" and "From File" options are switched, so you have to select the first in order to write location 0x3FF from the hex file.
    I found no problem with logging, the file is created as expected.

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.