Menu

Just curiosity: 16F18857 works!

Anonymous
2019-02-14
2019-02-14
  • Anonymous

    Anonymous - 2019-02-14

    Hi Alberto,
    I have a 16F18857, not going to use it now but, just as curiosity I tried it, and it works!
    Well:

    I did a little blink-led (RC4) to test and it WORKS...

    1) reading the memory seems to go OK.

    2) writing OK, BUT COMPLAIN about config verify/timeout...

    Attached here are 5 files:
    a) messages when programming - txt
    b) messages when reading - txt
    c) original .hex
    d) op readed .hex
    e) about the little firmware - txt

    Right now I am more interested in 18xx, 15xx, 183xx families but I am sending this infos so that it may serve to help the project/you.

    Here is a fragment of the "errors" message (full text on attached files):

    Regulator up and running after 0ms VPP=8.5V
    
    DevID: 0x3074
    DevREV: 0x2002
    16F18857
    Device Information Area @0x8100
    8100: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 
    8110: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 
    Device Configuration Information @0x8200
    8200: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 
    8210: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 
    Erase row size: 0 words
    Write latches: 0
    User rows: 0
    ->0 Flash words
    EE data memory size: 0
    Pin count: 0
    Warning, flash size is different from the expected value
    Erasing ... completed
    Writing code ... completed
    Verifying code ... completed, 0 errors
    Writing CONFIG area ... 
    Communication timeout
    Error writing config3: written 3F9F, read 0BF0
    completed, 1 errors
    
    End (0.15 s) 1 error
    

    Regards,
    Valter

     
    • Anonymous

      Anonymous - 2019-02-14

      Alberto, I am not so sure but, it seems that the 188XX family DOES NOT have DIA (device information area) and also NOT HAVE DCI (device configuration information)...

      Perhaps, OP is trying to use the 184XX family Programming Specifications...

      Regards,
      Valter

       
  • Alberto Maccioni

    Right, it's an hybrid chip: 8 bit commands but no DIA-DCI. I had missed that.
    Will fix it in the next version; anyways those areas are read only for information.
    I see that the config word is written correctly but there's a timeout at write time, so the error.
    Is it always doing that? Can you check once more with a different CONFIG3?
    Also can you write all configs just for a trial?

     
    • Anonymous

      Anonymous - 2019-02-14

      Hello Alberto...
      Not sure if this is what you ask...
      The previous example has 3 configs words,
      this new one has all 5 configs words... SAME BEHAVIOR... WORKS!

      4 files attached: 5-config.hex, programming-messages, reading-messages and read-saved-file...

      anything else, just ask, if it easy like this one, it is my pleasure to help...
      Valter

       
  • Alberto Maccioni

    Just one more thing, the log file of a write.
    (Options -> log activity)

     
    • Anonymous

      Anonymous - 2019-02-14

      Hi.
      This is the log for the 5 config .hex "above"...

       
      • Anonymous

        Anonymous - 2019-02-14

        Just to clarify: the log file is for the "xc8_16F18857_second.X.production.hex" that has all the 5 configs set...

        Valter

         
  • Alberto Maccioni

    Perfect, thanks.
    It's just a short communication delay ... my fault.
    Will fix it

     

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.