Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

The following ā€œCā€ code can be used to read the Demo Serial Number.
This can be useful for applications that need to uniquely identify multiple Demo3 boards.

ap_u32 eepromBase = 0;
ap_GetRegisters(apbase, 0, 0x64, 0x40, 8, 16, 1, &eepromBase);
eepromBase = 0xA0 | (eepromBase & 0x0E);
ap_u32 c[10] = {0};
ap_GetRegisters(apbase, 0, eepromBase, 0x7FF0, 16, 8, 10, c);
char serialNumber[10] = {0};
for (int i = 0; i < 10; ++i)
serialNumber[i] = (char)c[i];

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.