captainigloo / sparkcore-local-http-server-rest-json

Local HTTP server with REST and JSON for Sparkcore
GNU Affero General Public License v3.0
22 stars 13 forks source link

Can't flash with Spark Web IDE #1

Open Sascha274 opened 10 years ago

Sascha274 commented 10 years ago

I have inserted all the files in the Spark Web IDE. Verification passed.

It says: "Flash successful! Please wait a moment while your Core is updated... Ready."

But nothing happend on the Core . (other Programms like LED FLASHING Example are working (can be flashed) this way)

Can somebody help or confirm?!

zhaozhongyao commented 10 years ago

C:\Users\anson>spark compile sparkcore-local-http-server-rest-json-master Including: sparkcore-local-http-server-rest-json-master\HttpRequest.cpp sparkcore-local-http-server-rest-json-master\HttpRequest.h sparkcore-local-http-server-rest-json-master\HttpResponse.cpp sparkcore-local-http-server-rest-json-master\HttpResponse.h sparkcore-local-http-server-rest-json-master\http_parser.cpp sparkcore-local-http-server-rest-json-master\http_parser.h sparkcore-local-http-server-rest-json-master\slre.cpp sparkcore-local-http-server-rest-json-master\slre.h sparkcore-local-http-server-rest-json-master\spark-Web-Tinker.ino attempting to compile firmware pushing file: sparkcore-local-http-server-rest-json-master\HttpRequest.cpp pushing file: sparkcore-local-http-server-rest-json-master\HttpRequest.h pushing file: sparkcore-local-http-server-rest-json-master\HttpResponse.cpp pushing file: sparkcore-local-http-server-rest-json-master\HttpResponse.h pushing file: sparkcore-local-http-server-rest-json-master\http_parser.cpp pushing file: sparkcore-local-http-server-rest-json-master\http_parser.h pushing file: sparkcore-local-http-server-rest-json-master\slre.cpp pushing file: sparkcore-local-http-server-rest-json-master\slre.h pushing file: sparkcore-local-http-server-rest-json-master\spark-Web-Tinker.ino grabbing binary from: https://api.spark.io/v1/binaries/538834749a647454700d9d90 saved firmware to C:\Users\anson\firmware_1401435254222.bin Compiled firmware downloaded.

C:\Users\anson>spark flash 55ff6a065075555319331787 firmware_1401435254222.bin Including: firmware_1401435254222.bin attempting to flash firmware to your core 55ff6a065075555319331787 flash core said {"ok":false,"errors":[{"id":"55ff6a065075555319331787","status" :"Update failed - File was too big!"}]}

captainigloo commented 10 years ago

Hi Sascha274 and zhaozhongyao Can you test new commit of ino file ?

zhaozhongyao commented 10 years ago

new commit still can't flash,because of the file was too big. I get a .bin file form server with 108KB after compile.

I try SparkCore-RESTserver,It works fine.

captainigloo commented 10 years ago

Use webIDE for compil and flash.

Me it works

captainigloo commented 10 years ago

If I import the bin file and I pushed with Spark CLI it works

captainigloo commented 10 years ago

New commit of HttpRequest.h (All buffers 512 to 128)

zhaozhongyao commented 10 years ago

It works,thanks!

captainigloo commented 10 years ago

Cool