PelionIoT / mbed-os-example-pelion-psoc64

Mbed OS example for Pelion Device Management using Cypress PSoC® 64 Secure Microcontroller
Apache License 2.0
2 stars 5 forks source link

[BUG] [Error] arm_uc_config.h@103,2: "Missing APPLICATION_ADDR definition. Check configuration for bootloader binary." #16

Closed ishotjr closed 3 years ago

ishotjr commented 3 years ago

Describe the bug After succesfully completing the steps described in the README up to 7 in Building and running the example I get the following error when trying to build:

Compile [ 10.1%]: cborencoder_close_container_checked.c
Compile [ 10.1%]: SimpleM2MResource.cpp
Compile [ 10.2%]: EstClient.cpp
Compile [ 10.3%]: cborencoder.c
Compile [ 10.3%]: UpdateClient.cpp
[Error] arm_uc_config.h@103,2: "Missing APPLICATION_ADDR definition. Check configuration for bootloader binary."
[ERROR] In file included from ./mbed-cloud-client/source/UpdateClient.cpp:40:
In file included from ./mbed-cloud-client/update-client-hub/modules/lwm2m-mbed/update-client-lwm2m/lwm2m-source.h:22:
./mbed-cloud-client/update-client-hub/modules/common/update-client-common/arm_uc_config.h:103:2: error: "Missing APPLICATION_ADDR definition. Check configuration for bootloader binary."
#error "Missing APPLICATION_ADDR definition. Check configuration for bootloader binary."
^
1 error generated.

To Reproduce see above

Expected behavior Successful build.

Logs see above

Host system (please complete the following information):

Device information:

maclobdell commented 3 years ago

In the Building and running the example section, be sure to review step number 6. By default the target comes up as CY8CKIT_.... Please customize the target and change the name to CYTFM_.... Hope that helps!

ishotjr commented 3 years ago

@maclobdell thanks for the quick response! I did complete step 6 as described - the only thing I noticed was that the last dropdown did not automatically select the Deploy and debug target implied by the gif (but not mentioned in the directions) so I had to manually select that - other than that I believe I did everything described:

Screenshot from 2020-10-07 10-23-16

Any ideas? :sweat_smile:

maclobdell commented 3 years ago

With the target changed, are you able to build now?

When you open the Manage Custom Target dialog, are you about to select the connected DAPLink device, and then modify its settings?

image
ishotjr commented 3 years ago

Thanks @maclobdell! Not sure what you mean by "target changed" - I'm saying "here are the details of what I did for step 6 during the workshop, but then got that error"; however, for some reason I just repeated the steps, and this time the Deploy and debug target was pre-filled correctly, and I was able to build no problem! I don't really understand what changed, but...it worked! Thank you so much for your quick and helpful responses! :sweat_smile: :rocket:

ishotjr commented 3 years ago

@maclobdell oh no! I missed the one-time enrollment ID because my baud rate was still 9600 (the instructions to change it to 115200 unfortunately come after the direction to flash the binary) - I tried a do-over using pyocd erase -s 0x101C0000-0x101C9000 but now I can't seem to build any more? :cold_sweat:

