-
Notifications
You must be signed in to change notification settings - Fork 9
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
Riscv ecp5 #12
base: master
Are you sure you want to change the base?
Riscv ecp5 #12
Conversation
|
||
# Debugging/Optimization | ||
ifeq ($(DEBUG), 1) | ||
LDFLAGS += specs=rdimon.specs |
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.
This causes arm-none-eabi-gcc: error: specs=rdimon.specs: No such file or directory
for me. Sorry but what does this do? never seen this before :). I'm on gcc 9.3.0.
There is a - sign missing, it should say '-specs=rdimon.specs'. It brings
in semihosting based debugging.
I'm not sure how you were doing your printf output before but chances are
that you might need to re-add some libraries to get that back (there's no
printf in the non debug version purposefully because it's generally a
pretty big routine).
Regards
Dave
…On Fri, 8 May 2020, 21:42 Konrad Beckmann, ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In Makefile
<#12 (comment)>:
> + -Wno-unused-parameter \
+ -Wunreachable-code \
+ -ffreestanding
+
+# Compiler flags for defining UF2 configuration
+CFLAGS += \
+ -DAPP_START_ADDRESS=$(APP_START_ADDRESS) \
+ -DBOARD_FLASH_BASE=$(BOARD_FLASH_BASE) \
+ -DUF2_FAMILY=$(UF2_FAMILY) \
+ -DCFG_TUSB_MCU=$(TUSB_MCU)
+
+LDFLAGS += $(CFLAGS) -fshort-enums -Wl,$(LD_FILE) ***@***.*** -Wl,-cref -Wl,-gc-sections
+
+# Debugging/Optimization
+ifeq ($(DEBUG), 1)
+LDFLAGS += specs=rdimon.specs
This causes arm-none-eabi-gcc: error: specs=rdimon.specs: No such file or
directory for me. Sorry but what does this do? never seen this before :).
I'm on gcc 9.3.0.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#12 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABJTBD4VLCKVCJ6EIHBNY7TRQRVBXANCNFSM4M2R6VDQ>
.
|
Aha alright. If i add a |
In order to better review this PR, it would be nice to split it up into Makefile rewrite, and ecp5/colorlight separately. There are a lot of changes :). |
ECP5 integration and build system changes.