Skip to content

Conversation

mroy
Copy link

@mroy mroy commented Nov 21, 2012

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.

… Replaced linkerscript with one based off another template.
@scompo
Copy link
Owner

scompo commented Nov 21, 2012

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.
Can you please tell me how you link /utils/uartstdio and show me your main file too if possible?

@scompo
Copy link
Owner

scompo commented Nov 22, 2012

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.

@mroy
Copy link
Author

mroy commented Nov 22, 2012

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).

@mroy
Copy link
Author

mroy commented Nov 22, 2012

I'll come up with a very simple main file to test it out.

@scompo
Copy link
Owner

scompo commented Nov 22, 2012

Thanks @mroy! Great, I'll make sure it points to the right one.
It's ok if I use a test_newlib branch for the moment then merge the branch to main?

@mroy
Copy link
Author

mroy commented Nov 22, 2012

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.

@mroy
Copy link
Author

mroy commented Nov 22, 2012

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

@scompo
Copy link
Owner

scompo commented Nov 22, 2012

Sure I'm interested, would be really cool to get this working with newLib!
I'm on #launchpad-template on freenode right now!

@mroy
Copy link
Author

mroy commented Nov 22, 2012

hey, I just joined #launchpad-template on freenode.

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

Successfully merging this pull request may close these issues.

2 participants