infineon4engineers Facebook

infineon@google+ Google+

infineon@linkedin linkedin

infineon4engi@twitter twitter

infineon@youtube youtube

+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 11 to 20 of 20

Thread: Unique Serial Number or Mac Address in XMC4400

  1. #11
    Beginner Beginner furterRMDS will become famous soon enough
    Join Date
    Sep 2013
    Posts
    17
    Points
    58.125
    @benjamin : We are indeed, looking for the same thing. I also had some hope with this "Unique Chip ID", but from what I saw, the 16 bytes copied in DSRAM1 at bootup are always 0, so it doesn't seem to work.

  2. #12
    Beginner Beginner benjamin.st is on a distinguished road
    Join Date
    May 2013
    Location
    Villach
    Posts
    17
    Points
    65
    OK great.
    I have not used the BMI string so far. I've read the memory locations from 4 devices I have at my desk:
    Index 0 is 0x20000000, Index 1 is 0x20000004, then 8 and then C ... so these values are u32.

    E144-1 (hexagon DRAM 1)
    [0] 0x0a038201
    [1] 0x44002006
    [2] 0x10000682
    [3] 0x0000000a

    E144-2 (hexagon DRAM 2)
    [0] 0x08898201
    [1] 0x44002005
    [2] 0x10000682
    [3] 0x0000000a

    F144-1 (hexagon GP 1)
    [0] 0x0c860101
    [1] 0x47038005
    [2] 0x10000682
    [3] 0x0000000a

    F100-1 (relax 1)
    [0] 0x098780c1
    [1] 0x4902200f
    [2] 0x10000682
    [3] 0x0000000a

    from these values I can see that all 4 chips have different IDs and the ID is most likely build up the following way:
    [3] & [2] & [1] & [0] -> 0000 000a 1000 0682 ... and then changing - so it looks like these are real unique IDs

    -Benjamin

  3. #13

    Infineon Employee
    Infineon Employee
    Expert
    Travis will become famous soon enough
    Join Date
    Feb 2013
    Location
    Singapore
    Posts
    749
    I also want to read a unique serial number from every XMC chip - possibly programmed already during the fabrication of the chip - I don't need to (I especially don't want to) program a self-chosen ID for each device.

    Thus, my search for such already existing unique ID on the XMC registers continues ...

    Travis:
    The "IDCHIP" register contains the unique ID of the chip, however the ID value maybe the same for the same batch of production so this may not serve your intended purposes.


    Will this "Unique Chip ID" - located at the 16 bytes from 0x20000000 to 0x2000000F be completely unique among all XMC devices?

    Travis:
    No, it basically a copy of the IDCHIP.

    For your need I think the best way is to program a MAC ID into the UCB.
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  4. #14

    Infineon Employee
    Infineon Employee
    Expert
    Travis will become famous soon enough
    Join Date
    Feb 2013
    Location
    Singapore
    Posts
    749
    Quote Originally Posted by furterRMDS View Post
    I took the code from FLASH002 app.

    Here what I do to call the function to write the BMI :

    status_t st;
    const FLASHBMIString_Type MyBMITestString =
    {
    //boot mode
    FLASH_BMI_BOOT_NORMAL,
    //BMI Flags
    FLASH_BMI_MAC_ADDR_VALID,
    //MAC ADDR extension
    {0x07,0xDD,0x09,0x20,0x22,0x90},
    //IP ADDR extension
    {0xFF, 0xEE, 0xDD, 0xCC, 0xBB, 0xAA, 0x99, 0x88, 0x77, 0x66, 0x55, 0x44, 0x33, 0x22, 0x11, 0x00},
    //USB serial number
    {0x12, 0x34, 0x56, 0x78}
    };
    st = FLASH002_EraseUCB(2);
    st = FLASH002_ConfigureBMI (&MyBMITestString);

    - functions always return SUCCESS
    - When I look at the BMI string copied in DSRAM1 after boot-up, the BMI Word (4 bytes) seems correct (the MAC P flag is set), but the MAC Address (6 bytes) is not set.
    - The MAC Address is not constant and is sometime modified upon reset. I need the MAC address to keep its value forever...
    - Do I need to erase the UCB before I call the FLASH002_ConfigureBMI? I tried with or without erasing and got the same result.

    Thanks,
    Cedric
    Hi Cedric,

    Can I check if you had configure the Boot mode pin to BMI mode?Click image for larger version

Name:	bootmode pin.JPG
Views:	19
Size:	22.8 KB
ID:	386
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  5. #15
    Beginner Beginner benjamin.st is on a distinguished road
    Join Date
    May 2013
    Location
    Villach
    Posts
    17
    Points
    65
    Quote Originally Posted by Travis View Post
    Will this "Unique Chip ID" - located at the 16 bytes from 0x20000000 to 0x2000000F be completely unique among all XMC devices?

    Travis:
    No, it basically a copy of the IDCHIP.
    how can it be a copy of the IDCHIP register, if you clearly can see that the address locations 0x20000000 to 0x20000007 vary in my 4 readings ??

  6. #16
    Beginner Beginner furterRMDS will become famous soon enough
    Join Date
    Sep 2013
    Posts
    17
    Points
    58.125
    Quote Originally Posted by Travis View Post
    Hi Cedric,

    Can I check if you had configure the Boot mode pin to BMI mode?Attachment 386
    No, I was in Normal Boot Mode.

  7. #17
    Beginner Beginner furterRMDS will become famous soon enough
    Join Date
    Sep 2013
    Posts
    17
    Points
    58.125
    I tried to configure the MAC Address in the BMI string using boot mode BMI and it works. Case closed for me.

    Thanks a lot,
    Cedric

  8. #18

    Infineon Employee
    Infineon Employee
    Expert
    Travis will become famous soon enough
    Join Date
    Feb 2013
    Location
    Singapore
    Posts
    749
    Quote Originally Posted by furterRMDS View Post
    I tried to configure the MAC Address in the BMI string using boot mode BMI and it works. Case closed for me.

    Thanks a lot,
    Cedric
    Good to hear that.
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  9. #19
    Beginner Beginner David King is on a distinguished road
    Join Date
    Feb 2017
    Posts
    76
    Points
    470
    Hi Cedric,

    I don't suppose, you might have your final code, for obtaining a unique ID, and setting the ETH_LWIP MAC address ?

    I read through all of the post and links, but couldn't quite ascertain the final answer, that closed the case..

    Best regards,

    David King

  10. #20
    New Member New Member rst is on a distinguished road
    Join Date
    Nov 2016
    Posts
    12
    Points
    149.375
    Quote Originally Posted by David King View Post
    I read through all of the post and links, but couldn't quite ascertain the final answer, that closed the case..
    As I understand - the only reliable way: to generate a unique number yourself at the production stage or when the device is turned on for the first time.
    The uniqueness of "chip ID" (at addr 0x2000000) is not guaranteed for all instances of this IC.

+ Reply to Thread
Disclaimer

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.