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

XMEM interface support #220

Open
r4wabr opened this issue Dec 30, 2024 · 3 comments
Open

XMEM interface support #220

r4wabr opened this issue Dec 30, 2024 · 3 comments

Comments

@r4wabr
Copy link

r4wabr commented Dec 30, 2024

I came across the fact that the environment it is not possible to fully program the AVR of the Mega family with the XMEM interface. I would like to have such an opportunity.

@MCUdude
Copy link
Owner

MCUdude commented Dec 30, 2024

I've never used this interface, but it's using avr-gcc underneath, where the user has access to the compiler flags. So if you know how to set up XMEM in, say, a makefile, then it may be possible to port this over to PlatformIO.

@r4wabr
Copy link
Author

r4wabr commented Jan 2, 2025

compiler.ldflags=-Wl,--defsym=__heap_start=0x808000,--defsym=__heap_end=0x80FFFF

@MCUdude
Copy link
Owner

MCUdude commented Jan 2, 2025

With PlatformIO it should be able to do:

; Platformio.ini

build_flags = 
  -Wl,--defsym=__heap_start=0x808000,--defsym=__heap_end=0x80FFFF

If that's not working, it looks like you can use an extra_script.

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