-
Notifications
You must be signed in to change notification settings - Fork 33
updated linkerscript again.. #5
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
base: master
Are you sure you want to change the base?
Conversation
… Replaced linkerscript with one based off another template.
Hi, I tried pulling your changes and compiling it, still geting undefined references when linking it. Deleting the references to UARTprintf it compiles fine with the example. |
I'll revert the code to my last commit and create a test_newlib branch where we can work on the changes without breaking the last stable build. |
Hey scompo. Like the commit says, I removed the UARTstdio entries from LM4F_startup.c you should be able to compile without uartstdio now. when compiling make sure the right newlib is pulled in (defined as LIBM_PATH and LIBC_PATH in your makefile). |
I'll come up with a very simple main file to test it out. |
Thanks @mroy! Great, I'll make sure it points to the right one. |
I just committed my edits to main.c to make use of the printf and setup the uart. Note that I had to change those lines in the makefile as it tried to include the wrong version for me. The version I used is one I compiled, but the packaged thumb mode newlib should work too. Are you on irc/freenode someplace? Maybe we could chat. |
No worries with where you put it, I just thought you might be interested since I've been banging my head against a wall for 2 days trying to get it to work right |
Sure I'm interested, would be really cool to get this working with newLib! |
hey, I just joined #launchpad-template on freenode. |
Hi again,
I was still having strange problems with the version you pulled. I was getting more hard faults due to improperly initialized data section. The older version was working with a printf with no formating (ie printf("hello world");) and as soon as I added some parameters it was hard faulting again.
I ended up replacing the linker script with one based off another template and it seems to work well now. Take a look and pull if you like.
Mark.