Click here to Skip to main content
15,921,959 members
Home / Discussions / - Uncategorised posts -
   

- Uncategorised posts -

Please don't post in this forum. If you've posted in this forum it's because you've selected the first forum on the list without thinking through which forum would be best. All messages in this forum are periodically removed.

 
Question</configuration> file not saving changes Pin
Member 115823935-Apr-15 8:19
Member 115823935-Apr-15 8:19 
GeneralProfile picture issue on codeproject Pin
Jeddi khan24-Mar-15 7:09
Jeddi khan24-Mar-15 7:09 
GeneralRe: Profile picture issue on codeproject Pin
Richard Deeming24-Mar-15 7:19
mveRichard Deeming24-Mar-15 7:19 
Questiongcc and XML Pin
Vaclav_11-Mar-15 7:55
Vaclav_11-Mar-15 7:55 
QuestionTracking System Pin
Member 112802639-Mar-15 10:27
Member 112802639-Mar-15 10:27 
AnswerRe: Tracking System Pin
Sergey Alexandrovich Kryukov9-Mar-15 11:44
mvaSergey Alexandrovich Kryukov9-Mar-15 11:44 
AnswerRe: Tracking System Pin
ZurdoDev11-Mar-15 9:48
professionalZurdoDev11-Mar-15 9:48 
QuestionPrivate messages Pin
Cornelius Henning7-Mar-15 3:45
professionalCornelius Henning7-Mar-15 3:45 
AnswerRe: Private messages Pin
Peter Leow7-Mar-15 4:34
professionalPeter Leow7-Mar-15 4:34 
GeneralRe: Private messages Pin
Pete O'Hanlon7-Mar-15 4:41
mvePete O'Hanlon7-Mar-15 4:41 
GeneralRe: Private messages Pin
Cornelius Henning7-Mar-15 5:23
professionalCornelius Henning7-Mar-15 5:23 
GeneralRe: Private messages Pin
Cornelius Henning7-Mar-15 5:06
professionalCornelius Henning7-Mar-15 5:06 
QuestionHow to add time in video using Ffmpeg. Pin
AmbiguousName2-Mar-15 3:44
AmbiguousName2-Mar-15 3:44 
QuestionASP.NET Pin
aswadmanap26-Feb-15 15:46
aswadmanap26-Feb-15 15:46 
AnswerRe: ASP.NET Pin
ZurdoDev26-Feb-15 16:22
professionalZurdoDev26-Feb-15 16:22 
AnswerRe: ASP.NET Pin
Richard MacCutchan26-Feb-15 21:23
mveRichard MacCutchan26-Feb-15 21:23 
QuestionI had a question in my mind Pin
Afzaal Ahmad Zeeshan26-Feb-15 9:11
professionalAfzaal Ahmad Zeeshan26-Feb-15 9:11 
AnswerRe: I had a question in my mind Pin
Pete O'Hanlon26-Feb-15 10:04
mvePete O'Hanlon26-Feb-15 10:04 
GeneralRe: I had a question in my mind Pin
Afzaal Ahmad Zeeshan26-Feb-15 10:38
professionalAfzaal Ahmad Zeeshan26-Feb-15 10:38 
GeneralRe: I had a question in my mind Pin
Gonzoox5-Mar-15 3:09
Gonzoox5-Mar-15 3:09 
GeneralRe: I had a question in my mind Pin
Member 1153195817-Mar-15 1:25
Member 1153195817-Mar-15 1:25 
QuestionI need some direction how to decode compiler parameters passed by txt file Pin
Vaclav_13-Feb-15 6:20
Vaclav_13-Feb-15 6:20 
OK I am stuck again and getting nowhere asking this on Arduino site.

To my best knowledge Arduino application is build using gcc compiler.
I know that gcc compiler is passed ton of parameters know how to find out their function / description.

I understand such parameters can be put into a batch file and Arduino folks apparently use plain x.txt file to do just that.

I am LITTLE familiar with .bat files syntax , but have not have any need to use bat files ages.

Now what I DO NOT KNOW how is this batch / platform.txt file is organized, its syntax etc.

<b>Could I get some pointers where to start looking for basic information about usage of txt files in passing parameters to compilers?

</b>

I am enclosing the entire platform.txt file in case it would be easier just to annotate it to show me what I am looking at or where to find what particular line is suppose to accomplish.

