Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - hp

Pages: [1]
1
ATMELTM AT91SAM7X and AVR32 / Re: HELP-OLIMEX-SAM7EX256-OPEN SOURCE TOOLS
« on: September 25, 2008, 02:28:02 PM »
Hi David,

no need to check the code, the uTasker compiles smoothly... if all settings are right  ;)

I think you missed a step in the tutorial. There is no need to add separate files after you have created your project, just import the whole uTasker directory and everything you need is already there.

Here is what I suggest to do:

1. Install Eclipse/Yagarto/ARM-USB-OCD driver/Zylin plug-in (what you probably already did)
    It's quite a bunch of things you have to install

2. Extract the uTasker ZIP file into a directory (i.e. c:/temp/uTasker)

3. Extract the SAM7XSP3 ZIP file into the same directory

4. Put the 'makefile' I attached into the same directory

5. Put the linker script 'sam7xram.ld' which I attached into c:/temp/uTasker/Applications/uTaskerV1.3/GNU

(I suggest you to follow the tutorial from 'http://yagarto.de/howto/yagarto2/index.html' from now on)
6. Create a new project in Eclipse, i.e. 'uTasker'
    Setup the tools as described in the above tutorial

7. IMPORT THE WHOLE c:/temp/uTasker FOLDER into your project
    Browse to c:/temp/uTasker and mark the folder uTasker in the left window pane and makefile in the right window pane
    When done you shoud see the folder tree in the Project Explorer

8. Choose 'Build Project'

Hope that will do the trick
Hanspeter



2
ATMELTM AT91SAM7X and AVR32 / Re: HELP-OLIMEX-SAM7EX256-OPEN SOURCE TOOLS
« on: September 24, 2008, 02:56:40 PM »
Hi David,

Just a couple of days ago I managed to run the uTasker with Eclipse on the Atmel AT91SAM7X-EK board, using the Olimex ARM-USB_OCD.
I'm also not very experienced with Eclipse, neither with makefiles...
However, here is what I did:

1. Installed the Yagarto/Eclipse toolchain using the very good tutorial from James P. Lynch.

2. Tested the installation using the project SAM7X256Test.zip in the HOWTO section on yagarto.de.
   There I found also the Debugger Scripts to download and debug the application using J-Link Debugger.
   The files for the ARM-USB_OCD can be found in the very same ZIP file as the tutorial from James P. Lynch
   Building and dbugging works very well.

3. Next I took the makefile from the project in SAM7X256Test.zip and exchanged the object files by those from uTasker.
   I put that makefile in the toplevel uTasker folder. So it automatically apears in the project file tree.
   You'll find my makefile as an attachment.

4. I imported the uTasker project files into Eclipse, according the tutorial from J. Lynch
   The project now can be built by 'Build Project' command (eventually 'Make clean' before)
   
5. Since downloading/debugging did not work for whatever reason, I also changed the uTaskerV1.3_RAM.ld using the linker file from
   SAM7X256Test.zip as a reference and changed the makefile according to the new file name.
   
   # Define linker script file here
   LDSCRIPT_RAM = ./Applications/uTaskerV1.3/GNU_SAM7X/sam7x256_ram.ld
   LDSCRIPT_ROM = ./Applications/uTaskerV1.3/GNU_SAM7X/uTaskerV1.3_FLASH.ld

   You'll find the linker file as attachment too.

I now can download the uTasker into SAM7X RAM and debug it. Of course I had to disable Ethernet support due to RAM size.
Next step will be to make the linker script for FLASH. Shouldn't be too comlicated.

The only thing I dislike is that my map file shows the usage of library functions 'udivsi3()' and 'dvmd_tls.o()' from libgcc.a.
Somehow driver.c uses 'udivsi3()' but I don't know where...

Hope you may use some parts to solve your problem
Hanspeter

Pages: [1]