Code Monkey home page Code Monkey logo

connected-lights-cloud's People

Contributors

51auesen avatar iriark01 avatar janjongboom avatar peknis01 avatar willebackman avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

connected-lights-cloud's Issues

Update license headers, update URLS to point to os.mbed.com

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

[OOB] Link errors for developer credential symbols

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>

[OOB] Green LED always turns on

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.

My Environment

macOS High Sierra Version 10.13.5
Board: K64F
LED: Tri-color anode type

Steps to reproduce this issue

  1. Set up HW with tri-color anode type LED with following this instruction page.
  2. Clone this repository
  3. Change led-type to TRICOLOR_ANODE in mbed_app.json
  4. Create main.cpp file and copy & paste the program in this instruction page
  5. Compile, and run on K64F

Inferred Cause

In 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.

https://github.com/ARMmbed/connected-lights-cloud/blob/3c5cc5bd992fd2c1ef003e665878fa1e239b2d56/lighting-system-firmware/source/led.h#L4-L11

This causes configuration error.

[OOB] Device application errors in init process

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.