PS I am basically trying to figure out how is this platform.txt accomplishing the last task
- SAM3 Uploader tools, but I want to learn more about the txt batch files usage.
I have full access to BOSSAC source on github.

I really appreciate any help.
Thanks
Vaclav



# Arduino SAM Core and platform.
#
# For more info:
# https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5---3rd-party-Hardware-specification

name=Arduino ARM (32-bits) Boards
version=1.6.0

# SAM3 compile variables
# ----------------------

compiler.path={runtime.ide.path}/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/bin/
compiler.c.cmd=arm-none-eabi-gcc
compiler.c.flags=-c -g -Os -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD
compiler.c.elf.cmd=arm-none-eabi-gcc
compiler.c.elf.flags=-Os -Wl,--gc-sections
compiler.S.flags=-c -g -x assembler-with-cpp
compiler.cpp.cmd=arm-none-eabi-g++
compiler.cpp.flags=-c -g -Os -w -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD
compiler.ar.cmd=arm-none-eabi-ar
compiler.ar.flags=rcs
compiler.objcopy.cmd=arm-none-eabi-objcopy
compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0
compiler.elf2hex.flags=-O binary
compiler.elf2hex.cmd=arm-none-eabi-objcopy
compiler.ldflags=
compiler.size.cmd=arm-none-eabi-size
compiler.define=-DARDUINO=

# this can be overriden in boards.txt
build.extra_flags=

# These can be overridden in platform.local.txt
compiler.c.extra_flags=
compiler.c.elf.extra_flags=
compiler.cpp.extra_flags=
compiler.ar.extra_flags=
compiler.elf2hex.extra_flags=


compiler.libsam.c.flags="-I{build.system.path}/libsam" "-I{build.system.path}/CMSIS/CMSIS/Include/" "-I{build.system.path}/CMSIS/Device/ATMEL/"

# USB Flags
# ---------
build.usb_flags=-DUSB_VID={build.vid} -DUSB_PID={build.pid} -DUSBCON '-DUSB_MANUFACTURER={build.usb_manufacturer}' '-DUSB_PRODUCT={build.usb_product}'

# Default usb manufacturer will be replaced at compile time using
# numeric vendor ID if available or by board's specific value.
build.usb_manufacturer="Unknown"


# SAM3 compile patterns
# ---------------------

## Compile c files
recipe.c.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.c.flags} -mcpu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.c.extra_flags} {build.extra_flags} {compiler.libsam.c.flags} {includes} "{source_file}" -o "{object_file}"

## Compile c++ files
recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -mcpu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {compiler.libsam.c.flags} {includes} "{source_file}" -o "{object_file}"

## Create archives
recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}"

## Combine gc-sections, archives, and objects
recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mcpu={build.mcu} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" "-L{build.path}" -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group "{build.path}/syscalls_sam3.c.o" {object_files} "{build.variant.path}/{build.variant_system_lib}" "{build.path}/{archive_file}" -Wl,--end-group -lm -gcc

## Create eeprom
recipe.objcopy.eep.pattern=

## Create hex
recipe.objcopy.hex.pattern="{compiler.path}{compiler.elf2hex.cmd}" {compiler.elf2hex.flags} {compiler.elf2hex.extra_flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.bin"

## Compute size
recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"
recipe.size.regex=\.text\s+([0-9]+).*


# SAM3 Uploader tools
# -------------------

tools.bossac.cmd=bossac
tools.bossac.cmd.windows=bossac.exe /k // try this
tools.bossac.path={runtime.ide.path}/hardware/tools

tools.bossac.upload.params.verbose=-i -d
tools.bossac.upload.params.quiet=
tools.bossac.upload.pattern="{path}/{cmd}" {upload.verbose} --port={serial.port.file} -U {upload.native_usb} -e -w -v -b "{build.path}/{build.project_name}.bin" -R
QuestionOF need DOS / CMD reminder Pin
Vaclav_11-Feb-15 6:56
Vaclav_11-Feb-15 6:56 
AnswerRe: OF need DOS / CMD reminder Pin
Richard Deeming11-Feb-15 7:13
mveRichard Deeming11-Feb-15 7:13 
GeneralSOLVED Re: OF need DOS / CMD reminder Pin
Vaclav_11-Feb-15 7:17
Vaclav_11-Feb-15 7:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.