Hi,
I'm trying to use SPI EEPROM library and it's not working. I have added it to libraries path on IDE and I'm receiving these errors:
http://pastebin.com/jcJs9H6M
Thanks,
Wagner Sartori Junior
Hi,
I'm trying to use SPI EEPROM library and it's not working. I have added it to libraries path on IDE and I'm receiving these errors:
http://pastebin.com/jcJs9H6M
Thanks,
Wagner Sartori Junior
Those are the same errors I am receiving:
http://forums.leaflabs.com/topic.php?id=908
I was actually looking at the SPI EEPROM library to see how to make a library for the Maple, based on your errors it seems the library is not working, or maybe it was working with an earlier version of the Maple IDE.
I have not found a solution yet.
The SPI 25xxx-series EEPROM library was written for an earlier version of libmaple, before the SPI refactor, and therefore will no longer work as-is. If you want to use it, you'll have to update it or write a new library.
-robodude666
could you tell me what's the last working git tag before SPI refactor?
You can simply checkout/download the entire eeprom_25xxx branch adamfeuer has on github. The EEPROM25xxx library is just a small library within that branch. I imagine that older branch should compile just fine with that library.
I took a look; it wouldn't be hard to update the library for use with the latest libmaple. I'd say the easiest way to go about it would be:
- Move eeprom_25xxx.c to eeprom_25xxx.cpp, and delete the relevant #ifdef __cplusplus bits (from eeprom_25xxx.h). (Wirish used to be a mixed C/C++ library, but it's been C++ only since the refactor).
- Convert spiNum (or spi_num, whatever) to pointers to a struct spi_dev instead.
- Update the calls to spi_foo() in eeprom_25xxx.cpp to use the new SPI API, which is documented here: http://leaflabs.com/docs/libmaple/api/spi.html
This would actually be a very good exercise for anyone who's interested in learning a little bit more about the low-level C layers of libmaple. The necessary changes are few and straightforward. I'd recommend reading the libmaple overview if you're just getting started; it explains the overall library structure, its naming conventions, etc.:
http://leaflabs.com/docs/libmaple/overview.html
When 0.0.10 came out, we promised that the new libmaple APIs would be stable for the foreseeable future, and any removals from the API would go through a deprecation period first. So updating this library wouldn't be something you'd have to keep doing; it'd be stable for as far out as we can see right now.
Edit: You can even use HardwareSPI as an example for how to use the new spi.h:
https://github.com/leaflabs/libmaple/blob/0.0.11/wirish/comm/HardwareSPI.cpp
Thanks for your time on this.
I'm trying to make ANY(SPI, I2C, ...) eeprom to make my project works(2 x UART RFID readers + XBee and a electromagnetic doorlock using a relay). I have SPI and I2C eeproms here with me.
I've ported XBee library and it's working on API Mode(wonderful). My RFID readers is working fine too, so my 3 UARTs are fine.
Everything is working but I can't make a RFID Card database(anywhere). Of course I can put the database on my house's server but and if my server crashs? and what's the fun on that? :)
I2C EEPROM is an option but I'm facing maple hanging(I have other thread).
So, I bought an arduino mega2560. Everything are working there. Just works.
Maple mini is cheaper and is a very better microcontroller. I'm just not having luck(or coding skills) to resolve my problems.
You must log in to post.