I2C & SPI Power On Self test

956 Views Asked by At

I am currently working on boot time diagnostic software for Beagle Board - xm it is just like POST ( power on self test ) what we have in BIOS systems , So as we know during early stage there is no driver present so that i came to know that i have to write a basic low level driver for the peripherals, but my question is what kind of test should be performed in boot time whether it is limited to basic read/write ( in case of my devices like i2c & spi) or i need to perform test for each and every functionality of the peripherals. So i just want to know what kind of tests are conducted or what kind of steps are followed for I2c & SPI during a boot time diagnosis .

1

There are 1 best solutions below

1
Ruslan Gerasimov On

Usually devices like I2C and SPI have default values of some registers according to their documentations. At boot time you can read from your diagnostic procedure all I2C/SPI peripheral devices and check obtained data. If you can read (default for reset or even better - read only constants) and determine they are correct, that means these parts are OK at this stage.