/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / how to make a lib file Thanks. hurry

Username:     
Password:     
             

Forum

# 1   2008-02-15 03:41:19 how to make a lib file Thanks. hurry

kevinccc
Member
Registered: 2008-02-06
Posts: 12

how to make a lib file Thanks. hurry

I try to use circle_mgr.exe XXX.lib L S
, because I have multi obj files, but how to make a lib file. where I can find those setting. Thanks.

I tried http://www.stm32circle.com/forum/viewtopic.php?id=5.  but failed.  is that my version problem.

Last edited by kevinccc (2008-02-15 03:58:52)

Offline

 

# 2   2008-02-15 03:58:08 how to make a lib file Thanks. hurry

Francis
Administrator
From: France-Grenoble
Registered: 2007-07-09
Posts: 890

Re: how to make a lib file Thanks. hurry

I cannot check (the tools are not installed on this computer), but I suggest:
1. Create a  new project.
2. When you create the application, you have a dialog box where you can select the type of the application. Select a library.
3 Add your source files as children of the library, and build it.

I know this solution works with the Raisonance compilers / library manager, but I never tested it with the GNU tools. If it does not work as expected, you would have to run the command line library manager.

Offline

 

# 3   2008-02-15 04:05:13 how to make a lib file Thanks. hurry

kevinccc
Member
Registered: 2008-02-06
Posts: 12

Re: how to make a lib file Thanks. hurry

I tried http://www.stm32circle.com/forum/viewtopic.php?id=5.  but failed.  and overwrite my application.c , in same folder.
fotunately, there is backup file.
That is easy to make mistakes.

Last edited by kevinccc (2008-02-15 04:11:29)

Offline

 

# 4   2008-02-15 09:45:03 how to make a lib file Thanks. hurry

lionel
Member
From: Grenoble, France
Registered: 2007-07-24
Posts: 71
Website

Re: how to make a lib file Thanks. hurry

I think I understand where you problem comes from.

The device STM32F103RBT6 is a "meta" device that executes some actions when the project is created, namely copying the Application.c file in the project folder.

I recommend you don't place your source files in the project folder, but rather in the src subfolder. This way, application.c will not be overwritten. A new application.c will be created in the project folder, you will simply have to delete it.

I created a sample application structure that should be followed if you use several .c files in your CircleOS application.

You can retrieve it at : ftp://www.raisonance.com/pub/forum/stm3 … pleApp.zip

Please use it as a reference to create your application.

regards
Lionel

Offline

 

# 5   2008-02-15 14:41:50 how to make a lib file Thanks. hurry

kevinccc
Member
Registered: 2008-02-06
Posts: 12

Re: how to make a lib file Thanks. hurry

Thanks , fixed. smile

Offline

 

Board footer