Fix firmware upload
@ -59,11 +59,7 @@ void eeprom_update_block(const void *__src, void *__dst, size_t __n){
};
void eeprom_test(void){
uint16_t chip_id=0;
chip_id=W25QXX.W25QXX_ReadID();
DEBUG("SPI Flash ID %0X",chip_id);
DEBUG("SPI Flash ID %0X",W25QXX.W25QXX_ReadID());
DEBUG("Read FLASH:");
for(uint32_t i=0; i < 50 ; ){
memset(spi_eeprom,0,10);
@ -38,3 +38,8 @@ def encrypt(source, target, env):
firmware.close()
robin.close()
env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", encrypt);
env.Replace(
UPLOADER="curl",
UPLOADCMD="$UPLOADER -v -H 'Content-Type:application/octet-stream' http://$UPLOADERFLAGS/upload?X-Filename=Robin_Nano35.bin --data-binary @$BUILD_DIR/Robin_nano35.bin"
)