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

malloc()/new failed with AVR. #37

Open
YuuichiAkagawa opened this issue Feb 17, 2018 · 2 comments
Open

malloc()/new failed with AVR. #37

YuuichiAkagawa opened this issue Feb 17, 2018 · 2 comments
Assignees
Labels

Comments

@YuuichiAkagawa
Copy link
Contributor

I am testing MIDI driver with MEGA ADK.
malloc() and new fail in the AVR toolchain after version 1.6.12.

  • Work: 1.6.2 to 1.6.11
  • Not work: 1.6.12 to 1.6.20

However, in version 1.6.11 or earlier, UNO will result in a link error.

Temp\arduino_build_328310\sketch\USB_MIDI_dump.ino.cpp.o: In function `MAX3421E_HOST::ISRbottom()':

UHS_host/USB_HOST_SHIELD/USB_HOST_SHIELD_INLINE.h:762:(.text._ZN13MAX3421E_HOST9ISRbottomEv+0x48): relocation truncated to fit: R_AVR_7_PCREL against `no symbol'

collect2.exe: error: ld returned 1 exit status

Note: ARM platform is work fine.

@xxxajk
Copy link
Collaborator

xxxajk commented Feb 17, 2018

I will have to look deeper into this AVR problem.
UHS provides a replacement heap arena management.

@xxxajk
Copy link
Collaborator

xxxajk commented Feb 18, 2018

BTW, the link error is a known ld bug.

1.6.9 is known to work fine.

@xxxajk xxxajk self-assigned this Aug 1, 2018
@xxxajk xxxajk added the bug label Aug 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants