Skip to content
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

keep one version of code #4

Closed
nerdralph opened this issue Feb 7, 2021 · 4 comments
Closed

keep one version of code #4

nerdralph opened this issue Feb 7, 2021 · 4 comments

Comments

@nerdralph
Copy link

I noticed you have a .ino file for Arduino builds, and a .c file for building with a makefile. If you have just the .ino file, you can compile it with a makefile by passing the -x option to avr-gcc.
https://github.com/nerdralph/picoUART/blob/master/examples/make.inc#L8

@wagiminator
Copy link
Owner

That's handy, I'll try it out. Thank you!

@wagiminator
Copy link
Owner

It works! Thanks again for the great tip. Do you know why the required flash memory size differs slightly from the other method (sometimes a few bytes more, sometimes a few bytes less)?

@nerdralph
Copy link
Author

It works! Thanks again for the great tip. Do you know why the required flash memory size differs slightly from the other method (sometimes a few bytes more, sometimes a few bytes less)?

I'm going to guess you're using a different version of avr-gcc from the shell vs the Arduino IDE.

@wagiminator
Copy link
Owner

That makes sense. If I find the time, maybe I'll disassemble it and try to find the differences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants