intel / NMPRK

3 stars 10 forks source link

clearSDR, addSDR and deleteSDR functions don't work without a reservation ID #27

Closed jrmassoni closed 12 years ago

jrmassoni commented 12 years ago

Most current servers require that you reserver the SDR repository before trying to clear, add or delete an record. The current code does not due this and ignores the response code that is returned thus giving the impression that it actually worked, when it did not. This is a bug and should be fixed in the future.

jrmassoni commented 12 years ago

The clearSDR and addSDR functions are fixed. The test program now reads the SDR repository, clears it and then reprograms it with the original SDRs. It saves the SDRs into a file and uses that file. The deleteSDR function does not work on Intel servers because they store their SDRs in flash, and flash does not allow one record to be erased, you must erase the whole repository (the whole chip). So there is not way to test this function for now. A bit in the SDR Info area indicates whether the server supports the deleteSDR() function or not. Will close this defect as fixed.