How to convert a gcc makefile and c and h files to an as6 project?

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Here's a newbie question. I can't port the chanfatfs files from gcc to imagecraft, so I figgered I'd just try to compile it up with as6. So I hit as6, and after a while I get the start page, and I hit new project, and it gives me a default file name in a default directory. Then I start reading the menu items looking for 'add files to project' or 'convert makefile to as6 project', but after a while I decided to aks for help. I am humbled and I feel stupid. Surely there must be a way to add files to a project?!?

 

This topic has a solution.

Imagecraft compiler user

Last Edited: Sat. Jan 24, 2015 - 04:36 AM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

The 'Solution Explorer' tab seems to be the place, you can ;
a: In that window right-click -> Add ->existing ...
b: Drag-and-drop from a file-explorer window into there (individual files, not folders, grrrrr).
You can also shuffle files around in that tab.

Last Edited: Sat. Jan 24, 2015 - 04:50 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I can't port the chanfatfs files from gcc to imagecraft

Why is that exactly? Apart from the interrupt stuff I don't think he relies on too much that is "GCC specific". For example Pavel has already ported FatFs to CodeVision so a port to another compiler looks eminently possible.

 

If it's things like the xitoa.S you are worried about - don't be. Strip it down to bare minimums because a lot of the files in the directory are simply there to support the (extensive) example test program in main(). All that can be thrown away. It leaves you with (just about) ff.c and mmc_avr.c as the only code you need to worry about porting.

 

However I agree that a good way to approach would be to strip the GCC version and verify it's all still working then use that as the basis of a port to ImageCraft.

 

If you follow the (long!) thread about FatFs in Tutorial I have worked through a couple of times how to take the delivered files and throw away most if the "baggage" to strip it to minimums. I think I probably even posted it as an AS6 project.