particle-iot-archived / particle-dev-local-compiler

Package providing local compilation for Particle devices in Particle Dev
MIT License
11 stars 0 forks source link

Platform 'core' does not support dynamic modules #4

Closed robertdolca closed 7 years ago

robertdolca commented 8 years ago

I am trying to compile Blink an LED example for Core with firmware 0.4.5. The console output is empty and in run.log is this:

processing  /workspace/build
processing  /workspace/core_firmware_1447171963844.bin
processing  /workspace/relay.ino
makefile:30: *** "Platform 'core' does not support dynamic modules".  Stop.
arm-none-eabi-size: '/workspace/target/workspace.elf': No such file
Finished in: 0.156344 seconds

The online compilation works.

suda commented 8 years ago

0.4.5 didn't support dynamic modules on Core. They do work from 0.4.6 and above.

robertdolca commented 8 years ago

Thanks

robertdolca commented 8 years ago

When using 0.4.6 with Core I get an empty bin file and this:

processing  /workspace/build
processing  /workspace/relay.ino
../build/module-defaults.mk:95: *** Recursive variable 'TARGET_PATH' references itself (eventually).  Stop.
arm-none-eabi-size: '/workspace/target/workspace.elf': No such file
Finished in: 0.109069 seconds

With 0.4.7 with Core I get a timeout as state in #6.

Photon works with all versions.

rei-vilo commented 8 years ago

How to get SDK 0.4.7? I'm stuck at 0.4.6.

suda commented 8 years ago

@rei-vilo when you click version in status bar, what are the versions available?

rei-vilo commented 8 years ago

Here's the list:

capture 2015-11-11 a 12 36 49
suda commented 8 years ago

Updating firmware versions should help (it's possible this was interrupted).

rei-vilo commented 8 years ago

I've just another Update firmware. After a while, the blue window closes down but the higher release is still 0.4.6.

capture 2015-11-11 a 14 21 12

capture 2015-11-11 a 14 21 36
suda commented 8 years ago

Hmmm, you could try fetching it manually:

$ eval "$(docker-machine env default)"
$ docker pull particle/buildpack-particle-firmware:v0.4.7
rei-vilo commented 8 years ago

Thanks. It worked. Version 0.4.7 now appears on the SDK list.

Maybe the explanation relies on Status: Image is up to date for particle/buildpack-particle-firmware:v0.4.7 docker.io/particle/buildpack-particle-firmware: this image was pulled from a legacy registry. Important: This registry version will not be supported in future versions of docker.

$ eval "$(docker-machine env default)"

$ docker pull particle/buildpack-particle-firmware:v0.4.7

Pulling repository docker.io/particle/buildpack-particle-firmware c0952bcd5e9f: Pulling image (v0.4.7) from docker.io/particle/buildpack-particle-c0952bcd5e9f: Pulling image (v0.4.7) from docker.io/particle/buildpack-particle-c0952bcd5e9f: Pulling dependent layers 9231a146a3b3: Download complete 616b550dc233: Download complete dd59d9976e39: Download complete 4e9c8310e711: Download complete d3e35e295f5a: Download complete cb66a35248bd: Download complete 5e51ae26e36e: Download complete c0952bcd5e9f: Download complete 2ae08e6d636f: Download complete 1720e08000f7: Download complete 9580ae5c5930: Download complete 64197d4b059e: Download complete 4fc146c21cd9: Download complete 91e69a92a1e7: Download complete 519260a74a05: Download complete 006241fcd363: Download complete 69397a71cf15: Download complete 01fbb55846b7: Download complete c0aaffe944bb: Download complete 3156e0125a09: Download complete 1c589c389860: Download complete 645d9fffc21e: Download complete 20dc053acd82: Download complete e2d4aeae8cdf: Download complete ca2805321503: Download complete 83c428323ddc: Download complete 9ec834951d5b: Download complete 4ef6cee612cd: Download complete 9c61160f3a90: Download complete 9390bfddec22: Download complete Status: Image is up to date for particle/buildpack-particle-firmware:v0.4.7 docker.io/particle/buildpack-particle-firmware: this image was pulled from a legacy registry. Important: This registry version will not be supported in future versions of docker.

rei-vilo commented 8 years ago

SDK 0.4.7 not supported because it fails agains Core as per #6?

mikey0000 commented 8 years ago

makefile:20: *** "Platform 'core' does not support dynamic modules". Stop. still failing on latest branch

suda commented 8 years ago

We're reworking the Docker buildpacks so until we finish this may persist.