-
Notifications
You must be signed in to change notification settings - Fork 3k
ADI: Enable bootloader for EV_COG_AD3029LZ and EV_COG_AD4050LZ #6690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- fix compiler warning message of flash_api.c - fix compiler warning message of startup_ADuCM4050.c - eliminate absolute address of ROM tables - add MBED_APP_START and MBED_APP_SIZE to linker scripts
- fix compiler warning message of flash_api.c - eliminate absolute address of ROM tables - add MBED_APP_START and MBED_APP_SIZE to linker scripts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@li-ho How was this tested? any tests to be shared for this addition?
@0xc0170 They were tested with "target.restrict_size": "0x20000" for both EV_COG_AD4050LZ and EV_COG_AD3029LZ The following expansion add-on board: If ev-gear-expander1z is not available, mbed-os-example-bootloader-blinky.bin can run straightforwadly. |
/morph build |
Build : SUCCESSBuild number : 1812 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 1458 |
Test : SUCCESSBuild number : 1620 |
@li-ho Can you review the latest comment above? |
Hi @andrew-mclachlan @0xc0170 |
Thanks @li-ho. I'll need to check how it is handling your .LD script and when/how it is being pre-processed. Unfortunately the blinky example won't export and build properly with CrossCore Embedded Studio (analog.com/cces). |
Indeed but it contains #defines and CCES (CCES) isn't set up to pre-process the LD script. |
@andrew-mclachlan You can test your cces projects with mbed-os-5.8.3 or older where ADuCM4050.ld does not contain #defines |
Thanks!! |
@andrew-mclachlan The GCC linker of gnuarmeclipse is arm-none-eabi-g++, therefore, |
There's an extra step being done for GNU ARM Eclipse. CrossCore Embedded Studio just adds the LD script to its Linker command line like so:
And then adds the pre-processed LD script to its Link command line. |
In mbed-os\tools\profiles, you can find the corresponding profiles They are similar to CCES's debug and release configurations. Only one of the two is chosen to build. |
In order to solve this issue with CCES #6954, I need to look at adding pre-processing to the build step and an entry box to accept macro defines for the Linker tool similar to GNU ARM Eclipse plugins. |
CrossCore Embedded Studio (CCES) 2.9.0+ will now pre-process the GCC LD scripts meaning that an ARM mbed project targeting COG boards and exported to CCES will now successfully build. |
That is great. So just update the studio and all good? |
Description
Pull request type