ArduCAM / ArduCAM_ESP8266_UNO

This Arduino IDE for ArduCAM ESP8266 UNO Board with Integrated ArduCAM Library and Examples
GNU Lesser General Public License v2.1
84 stars 45 forks source link

Index Erroe #53

Open tacocatgt opened 1 year ago

tacocatgt commented 1 year ago

Index error

Hardware

Hardware: ESP8266 Core Version: 2.1.0

When I try and dowload the board manager for the ESP8266_UNO board it gives me a index error.

Settings in IDE

Module: Generic ESP8266 Module Flash Size: 4MB CPU Frequency: 80Mhz Flash Mode: qio Flash Frequency: 40Mhz Upload Using: SERIAL Reset Method: nodemcu

Error:

Failed to install platform: ArduCAM_ESP8266_UNO:ArduCAM_ESP8266_UNO. Error: 13 INTERNAL: Cannot install platform: installing platform ArduCAM_ESP8266_UNO:ArduCAM_ESP8266_UNO@2.2.4: testing local archive integrity: testing archive size: fetched archive size differs from size specified in index: 22656170 != 22659072

per1234 commented 1 year ago

Some notes for the project maintainer:


The incorrect value is defined by the packages[*].platforms[*].size of the package index:

http://www.arducam.com/downloads/ESP8266_UNO/package_ArduCAM_index.json

 "size":"22659072"

Documentation reference here:

https://arduino.github.io/arduino-cli/latest/package_index_json-specification/#platforms-definitions


Arduino IDE 1.x ignores the packages[*].platforms[*].size field of the package index if a packages[*].platforms[*].checksum field is present, so even though the size field value is incorrect, the archive still passes validation when installing the "ArduCAM_ESP8266_UNO" platform via the Arduino IDE 1.x Boards Manager.

Arduino IDE 2.x and Arduino CLI use both the checksum and size fields to verify the archive, so you must use one of those tools in order to reproduce the fault reported here.