Welcome, Guest

Author Topic: how to build the first binary  (Read 911 times)

tc

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
how to build the first binary
« 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

LubOlimex

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1819
  • Karma: +46/-2
Re: how to build the first binary
« Reply #1 on: November 09, 2017, 08:56:59 AM »
What is your board? What demo you refer to?
Technical support and documentation manager at Olimex

tc

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: how to build the first binary
« Reply #2 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

LubOlimex

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1819
  • Karma: +46/-2
Re: how to build the first binary
« Reply #3 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.
Technical support and documentation manager at Olimex