-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
Description
Description
Build an application for DISCO_F746NG
target will result in a link warning:
[DEBUG] Return: 0
[Warning] @0,0: L3912W: Option 'legacyalign' is deprecated.
[Warning] JfazrC@44,9: 'MBED_RAM_START' macro redefined [-Wmacro-redefined]
[Warning] JfazrC@45,9: 'MBED_RAM_SIZE' macro redefined [-Wmacro-redefined]
[DEBUG] Errors: Warning: L3912W: Option 'legacyalign' is deprecated.
[DEBUG] Errors: /tmp/JfazrC:44:9: warning: 'MBED_RAM_START' macro redefined [-Wmacro-redefined]
[DEBUG] Errors: #define MBED_RAM_START 0x20000000
[DEBUG] Errors: ^
[DEBUG] Errors: <command line>:5:9: note: previous definition is here
[DEBUG] Errors: #define MBED_RAM_START 0x20010000
[DEBUG] Errors: ^
[DEBUG] Errors: /tmp/JfazrC:45:9: warning: 'MBED_RAM_SIZE' macro redefined [-Wmacro-redefined]
[DEBUG] Errors: #define MBED_RAM_SIZE 0x50000
[DEBUG] Errors: ^
[DEBUG] Errors: <command line>:6:9: note: previous definition is here
[DEBUG] Errors: #define MBED_RAM_SIZE 0x40000
[DEBUG] Errors: ^
[DEBUG] Errors: 2 warnings generated.
[DEBUG] Errors: Finished: 0 information, 1 warning and 0 error messages.
As mentioned this post it probably affects functionality of the application.
Reason is that in the scatter file:
#define MBED_RAM_START 0x20000000
#define MBED_RAM_SIZE 0x50000
But in the generated profile-ld
there is the following information:
"--predefine=\"-DMBED_RAM_SIZE=0x40000\"",
"--predefine=\"-DMBED_RAM_START=0x20010000\"",
Issue request type
[ ] Question
[ ] Enhancement
[x ] Bug