[Warning] @0,0: L3912W: Option 'legacyalign' is deprecated.
[Error] @0,0: L6200E: Symbol arm_uc_default_fingerprint multiply defined (by BUILD/CYTFM_064B0S2_4343W/ARMC6/update_default_resources.o and BUILD/CYTFM_064B0S2_4343W/ARMC6/TARGET_CYTFM_064B0S2_4343W/update_default_resources.o).
[Error] @0,0: L6200E: Symbol arm_uc_vendor_id_size multiply defined (by BUILD/CYTFM_064B0S2_4343W/ARMC6/update_default_resources.o and BUILD/CYTFM_064B0S2_4343W/ARMC6/TARGET_CYTFM_064B0S2_4343W/update_default_resources.o).
[Error] @0,0: L6200E: Symbol arm_uc_default_certificate multiply defined (by BUILD/CYTFM_064B0S2_4343W/ARMC6/update_default_resources.o and BUILD/CYTFM_064B0S2_4343W/ARMC6/TARGET_CYTFM_064B0S2_4343W/update_default_resources.o).
[Error] @0,0: L6200E: Symbol arm_uc_default_certificate_size multiply defined (by BUILD/CYTFM_064B0S2_4343W/ARMC6/update_default_resources.o and BUILD/CYTFM_064B0S2_4343W/ARMC6/TARGET_CYTFM_064B0S2_4343W/update_default_resources.o).
[Error] @0,0: L6200E: Symbol arm_uc_class_id multiply defined (by BUILD/CYTFM_064B0S2_4343W/ARMC6/update_default_resources.o and BUILD/CYTFM_064B0S2_4343W/ARMC6/TARGET_CYTFM_064B0S2_4343W/update_default_resources.o).
[Error] @0,0: L6200E: Symbol arm_uc_class_id_size multiply defined (by BUILD/CYTFM_064B0S2_4343W/ARMC6/update_default_resources.o and BUILD/CYTFM_064B0S2_4343W/ARMC6/TARGET_CYTFM_064B0S2_4343W/update_default_resources.o).
[Error] @0,0: L6200E: Symbol arm_uc_vendor_id multiply defined (by BUILD/CYTFM_064B0S2_4343W/ARMC6/update_default_resources.o and BUILD/CYTFM_064B0S2_4343W/ARMC6/TARGET_CYTFM_064B0S2_4343W/update_default_resources.o).
[Error] @0,0: L6200E: Symbol arm_uc_update_public_key multiply defined (by BUILD/CYTFM_064B0S2_4343W/ARMC6/update_default_resources.o and BUILD/CYTFM_064B0S2_4343W/ARMC6/TARGET_CYTFM_064B0S2_4343W/update_default_resources.o).
[Error] @0,0: L6200E: Symbol arm_uc_default_fingerprint_size multiply defined (by BUILD/CYTFM_064B0S2_4343W/ARMC6/update_default_resources.o and BUILD/CYTFM_064B0S2_4343W/ARMC6/TARGET_CYTFM_064B0S2_4343W/update_default_resources.o).
Warning: L3912W: Option 'legacyalign' is deprecated.
Error: L6200E: Symbol arm_uc_default_fingerprint multiply defined (by BUILD/CYTFM_064B0S2_4343W/ARMC6/update_default_resources.o and BUILD/CYTFM_064B0S2_4343W/ARMC6/TARGET_CYTFM_064B0S2_4343W/update_default_resources.o).
Error: L6200E: Symbol arm_uc_vendor_id_size multiply defined (by BUILD/CYTFM_064B0S2_4343W/ARMC6/update_default_resources.o and BUILD/CYTFM_064B0S2_4343W/ARMC6/TARGET_CYTFM_064B0S2_4343W/update_default_resources.o).
Error: L6200E: Symbol arm_uc_default_certificate multiply defined (by BUILD/CYTFM_064B0S2_4343W/ARMC6/update_default_resources.o and BUILD/CYTFM_064B0S2_4343W/ARMC6/TARGET_CYTFM_064B0S2_4343W/update_default_resources.o).
Error: L6200E: Symbol arm_uc_default_certificate_size multiply defined (by BUILD/CYTFM_064B0S2_4343W/ARMC6/update_default_resources.o and BUILD/CYTFM_064B0S2_4343W/ARMC6/TARGET_CYTFM_064B0S2_4343W/update_default_resources.o).
Error: L6200E: Symbol arm_uc_class_id multiply defined (by BUILD/CYTFM_064B0S2_4343W/ARMC6/update_default_resources.o and BUILD/CYTFM_064B0S2_4343W/ARMC6/TARGET_CYTFM_064B0S2_4343W/update_default_resources.o).
Error: L6200E: Symbol arm_uc_class_id_size multiply defined (by BUILD/CYTFM_064B0S2_4343W/ARMC6/update_default_resources.o and BUILD/CYTFM_064B0S2_4343W/ARMC6/TARGET_CYTFM_064B0S2_4343W/update_default_resources.o).
Error: L6200E: Symbol arm_uc_vendor_id multiply defined (by BUILD/CYTFM_064B0S2_4343W/ARMC6/update_default_resources.o and BUILD/CYTFM_064B0S2_4343W/ARMC6/TARGET_CYTFM_064B0S2_4343W/update_default_resources.o).
Error: L6200E: Symbol arm_uc_update_public_key multiply defined (by BUILD/CYTFM_064B0S2_4343W/ARMC6/update_default_resources.o and BUILD/CYTFM_064B0S2_4343W/ARMC6/TARGET_CYTFM_064B0S2_4343W/update_default_resources.o).
Error: L6200E: Symbol arm_uc_default_fingerprint_size multiply defined (by BUILD/CYTFM_064B0S2_4343W/ARMC6/update_default_resources.o and BUILD/CYTFM_064B0S2_4343W/ARMC6/TARGET_CYTFM_064B0S2_4343W/update_default_resources.o).
Not enough information to list the image map.
Finished: 1 information, 1 warning and 9 error messages.
[ERROR] Warning: L3912W: Option 'legacyalign' is deprecated.
Error: L6200E: Symbol arm_uc_default_fingerprint multiply defined (by BUILD/CYTFM_064B0S2_4343W/ARMC6/update_default_resources.o and BUILD/CYTFM_064B0S2_4343W/ARMC6/TARGET_CYTFM_064B0S2_4343W/update_default_resources.o).
Error: L6200E: Symbol arm_uc_vendor_id_size multiply defined (by BUILD/CYTFM_064B0S2_4343W/ARMC6/update_default_resources.o and BUILD/CYTFM_064B0S2_4343W/ARMC6/TARGET_CYTFM_064B0S2_4343W/update_default_resources.o).
Error: L6200E: Symbol arm_uc_default_certificate multiply defined (by BUILD/CYTFM_064B0S2_4343W/ARMC6/update_default_resources.o and BUILD/CYTFM_064B0S2_4343W/ARMC6/TARGET_CYTFM_064B0S2_4343W/update_default_resources.o).
Error: L6200E: Symbol arm_uc_default_certificate_size multiply defined (by BUILD/CYTFM_064B0S2_4343W/ARMC6/update_default_resources.o and BUILD/CYTFM_064B0S2_4343W/ARMC6/TARGET_CYTFM_064B0S2_4343W/update_default_resources.o).
Error: L6200E: Symbol arm_uc_class_id multiply defined (by BUILD/CYTFM_064B0S2_4343W/ARMC6/update_default_resources.o and BUILD/CYTFM_064B0S2_4343W/ARMC6/TARGET_CYTFM_064B0S2_4343W/update_default_resources.o).
Error: L6200E: Symbol arm_uc_class_id_size multiply defined (by BUILD/CYTFM_064B0S2_4343W/ARMC6/update_default_resources.o and BUILD/CYTFM_064B0S2_4343W/ARMC6/TARGET_CYTFM_064B0S2_4343W/update_default_resources.o).
Error: L6200E: Symbol arm_uc_vendor_id multiply defined (by BUILD/CYTFM_064B0S2_4343W/ARMC6/update_default_resources.o and BUILD/CYTFM_064B0S2_4343W/ARMC6/TARGET_CYTFM_064B0S2_4343W/update_default_resources.o).
Error: L6200E: Symbol arm_uc_update_public_key multiply defined (by BUILD/CYTFM_064B0S2_4343W/ARMC6/update_default_resources.o and BUILD/CYTFM_064B0S2_4343W/ARMC6/TARGET_CYTFM_064B0S2_4343W/update_default_resources.o).
Error: L6200E: Symbol arm_uc_default_fingerprint_size multiply defined (by BUILD/CYTFM_064B0S2_4343W/ARMC6/update_default_resources.o and BUILD/CYTFM_064B0S2_4343W/ARMC6/TARGET_CYTFM_064B0S2_4343W/update_default_resources.o).
Not enough information to list the image map.
Finished: 1 information, 1 warning and 9 error messages.
maclobdell commented 3 years ago

glad to hear the target selection is working. This latest error seems to be related to running the manifest-dev-tool init from within the TARGET_CYTFM_064B0S2_4343W folder. Make sure to run that from the top level of the project. You should be able to remove the error above by removing the update_default_resources.c file from the TARGET_CYTFM_064B0S2_4343W folder, changing directory to one level up, then running the manifest-dev-tool command again. Hope that helps!

ishotjr commented 3 years ago

@maclobdell that did it - thank you! I was so flustered I must have forgotten where I was! :sweat_smile: :dizzy: All connected and everything now! :rocket: :closed_lock_with_key:

maclobdell commented 3 years ago

fantastic!