bladox.com Forum Index bladox.com
Turbo SIM Toolkit Adapter Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

New Purchaser: STK Causes Reset of SIM

 
Post new topic   Reply to topic    bladox.com Forum Index -> Development
View previous topic :: View next topic  
Author Message
primal98



Joined: 28 Jan 2012
Posts: 7

PostPosted: Sat Jan 28, 2012 5:44 am    Post subject: New Purchaser: STK Causes Reset of SIM Reply with quote

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
View user's profile Send private message
primal98



Joined: 28 Jan 2012
Posts: 7

PostPosted: Sat Jan 28, 2012 5:47 am    Post subject: Reply with quote

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
View user's profile Send private message
primal98



Joined: 28 Jan 2012
Posts: 7

PostPosted: Sat Jan 28, 2012 5:50 am    Post subject: Reply with quote

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
View user's profile Send private message
primal98



Joined: 28 Jan 2012
Posts: 7

PostPosted: Sat Jan 28, 2012 6:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
pz



Joined: 12 Mar 2004
Posts: 1161

PostPosted: Wed Feb 01, 2012 10:50 am    Post subject: Reply with quote

What devel tools do you use on ubuntu? Did you go from source or built http://bladox.com/pub/avr1.tgz ?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    bladox.com Forum Index -> Development All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group