Hi everyone
I want to log some data in the 512K on board flash on the IRIS mote and the
component I'm using is ByteEEPROM. My wirings are as:
SensorNodeM.AllocationReq -> ByteEEPROM.AllocationReq[BYTE_EEPROM_ID];
SensorNodeM.ReadData->ByteEEPROM.ReadData[BYTE_EEPROM_ID];
SensorNodeM.WriteData->ByteEEPROM.WriteData[BYTE_EEPROM_ID];
In the Module, I have:
uses {
...
interface AllocationReq;
interface WriteData;
interface ReadData;
...
}
implementation {
uint32_t req_mem = 50420*sizeof(uint8_t);
command result_t StdControl.init() {
call AllocationReq.request(req_mem);
...
}
event result_t AllocationReq.requestProcessed(result_t success) {
if (success) call Leds.redOn();
else call Leds.yellowOn();
return SUCCESS;
}
...
}
There was no error when compiling and only a warning concerning of req_mem as:
decimal constant is so large that it is unsigned.
Based on the code, I think no matter the memory request procedure is successful
or not, one of the LEDs should be on. However, none of them will turn on. So
can anyone tell me where is the problem?
Thanks !
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help