pelioniot / connected-lights-cloud Goto Github PK
View Code? Open in Web Editor NEWConnected Lights article - updated for mbed Cloud
License: Apache License 2.0
Connected Lights article - updated for mbed Cloud
License: Apache License 2.0
From Senthil: Couple of things I noticed as I was scanning the contents in the repo.
The license headers in the device code need to be Apache 2.0 to be consistent with Cloud Client code
Seems there are some URLs pointing to docs.mbed.com. Some of them may be content that is not yet migrated to os.mbed.com and may be unavoidable, although not ideal
When I tracked the Writing the software
section in the instruction doc, I got link error below:
PS C:\test\oob\connected-lights-cloud> mbed compile -m k64f -t arm
Building project connected-lights-cloud (K64F, ARM)
Scan: .
Scan: env
Scan: mbed
Scan: FEATURE_LWIP
Scan: FEATURE_STORAGE
Link: connected-lights-cloud
"C:\Users\toywat01\AppData\Local\Temp\p3038-3", line 124 (column 3): Warning: L6312W: Empty Execution region description for region RW_IRAM1
Error: L6218E: Undefined symbol MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_CERTIFICATE (referred from BUILD/k64f/arm/simple-mbed-cloud-client/mbed-cloud-client/factory-configurator-client/factory-configurator-client/source/fcc_dev_flow.o).
Error: L6218E: Undefined symbol MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_CERTIFICATE_SIZE (referred from BUILD/k64f/arm/simple-mbed-cloud-client/mbed-cloud-client/factory-configurator-client/factory-configurator-client/source/fcc_dev_flow.o).
Error: L6218E: Undefined symbol MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_PRIVATE_KEY (referred from BUILD/k64f/arm/simple-mbed-cloud-client/mbed-cloud-client/factory-configurator-client/factory-configurator-client/source/fcc_dev_flow.o).
Error: L6218E: Undefined symbol MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_PRIVATE_KEY_SIZE (referred from BUILD/k64f/arm/simple-mbed-cloud-client/mbed-cloud-client/factory-configurator-client/factory-configurator-client/source/fcc_dev_flow.o).
Error: L6218E: Undefined symbol MBED_CLOUD_DEV_BOOTSTRAP_ENDPOINT_NAME (referred from BUILD/k64f/arm/simple-mbed-cloud-client/mbed-cloud-client/factory-configurator-client/factory-configurator-client/source/fcc_dev_flow.o).
Error: L6218E: Undefined symbol MBED_CLOUD_DEV_BOOTSTRAP_SERVER_ROOT_CA_CERTIFICATE (referred from BUILD/k64f/arm/simple-mbed-cloud-client/mbed-cloud-client/factory-configurator-client/factory-configurator-client/source/fcc_dev_flow.o).
Error: L6218E: Undefined symbol MBED_CLOUD_DEV_BOOTSTRAP_SERVER_ROOT_CA_CERTIFICATE_SIZE (referred from BUILD/k64f/arm/simple-mbed-cloud-client/mbed-cloud-client/factory-configurator-client/factory-configurator-client/source/fcc_dev_flow.o).
Error: L6218E: Undefined symbol MBED_CLOUD_DEV_BOOTSTRAP_SERVER_URI (referred from BUILD/k64f/arm/simple-mbed-cloud-client/mbed-cloud-client/factory-configurator-client/factory-configurator-client/source/fcc_dev_flow.o).
Error: L6218E: Undefined symbol MBED_CLOUD_DEV_DEVICE_TYPE (referred from BUILD/k64f/arm/simple-mbed-cloud-client/mbed-cloud-client/factory-configurator-client/factory-configurator-client/source/fcc_dev_flow.o).
Error: L6218E: Undefined symbol MBED_CLOUD_DEV_HARDWARE_VERSION (referred from BUILD/k64f/arm/simple-mbed-cloud-client/mbed-cloud-client/factory-configurator-client/factory-configurator-client/source/fcc_dev_flow.o).
Error: L6218E: Undefined symbol MBED_CLOUD_DEV_MANUFACTURER (referred from BUILD/k64f/arm/simple-mbed-cloud-client/mbed-cloud-client/factory-configurator-client/factory-configurator-client/source/fcc_dev_flow.o).
Error: L6218E: Undefined symbol MBED_CLOUD_DEV_MEMORY_TOTAL_KB (referred from BUILD/k64f/arm/simple-mbed-cloud-client/mbed-cloud-client/factory-configurator-client/factory-configurator-client/source/fcc_dev_flow.o).
Error: L6218E: Undefined symbol MBED_CLOUD_DEV_MODEL_NUMBER (referred from BUILD/k64f/arm/simple-mbed-cloud-client/mbed-cloud-client/factory-configurator-client/factory-configurator-client/source/fcc_dev_flow.o).
Error: L6218E: Undefined symbol MBED_CLOUD_DEV_SERIAL_NUMBER (referred from BUILD/k64f/arm/simple-mbed-cloud-client/mbed-cloud-client/factory-configurator-client/factory-configurator-client/source/fcc_dev_flow.o).
Finished: 0 information, 1 warning and 14 error messages.
[ERROR] "C:\Users\toywat01\AppData\Local\Temp\p3038-3", line 124 (column 3): Warning: L6312W: Empty Execution region description for region RW_IRAM1
Error: L6218E: Undefined symbol MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_CERTIFICATE (referred from BUILD/k64f/arm/simple-mbed-cloud-client/mbed-cloud-client/factory-configurator-client/factory-configurator-client/source/fcc_dev_flow.o).
Error: L6218E: Undefined symbol MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_CERTIFICATE_SIZE (referred from BUILD/k64f/arm/simple-mbed-cloud-client/mbed-cloud-client/factory-configurator-client/factory-configurator-client/source/fcc_dev_flow.o).
Error: L6218E: Undefined symbol MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_PRIVATE_KEY (referred from BUILD/k64f/arm/simple-mbed-cloud-client/mbed-cloud-client/factory-configurator-client/factory-configurator-client/source/fcc_dev_flow.o).
Error: L6218E: Undefined symbol MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_PRIVATE_KEY_SIZE (referred from BUILD/k64f/arm/simple-mbed-cloud-client/mbed-cloud-client/factory-configurator-client/factory-configurator-client/source/fcc_dev_flow.o).
Error: L6218E: Undefined symbol MBED_CLOUD_DEV_BOOTSTRAP_ENDPOINT_NAME (referred from BUILD/k64f/arm/simple-mbed-cloud-client/mbed-cloud-client/factory-configurator-client/factory-configurator-client/source/fcc_dev_flow.o).
Error: L6218E: Undefined symbol MBED_CLOUD_DEV_BOOTSTRAP_SERVER_ROOT_CA_CERTIFICATE (referred from BUILD/k64f/arm/simple-mbed-cloud-client/mbed-cloud-client/factory-configurator-client/factory-configurator-client/source/fcc_dev_flow.o).
Error: L6218E: Undefined symbol MBED_CLOUD_DEV_BOOTSTRAP_SERVER_ROOT_CA_CERTIFICATE_SIZE (referred from BUILD/k64f/arm/simple-mbed-cloud-client/mbed-cloud-client/factory-configurator-client/factory-configurator-client/source/fcc_dev_flow.o).
Error: L6218E: Undefined symbol MBED_CLOUD_DEV_BOOTSTRAP_SERVER_URI (referred from BUILD/k64f/arm/simple-mbed-cloud-client/mbed-cloud-client/factory-configurator-client/factory-configurator-client/source/fcc_dev_flow.o).
Error: L6218E: Undefined symbol MBED_CLOUD_DEV_DEVICE_TYPE (referred from BUILD/k64f/arm/simple-mbed-cloud-client/mbed-cloud-client/factory-configurator-client/factory-configurator-client/source/fcc_dev_flow.o).
Error: L6218E: Undefined symbol MBED_CLOUD_DEV_HARDWARE_VERSION (referred from BUILD/k64f/arm/simple-mbed-cloud-client/mbed-cloud-client/factory-configurator-client/factory-configurator-client/source/fcc_dev_flow.o).
Error: L6218E: Undefined symbol MBED_CLOUD_DEV_MANUFACTURER (referred from BUILD/k64f/arm/simple-mbed-cloud-client/mbed-cloud-client/factory-configurator-client/factory-configurator-client/source/fcc_dev_flow.o).
Error: L6218E: Undefined symbol MBED_CLOUD_DEV_MEMORY_TOTAL_KB (referred from BUILD/k64f/arm/simple-mbed-cloud-client/mbed-cloud-client/factory-configurator-client/factory-configurator-client/source/fcc_dev_flow.o).
Error: L6218E: Undefined symbol MBED_CLOUD_DEV_MODEL_NUMBER (referred from BUILD/k64f/arm/simple-mbed-cloud-client/mbed-cloud-client/factory-configurator-client/factory-configurator-client/source/fcc_dev_flow.o).
Error: L6218E: Undefined symbol MBED_CLOUD_DEV_SERIAL_NUMBER (referred from BUILD/k64f/arm/simple-mbed-cloud-client/mbed-cloud-client/factory-configurator-client/factory-configurator-client/source/fcc_dev_flow.o).
Finished: 0 information, 1 warning and 14 error messages.
[mbed] ERROR: "c:\python27\python.exe" returned error code 1.
[mbed] ERROR: Command "c:\python27\python.exe -u C:\test\oob\connected-lights-cloud\mbed-os\tools\make.py -t arm -m k64f --source . --build .\BUILD\k64f\arm" in "C:\test\oob\connected-lights-cloud"
---
PS C:\test\oob\connected-lights-cloud>
I am working in the simple-mcc-1.3
branch since this PR has not been merged yet.
PS C:\test\oob\connected-lights-cloud> mbed ls
connected-lights-cloud (#02e5086f48e1)
|- ChainableLED (#e7513df9d7cb, tag: tip)
|- easy-connect (#6b2cce9f7cef, tag: v1.2.2)
| |- atmel-rf-driver (#ca9782e68f5f)
| |- esp8266-driver (#c2b7e15c08ca)
| |- mcr20a-rf-driver (#93661a696735)
| |- stm-spirit1-rf-driver (#ce9e2f81f95f, tag: v1.0.1)
| |- wifi-ism43362 (#d47a8c2fba0e)
| |- wifi-x-nucleo-idw01m1 (#257d0878561b)
| `- wizfi310-driver (#e0f7b9355e7e)
|- mbed-os (#866850acc15e, tags: mbed-os-5.9.0, mbed-os-5.9.0-rc3)
|- simple-mbed-cloud-client (#9f05156e8386, tag: v1.3.3)
| `- mbed-cloud-client (#3137b3d7c8da, tag: 1.3.3)
`- storage-selector (#26411b4ddb73)
|- dataflash-driver (#efcb8a1a5c11)
|- flashiap-driver (#179e91537bd3)
|- sd-driver (#ae7e7440054c, tag: sd-driver-0.1.2-mbed-os-5.6.1)
`- spif-driver (#e5e6616914a2)
PS C:\test\oob\connected-lights-cloud> git branch
* simple-mcc-1.3
PS C:\test\oob\connected-lights-cloud>
In 8.md
I'm trying Connected Lights tutorial. At Added the code section in Writing the software page, I copied & pasted the source code into main.cpp
file. Compilation succeeded and program ran. However, my LED always turns on green.
macOS High Sierra Version 10.13.5
Board: K64F
LED: Tri-color anode type
led-type
to TRICOLOR_ANODE
in mbed_app.json
main.cpp
file and copy & paste the program in this instruction pageIn lightning-system-firmware/source/led.h
, GROVE_CHAINABLE
and TRICOLOR_ANODE
are not defined. Therefore the first #if
block is compiled even if you specify TRICOLOR_ANODE
in mbed_app.json
, because the condition is 0 == 0
, true.
This causes configuration error.
See 5.md
**Todo: add a screenshot here when this UI is added to mbed Cloud Portal**
See 6.md.
# todo, filter by endpoint type, see https://github.com/ARMmbed/mbed-cloud-sdk-python/issues/88
Hi, I'm trying this page with K64F board:
https://cloud.test.mbed.com/docs/working/connecting/applying-firmware-updates-to-the-device.html
In Building with the bootloader section, combined.bin
was flashed. After that, application fails to launch in init process.
[BOOT] mbed Bootloader
[BOOT] ARM: 74CE36607E38CD63ECDD72CE2F1262D58BF55448
[BOOT] OEM: 0000000000000000000000000000000000000000
[BOOT] Layout: 0 7188
[BOOT] Active firmware integrity check:
[BOOT] [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]
[BOOT] SHA256: 92459B856CEA3D258BB90A64FC22D2E346556A9E3DFD535C815A163F1645673C
[BOOT] Version: 1531891330
[BOOT] Slot 0 is empty
[BOOT] Active firmware up-to-date
[BOOT] Application's start address: 0xA400
[BOOT] Application's jump address: 0xAA95
[BOOT] Application's stack address: 0x20030000
[BOOT] Forwarding to application...
[EasyConnect] IPv4 mode
[EasyConnect] Using Ethernet
mbed assertation failed: id, file: ./mbed-os/events/Event.h, line 149
According to the error message, program stops here:
https://github.com/ARMmbed/mbed-os/blob/c29fe896a1b5157fa33aa0c777ba92767f6a61f3/events/Event.h#L147-L150
It indicates no enough memory left on my board according to this comment:
https://github.com/ARMmbed/mbed-os/blob/c29fe896a1b5157fa33aa0c777ba92767f6a61f3/events/Event.h#L131-L135
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.