ARMmbed / mbed-os-example-pelion

Mbed OS example for Pelion Device Management
Apache License 2.0
14 stars 34 forks source link

[BUG] OOB for Mbed OS 6.0 - error with Online Compiler #134

Closed MarceloSalazar closed 4 years ago

MarceloSalazar commented 4 years ago

Overview

As part of OOB and prep for Mbed 6 release, we're testing the Mbed Online Compiler (specific staging server for OOB).

Describe the bug

Getting a specific error at link time.

To Reproduce

Steps to reproduce the behavior:

  1. Import the https://github.com/ARMmbed/mbed-os-example-pelion into the Online compiler for OOB (ide-oob ...)
  2. Update Mbed OS to Mbed OS 6.0-RC2
  3. Configure Pelion DM credentials
  4. Select K64F
  5. Compile

Expected behavior

A binary should be generated by the Online Compiler and downloaded to let us program the board.

Logs

Error: L6218E: Undefined symbol MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_CERTIFICATE (referred from ../../build/mbed-cloud-client/factory-configurator-client/factory-configurator-client/source/fcc_dev_flow.K64F.o).
Info: Unable to download. Fix the reported errors...

Device information:

Additional context

Note the application compiles/links ok when using Mbed CLI.

This is something for the Tools/Online compiler team to investigate

Patater commented 4 years ago

@MarceloSalazar Could you please provide some more detail on what steps you followed for "3. Configure Pelion DM credentials"? Also, if you are following any instructions on how to do that, could you please link? I didn't see anything in the README for this example and we should try to rectify that by linking to some instructions for how to set up the credentials for this example.

Thanks!

MarceloSalazar commented 4 years ago

@Patater the actual instructions are here: https://www.pelion.com/guides/connect-device-to-pelion/

ciarmcom commented 4 years ago

Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers. Internal Jira reference: https://jira.arm.com/browse/IOTPART-9172

MarceloSalazar commented 4 years ago

After investigations with @rwalton-arm concluded that the problem is neither in Mbed OS nor tools, but rather an issue with the OOB online compiler (not production): the developer credentials were not automatically fetched from Pelion DM. However, adding the credentials manually solves the problem and the application works ok on K64F.

Therefore closing this issue as don't expect to be a problem after the release.