-
Notifications
You must be signed in to change notification settings - Fork 365
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
_MMCU_ instructions not working (avr-g++)? #285
Comments
|
@larsks AFAIK, you have to place any MMCU sections into .c file and compile it with avr-gcc. |
Thanks. So, putting the simavr directives into a
But the resulting object file has no
And #include <Arduino.h>
#include <avr_mcu_section.h>
const struct avr_mmcu_vcd_trace_t _mytrace[] _MMCU_ = {
{ AVR_MCU_VCD_SYMBOL("PORTB"), .what = (void*)&PORTB, },
}; Should I expect to see the |
The .mmcu section should present in the object dump indeed. |
That fixed the ...but it looks as if Arduino-Makefile links the final Thanks for your help! |
Sorry to bring this back, but these are some of my observations. |
I'm using the [Arduino-Makefile][] project to build a simple program for an attiny85. I wanted to try running this via
simavr
. I tried adding the following to my code:When trying to compile the code, I get:
The compile command line looks like this:
Will the tracing feature work with avg-g++?
The text was updated successfully, but these errors were encountered: