View previous topic :: View next topic |
Author |
Message |
primal98
Joined: 28 Jan 2012 Posts: 7
|
Posted: Sat Jan 28, 2012 5:44 am Post subject: New Purchaser: STK Causes Reset of SIM |
|
|
Hello,
I am a recent purchaser of the Turbo SIm Programmer, and we are considering ordering a few more for our development team. However, we have the following issue. I am trying a very basic program (listed below, it is from the example file).
When I compile, I get the trb file, however I get an error: BFD: BFD 2.14 20030612 assertion fail elf32-avr.c:394
When I upload the program to my Turbo Lite, it causes the Sim to reset when it runs stk_thread (action_menu, data);
Do you have any suggestions on how this may be fixed? We want to get a few test programs running so we can confirm it works before we get a couple extra for the team.
#include <config.h>
#include <turbo/turbo.h>
u8 PROGMEM t_Foo_en[] = "Hello World!";
void action_menu (void *data)
{
display_text_raw (t_Foo_en, Q_DISPLAY_TEXT_USER_CLEAR);
}
void turbo_handler (u8 action, void *data)
{
switch (action)
{
case ACTION_INSERT_MENU:
insert_menu (t_Foo_en);
break;
case ACTION_MENU_SELECTION:
stk_thread (action_menu, data);
break;
default:
break;
}
}
Regards,
Prime |
|
Back to top |
|
|
primal98
Joined: 28 Jan 2012 Posts: 7
|
Posted: Sat Jan 28, 2012 5:47 am Post subject: |
|
|
As a note:
1) I can run the debug program.
2) We are using the new Galaxy Nexus by Google
3) I have rune ./cemu --reset
4) If I download the prebuilt "pager" example program it works
5) I can access the menus |
|
Back to top |
|
|
primal98
Joined: 28 Jan 2012 Posts: 7
|
Posted: Sat Jan 28, 2012 5:50 am Post subject: |
|
|
Further note:
BFD 2.14 20030612 assertion fail elf32-avr.c:394 only appears if stk_thread is in the program. If I take it out it compiles with no errors |
|
Back to top |
|
|
primal98
Joined: 28 Jan 2012 Posts: 7
|
Posted: Sat Jan 28, 2012 6:44 pm Post subject: |
|
|
I am now using the windows + cygwin environment and it works.
For future people: I believe there is a library conflicts issue in Ubuntu causing it. |
|
Back to top |
|
|
pz
Joined: 12 Mar 2004 Posts: 1161
|
Posted: Wed Feb 01, 2012 10:50 am Post subject: |
|
|
What devel tools do you use on ubuntu? Did you go from source or built http://bladox.com/pub/avr1.tgz ? |
|
Back to top |
|
|
|