[SOLVED !] User Id Location ?


Closed Thread
Page 1 of 4 123 ... LastLast
Results 1 to 15 of 53

Thread: User Id Location ?4702 days old

  1. #1
    H-bert
    Guest H-bert's Avatar

    1 Not allowed!

    Default User Id Location ?

    hello all,

    does someone know how to set the User Id Location bytes at address 0x2000-0x2003 in the PIC's ?


    Greetings & thanks for reading
    H_Bert

  2. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  3. #2
    Fanatical Contributor Tim's Avatar
    Join Date
    Jan 2003
    Posts
    7,754
    Thumbs Up
    Received: 51
    Given: 96
    Total Downloaded
    1.33 GB

    0 Not allowed!

    Default

    I recommend you do it at the end of the code to ensure you do not overwrite it. But if that is past your code then do the following at the bottom of your prog

    org $2000
    UserID: Dword 1234567

    To read it in your prog use this

    usernovar = lread UserID

    if the pic cannot write to code space or

    usernovar = Cread UserID

    if it can
    Tim

  4. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  5. #3
    H-bert
    Guest H-bert's Avatar

    0 Not allowed!

    Default

    hello,
    it was not successful, or i didn't understand something.
    the user Id bytes can only be written to at programming time - i read - as it is with the config bytes ...

    if i put org $2000 at the end of the program - it compiles with an error (8192 not between 0 and 4095)

    thanks
    H-Bert

  6. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  7. #4
    cgriffin
    Guest cgriffin's Avatar

    0 Not allowed!

    Default

    Tim, the 16F88 datasheet says this:
    15.16 ID Locations
    Four memory locations (2000h-2003h) are designated
    as ID locations, where the user can store checksum or
    other code identification numbers. These locations are
    not accessible during normal execution but are
    readable and writable during program/verify.
    It is
    recommended that only the four Least Significant bits
    of the ID location are used.
    Is this inaccurate, or does the lread/cread trick work with some pics and not others?

  8. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  9. #5
    Fanatical Contributor Tim's Avatar
    Join Date
    Jan 2003
    Posts
    7,754
    Thumbs Up
    Received: 51
    Given: 96
    Total Downloaded
    1.33 GB

    0 Not allowed!

    Default

    Hmm Pic user ID's not come across those before. I thought he just wanted a normal user ID. In which case move the ORG and use Ldata
    Tim

  10. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  11. #6
    Art-666
    Guest Art-666's Avatar

    0 Not allowed!

    Default

    To set user ID this is what I do.
    first I set device. select Programmer. and user ID if needed.

    use MPLAB click Configure in drop down menu Select Device ie. 16f88
    still in Configure Select ID Memory and in here set your user ID.

    Arthur

  12. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  13. #7
    Art-666
    Guest Art-666's Avatar

    0 Not allowed!

    Default

    @ __idlocs 0x1234

    This will set the user ID to 01 02 03 04

    found this looking for something else

    Art

  14. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  15. #8
    H-bert
    Guest H-bert's Avatar

    0 Not allowed!

    Default

    thanks, i will try that.

    Greetings
    H-Bert

  16. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  17. #9
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    2,354
    Thumbs Up
    Received: 83
    Given: 183
    Total Downloaded
    5.30 GB

    0 Not allowed!

    Default Re: User Id Location ?

    I know this is on old thread but I thought it worthwhile updating, the following compiles and correctly creates data on 18F2550 and 18F14K50 with 3.6.0.3
    @__idlocs IDLOC0, 23 ; day
    @__idlocs IDLOC1, 09 ; month
    @__idlocs IDLOC2, 17 ; year
    @__idlocs IDLOC3, 0x06 ; program ver Hi and Low
    @__idlocs IDLOC4, 0x36 ; compiler ver 3.6.0.3
    @__idlocs IDLOC5, 0x03 ; compiler ver
    @__idlocs IDLOC6, 00 ; spare
    @__idlocs IDLOC7, 00 ; spare
    George.

  18. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  19. #10
    Prolific Poster shantanu@india's Avatar
    Join Date
    Feb 2007
    Posts
    1,705
    Thumbs Up
    Received: 7
    Given: 21
    Total Downloaded
    827.23 MB

    0 Not allowed!

    Default Re: User Id Location ?

    Can the ID programming be included in the Fuse Configurator?
    That would save a lot of hassles.
    Another thought just entered my mind......can there be a feature in the fuse configurator by means of which the compiled version ( not the compiler version mind it......we go on compiling & compiling till we attain perfection......& the version starts from 0.0.0.1 & the last numeral goes on increasing similar to IP address) gets embedded in the IDlocs.
    This would help to determine which version of the code is programmed when the microcontroller is read back.
    Shantanu

  20. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  21. #11
    Senior Member AlbertoFS's Avatar
    Join Date
    Apr 2005
    Posts
    689
    Thumbs Up
    Received: 92
    Given: 2
    Total Downloaded
    4.62 GB

    1 Not allowed!

    Default Re: User Id Location ?

    Just write this table with your values in the end of the basic code.
    Asm
    __IDLOCS 0x200000,0xFF
    __IDLOCS 0x200001,0xFF
    __IDLOCS 0x200002,0xFF
    __IDLOCS 0x200003,0xFF
    __IDLOCS 0x200004,0xFF
    __IDLOCS 0x200005,0xFF
    __IDLOCS 0x200006,0xFF
    __IDLOCS 0x200007,0xFF
    EndAsm
    73's de Alberto ea3agv

  22. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  23. #12
    Prolific Poster shantanu@india's Avatar
    Join Date
    Feb 2007
    Posts
    1,705
    Thumbs Up
    Received: 7
    Given: 21
    Total Downloaded
    827.23 MB

    0 Not allowed!

    Default Re: User Id Location ?

    Yes but automatic code generation with the option of either time stamp or version stamp would be better.
    The compiler can have this feature
    Shantanu

  24. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  25. #13
    Prolific Poster johngb's Avatar
    Join Date
    Oct 2003
    Posts
    2,183
    Thumbs Up
    Received: 97
    Given: 1
    Total Downloaded
    2.91 GB

    1 Not allowed!

    Default Re: User Id Location ?

    Fuse Configurator is not the place to be adding such features because you would have to run it every time you wanted to change the IDLOCS data, so here are some other thoughts...

    RAD Studio has a Build and a Compile command but only the Build command actually updates the version number. (In RAD Studio Build re-compiled everything from scratch whereas compile only compiled those bits which have changed)

    It would be relatively simple to design a plugin to add a Build button to the IDE which appended the version number in assembler to the end of the code before compiling. Also, remember each page in the IDE carries a version number, you can see it in the results pane of the IDE after a compile. It also can be configured to increment each compile if that is what you want. Since this is also accessible from the API you could use this version number to create the assembler to append to the program.

    Also, see DaveS V Info plugin which could be set up to do something similar.
    JohnB

  26. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  27. #14
    Prolific Poster shantanu@india's Avatar
    Join Date
    Feb 2007
    Posts
    1,705
    Thumbs Up
    Received: 7
    Given: 21
    Total Downloaded
    827.23 MB

    0 Not allowed!

    Default Re: User Id Location ?

    Hi John,
    I looked up RAD studio & found it to be interesting.
    Does it support Android App development?
    This is slightly away from the thread topic.
    Shantanu

  28. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  29. #15
    Prolific Poster johngb's Avatar
    Join Date
    Oct 2003
    Posts
    2,183
    Thumbs Up
    Received: 97
    Given: 1
    Total Downloaded
    2.91 GB

    0 Not allowed!

    Default Re: User Id Location ?

    Yes, if you purchase the relevant compilers. Embercadero seem to be concentrating on multi-platform development.
    JohnB

  30. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

Closed Thread
Page 1 of 4 123 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. New location for my tools
    By hadv215 in forum hadv215's Feedback Forum
    Replies: 16
    Last Post: 13th February 2016, 18:50
  2. [SOLVED !] PDFNow Location Help
    By BillR in forum The Lounge
    Replies: 6
    Last Post: 13th January 2014, 17:26
  3. [SOLVED !] Location of user INCLUDE files
    By rcurl in forum Proton Plus Compiler v3
    Replies: 4
    Last Post: 17th October 2012, 21:11
  4. From forum user to licensed user
    By gerben-88 in forum Mecanique - IDE
    Replies: 4
    Last Post: 17th July 2012, 09:27
  5. Reading ID Location
    By philvb in forum Proton Plus Compiler v3
    Replies: 8
    Last Post: 29th May 2006, 03:27

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts