REL 1.0
Page 36 of 69
iWave Systems Technologies Pvt. Ltd.
iW-RainboW-G15D Linux User Manual
4.2.3
SPI NOR Flash Test
Caution: Accessing the SPI Flash will corrupt the boot code, if SPI Flash is configured as the boot device.
To enable the SPI flash execute the below command.
iWave-G15 >sf probe
SF: Detected SST25VF016B with page size 256 Bytes, erase size 4 KiB, total 2 MiB
To erase the contents in SPI flash, execute the below command.
iWave-G15 >sf erase <offset_address> <size>
Example
iWave-G15 >sf erase 0x000000 0x10000
Erasing SPI NOR flash 0x0 [0x10000 bytes]
................SUCCESS
To write any data to the SPI flash, First need to write that data into the RAM location then can be copied to
SPI flash
To write the data into RAM, refer the RAM Test section.
To write the data from RAM into SPI flash, execute the below.
iWave-G15 >sf write <RAM_addr> <flash_offset><size>
Example
iWave-G15 >sf write 0x10800000 0x000000 0x100
Writing SPI NOR flash 0x0 [0x100 bytes] <- ram 0x10800000
SUCCESS
4.2.4
I2C Test
To set i2c bus
iWave-G15>i2c dev 1
Setting Bus to 1
To list connected I2C devices on the I2C bus
iWave-G15>i2c probe
Valid chip addresses: 00 0E 1C 44 50 60