Wonderful finally see some good results. After a weekend of struggling with i2c I succeeded in a read/write. After reading some code examples on the net I noticed that the address given to the driver was wrong. It must be shifted right by 1 because of the abstraction of the read/write first bit. This is more or less indicated in /linux/i2c.h as 7 bit address but still confused me in seeing only the specified address in front of my eyes. Sometimes indeed it's an excellent idea to just read some other code and suddenly you realize that you did something stupid. Call that the blindness of the idea fix you have. Nevertheless this address thing could be better documented!
Test is running now as we speak in making a verify (write/read/compare) . For a start I let this running for 24h and see the result this evening. Eager as I was this morning I just checked and we did already 200000 verify cycles in a scenario of 255 write/read per loop. Great!
Next step at code level will be investigating the timer object in C/C++. I would like a callback function, which is called every x time. This is not new for me I did plenty of that at win32 level but now i'm starting to learn linux as OS. Sounds like a great exercise.
There is also a lot to discover at the buildroot/kernel level. And I would like to start with flashing the root and usr JFF2 file system into flash. Like that I always have a backup system, the moment the SD card is failing I easily switch to the flash startup. I want to be able to quickly have a system up/running because it will work 24/7. So focus on robustness and backup guaranties is indispensable for me to have.
More news will following on the first real test running now.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment