Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
franco59
PostPosted: Feb 10, 2012 - 01:44 PM
Newbie


Joined: Dec 14, 2010
Posts: 2


Hello

I want to implement a simple TCP/IP connection, using At32uc3a chip.
For my project, the best would be to use LWIP without FreeRTOS. In AVR Studio5, example projects always use FreeRTOS with LWIP.

I have seen on this forum that in ASF version 2.0.0, a standalone LWIP program has been developed. (but it has been deleted in newer versions).
So I have downloaded this version, and I have found this program (in …\asf-2.0.0\avr32\services\network\tcpip\lwip\example folder).

But I don’t know how to import those example files in a new project.
(I have tried to create an empty project, and to import file by file, but I always get compilations errors… due to dependency errors… so I think this is not the way to do this… Confused )

Can you please advise me?

Thanks,

Francois
 
 View user's profile Send private message  
Reply with quote Back to top
franco59
PostPosted: Feb 16, 2012 - 09:21 AM
Newbie


Joined: Dec 14, 2010
Posts: 2


I still don't know if there is a smart way to insert an example, using files in ASF folder, in a new project (without using ASF menu, as it is not listed in it)...

But, I have found a solution: there is a example called "Wifi H&D stack example-EVK1100" (Studio5) in which there is LWIP without FreeRTOS.
 
 View user's profile Send private message  
Reply with quote Back to top
wgardiner
PostPosted: Mar 07, 2012 - 05:01 PM
Newbie


Joined: Feb 23, 2006
Posts: 4


The solution that I've found is creating an empty project then recreating the file structure and adding the files manually. This takes forever.

But there's a shortcut that saves a lot of effort:
-Create the empty project like before.

-Use Explorer to copy all the necessary files from ASF to appropriate locations your empty project folder.
--You may have to create some new folders to mimic ASF folder hierarchy(using Ctrl+Shft+N speeds things up).
--Make sure that you add all the necessary drivers, utils, etc., not just the higher level example code.
To confirm that you have all the necessary files, study the example's config.mk file, which lists all the example's file dependencies.

-In AVR Studio, click the 'Show All Files' button located in the top-left of the Solution Explorer. Here's a link that explains in more detail, if necessary http://avrstudio5.wordpress.com/2011/07/12/tip-add-existing-multiple-files-and-folders-to-an-avr-studio-project-quickly/
--Right-click the "ghosted" folder(s) that you added in Explorer and click Include in Project

-Set AVR Studio to use an external makefile: right-click the project name in the Solution Explorer. Then go to the Build tab, check the Use External Makefile box, and browse to your project's makefile that you copied from the ASF

-Rebuild/Build you project
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits