This tip I found on lpc2000 mailing list.
To debug C++ code with OpenOCD you need:
1) use g++ to link your code
2) add “-g -gdwarf-2” to CPPFLAGS
a blog about computers and other funny things
Month: November 2009
This tip I found on lpc2000 mailing list.
To debug C++ code with OpenOCD you need:
1) use g++ to link your code
2) add “-g -gdwarf-2” to CPPFLAGS
Normally you will find the I2C slave address in datasheet (i.e.: PCA9557) like this:
0 | 0 | 1 | 1 | A2 | A1 | A0 | R/W |
At first glance you will think the address is 0x30 (0011-0000) (case A2, A1 and A0 be 0). This it is wrong because the least significant bit needs to be eliminated.
Then it will become 0x18 (0001-1000).
Using i2cdetect I could to figure out my fault.
• I/O type of DDR mode—Voltage rating 1.75–1.9 V.
• I/O type of slow mode—Voltage rating 1.75–3.1 V.
• I/O type of fast mode—Voltage rating 1.75–2.8 V.
You can recover BIOS password directly from CMOS without reset BIOS.
Just use CmosPwd: