added cast to remove constnesss, since the sFLASH_Write method is expecting a non-const pointer. (I had my pull request to make the buffer const applied locally.)