Olimex Support Forum

ARM => ATMEL => Topic started by: tc on November 09, 2017, 05:00:02 AM

Title: how to build the first binary
Post by: tc on November 09, 2017, 05:00:02 AM
i downloaded the demo software.. there is a library and a main.c file and a bin file

how does one get from the main.c program to the bin file ???

is there a example of Makefile (this is on fedora linux system) that can help demostrate how to build the software ???  (using gnu gcc toolchain)

thanks
Title: Re: how to build the first binary
Post by: LubOlimex on November 09, 2017, 08:56:59 AM
What is your board? What demo you refer to?
Title: Re: how to build the first binary
Post by: tc on December 12, 2017, 12:32:23 AM
i have a OLIMEX SAM3-HXXX board (i think it is H256)

i would like to try to build a CDC_SERIAL program...

the demo program comes with a USB mouse binary... but does not have steps to build it

is there any help/procedure to build a program ??? and is there any example

(i noticed the ATMEL example_usb has cdc_serial but it is used for EK board... not sure how different)

thanks
Title: Re: how to build the first binary
Post by: LubOlimex on December 12, 2017, 08:42:36 AM
There is a README.txt file inside the demo archive. It has build info:

IAR IDE v5.50
SAM3S Software Pack v2.1 for IAR EW 5.50

So to build the demo project you would need to find old IAR EW for ARM v5.50 and also download the SAM3S Software Pack v2.1.