mirror of
https://github.com/digistump/DigistumpArduino.git
synced 2025-09-17 17:32:25 -07:00
switch to setup for Arduino Boards Manager
This commit is contained in:
@@ -0,0 +1,75 @@
|
||||
# ----------------------------------------------------------------------------
|
||||
# ATMEL Microcontroller Software Support
|
||||
# ----------------------------------------------------------------------------
|
||||
# Copyright (c) 2010, Atmel Corporation
|
||||
#
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following condition is met:
|
||||
#
|
||||
# - Redistributions of source code must retain the above copyright notice,
|
||||
# this list of conditions and the disclaimer below.
|
||||
#
|
||||
# Atmel's name may not be used to endorse or promote products derived from
|
||||
# this software without specific prior written permission.
|
||||
#
|
||||
# DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
|
||||
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
|
||||
# DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
|
||||
# OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
||||
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
# make inner variables
|
||||
.DEFAULT_GOAL := all
|
||||
|
||||
# custom variables
|
||||
BUILD_NUMBER :=
|
||||
BUILDS :=
|
||||
CLEANS :=
|
||||
|
||||
# Build macro
|
||||
define BUILD_SERIES
|
||||
|
||||
# output test number information
|
||||
$(info Defining cmsis_example_$(1)_build and cmsis_example_$(1)_clean)
|
||||
|
||||
# add the incoming targets to global targets
|
||||
BUILDS += cmsis_example_$(1)_build
|
||||
CLEANS += cmsis_example_$(1)_clean
|
||||
BUILD_NUMBER += x
|
||||
|
||||
.PHONY: cmsis_example_$(1)_build
|
||||
cmsis_example_$(1)_build:
|
||||
@echo ---
|
||||
@echo ---
|
||||
@echo --- Making $(1)
|
||||
@echo ---
|
||||
@$(MAKE) CHIP=$(1) -f cmsis_example.mk
|
||||
|
||||
.PHONY: cmsis_example_$(1)_clean
|
||||
cmsis_example_$(1)_clean:
|
||||
@echo ---
|
||||
@echo ---
|
||||
@echo --- Cleaning $(1)
|
||||
@echo ---
|
||||
@$(MAKE) CHIP=$(1) clean -f cmsis_example.mk
|
||||
endef
|
||||
|
||||
# define SAM series
|
||||
include sam_series.mk
|
||||
|
||||
$(foreach SERIES, $(SAM_SERIES), $(eval $(call BUILD_SERIES,$(SERIES))))
|
||||
|
||||
# output test number information
|
||||
$(info Number of devices to be tested $(words $(BUILD_NUMBER)) / $(words $(SAM_SERIES)))
|
||||
|
||||
all: $(BUILDS)
|
||||
|
||||
clean: $(CLEANS)
|
@@ -0,0 +1 @@
|
||||
@make --no-builtin-rules --no-builtin-variables >log.txt 2>&1
|
@@ -0,0 +1 @@
|
||||
@make --no-builtin-rules --no-builtin-variables -d >log_debug.txt 2>&1
|
@@ -0,0 +1,197 @@
|
||||
# ----------------------------------------------------------------------------
|
||||
# ATMEL Microcontroller Software Support
|
||||
# ----------------------------------------------------------------------------
|
||||
# Copyright (c) 2010, Atmel Corporation
|
||||
#
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following condition is met:
|
||||
#
|
||||
# - Redistributions of source code must retain the above copyright notice,
|
||||
# this list of conditions and the disclaimer below.
|
||||
#
|
||||
# Atmel's name may not be used to endorse or promote products derived from
|
||||
# this software without specific prior written permission.
|
||||
#
|
||||
# DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
|
||||
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
|
||||
# DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
|
||||
# OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
||||
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# User-modifiable options
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
ifeq ('$(CHIP)','')
|
||||
$(error CHIP not defined)
|
||||
endif
|
||||
|
||||
include sam_series.mk
|
||||
|
||||
# fill the needed variables
|
||||
ifeq ($(CHIP),$(findstring $(CHIP), $(SAM3N)))
|
||||
|
||||
BOARD:=SAM3N_EK
|
||||
SERIES:=sam3n
|
||||
|
||||
else ifeq ($(CHIP),$(findstring $(CHIP), $(SAM3S)))
|
||||
|
||||
BOARD:=SAM3S_EK
|
||||
SERIES:=sam3s
|
||||
|
||||
else ifeq ($(CHIP),$(findstring $(CHIP), $(SAM3SD8)))
|
||||
|
||||
BOARD:=SAM3S_EK2
|
||||
SERIES:=sam3sd8
|
||||
|
||||
else ifeq ($(CHIP),$(findstring $(CHIP), $(SAM3U)))
|
||||
|
||||
BOARD:=SAM3U_EK
|
||||
SERIES:=sam3u
|
||||
|
||||
else ifeq ($(CHIP),$(findstring $(CHIP), $(SAM3XA)))
|
||||
|
||||
BOARD:=SAM3X_EK
|
||||
SERIES:=sam3xa
|
||||
|
||||
else ifeq ($(CHIP),$(findstring $(CHIP), $(SAM4S)))
|
||||
|
||||
BOARD:=SAM4S_EK
|
||||
SERIES:=sam4s
|
||||
|
||||
endif
|
||||
|
||||
|
||||
# Defines which are the available memory targets for the device.
|
||||
MEMORIES = sram flash
|
||||
|
||||
# Optimization level, put in comment for debugging
|
||||
OPTIMIZATION = -Os
|
||||
|
||||
# Output directories
|
||||
BIN = $(CHIP)_bin
|
||||
OBJ = $(CHIP)_obj
|
||||
|
||||
# Output file basename
|
||||
OUTPUT_BIN = $(BIN)/cmsis_example_$(BOARD)_$(CHIP)
|
||||
|
||||
# GCC toolchain provider
|
||||
GCC_TOOLCHAIN=gcc_atmel
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Tools
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
# Toolchain prefix when cross-compiling
|
||||
CROSS_COMPILE = arm-none-eabi-
|
||||
|
||||
CMSIS_ROOT=../../..
|
||||
CMSIS_PATH=$(CMSIS_ROOT)/CMSIS/Include
|
||||
SAM_PATH=$(CMSIS_ROOT)/Device/ATMEL
|
||||
DEVICE_PATH=$(SAM_PATH)/$(SERIES)/source
|
||||
|
||||
LIBS = -Wl,--start-group -lgcc -lc -Wl,--end-group
|
||||
|
||||
LIB_PATH+=-L=/lib/thumb2
|
||||
LIB_PATH+=-L"$(realpath $(DEVICE_PATH)/$(GCC_TOOLCHAIN))"
|
||||
|
||||
# Compilation tools
|
||||
CC = $(CROSS_COMPILE)gcc
|
||||
LD = $(CROSS_COMPILE)ld
|
||||
SIZE = $(CROSS_COMPILE)size
|
||||
STRIP = $(CROSS_COMPILE)strip
|
||||
OBJCOPY = $(CROSS_COMPILE)objcopy
|
||||
GDB = $(CROSS_COMPILE)gdb
|
||||
NM = $(CROSS_COMPILE)nm
|
||||
RM = rm
|
||||
|
||||
# Flags
|
||||
INCLUDES := -I"$(CMSIS_PATH)"
|
||||
INCLUDES += -I"$(SAM_PATH)"
|
||||
INCLUDES += -I"$(SAM_PATH)/$(SERIES)/include"
|
||||
|
||||
CFLAGS += -Wall -Wchar-subscripts -Wcomment -Wformat=2 -Wimplicit-int
|
||||
CFLAGS += -Werror-implicit-function-declaration -Wmain -Wparentheses
|
||||
CFLAGS += -Wsequence-point -Wreturn-type -Wswitch -Wtrigraphs -Wunused
|
||||
CFLAGS += -Wuninitialized -Wunknown-pragmas -Wfloat-equal -Wundef
|
||||
CFLAGS += -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings
|
||||
CFLAGS += -Wsign-compare -Waggregate-return -Wstrict-prototypes
|
||||
CFLAGS += -Wmissing-prototypes -Wmissing-declarations
|
||||
CFLAGS += -Wformat -Wmissing-format-attribute -Wno-deprecated-declarations
|
||||
CFLAGS += -Wpacked -Wredundant-decls -Wnested-externs -Winline -Wlong-long
|
||||
CFLAGS += -Wunreachable-code
|
||||
CFLAGS += -Wcast-align
|
||||
#CFLAGS += -Wmissing-noreturn
|
||||
#CFLAGS += -Wconversion
|
||||
|
||||
# To reduce application size use only integer printf function.
|
||||
CFLAGS += -Dprintf=iprintf
|
||||
|
||||
# CFLAGS += -mlong-calls -Wall
|
||||
# CFLAGS += -ansi
|
||||
CFLAGS += -std=c99
|
||||
CFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m3 -mthumb -ffunction-sections
|
||||
CFLAGS += -g $(OPTIMIZATION) $(INCLUDES) -D__$(CHIP)__ -DBOARD=$(BOARD)
|
||||
ASFLAGS = -mcpu=cortex-m3 -mthumb -Wall -g $(OPTIMIZATION) $(INCLUDES) -D__$(CHIP)__ -D__ASSEMBLY__
|
||||
LDFLAGS= -mcpu=cortex-m3 -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--defsym=STACK_SIZE=0x200 -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols
|
||||
#LD_OPTIONAL=-Wl,--print-gc-sections -Wl,--stats
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Files
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
# Directories where source files can be found
|
||||
|
||||
VPATH += ..
|
||||
VPATH += $(DEVICE_PATH)
|
||||
VPATH += $(DEVICE_PATH)/$(GCC_TOOLCHAIN)
|
||||
|
||||
# Objects built from C source files
|
||||
C_OBJECTS += main.o
|
||||
C_OBJECTS += startup_$(SERIES).o
|
||||
C_OBJECTS += system_$(SERIES).o
|
||||
|
||||
# Append OBJ and BIN directories to output filename
|
||||
OUTPUT := $(BIN)/$(OUTPUT_BIN)
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Rules
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
all: $(BIN) $(OBJ) $(MEMORIES)
|
||||
|
||||
$(BIN) $(OBJ):
|
||||
-@mkdir $@
|
||||
|
||||
define RULES
|
||||
C_OBJECTS_$(1) = $(addprefix $(OBJ)/$(1)_, $(C_OBJECTS))
|
||||
ASM_OBJECTS_$(1) = $(addprefix $(OBJ)/$(1)_, $(ASM_OBJECTS))
|
||||
|
||||
$(1): $$(ASM_OBJECTS_$(1)) $$(C_OBJECTS_$(1))
|
||||
$(CC) $(LIB_PATH) $(LDFLAGS) $(LD_OPTIONAL) -T"$(realpath $(DEVICE_PATH)/$(GCC_TOOLCHAIN)/$(CHIP)_$$@.ld)" -Wl,-Map,"$(OUTPUT_BIN)_$$@.map" -o "$(OUTPUT_BIN)_$$@.elf" $$^ $(LIBS)
|
||||
@$(NM) "$(OUTPUT_BIN)_$$@.elf" >"$(OUTPUT_BIN)_$$@.elf.txt"
|
||||
@$(OBJCOPY) -O binary "$(OUTPUT_BIN)_$$@.elf" "$(OUTPUT_BIN)_$$@.bin"
|
||||
@$(SIZE) $$^ "$(OUTPUT_BIN)_$$@.elf"
|
||||
|
||||
$$(C_OBJECTS_$(1)): $(OBJ)/$(1)_%.o: %.c Makefile $(OBJ) $(BIN)
|
||||
@$(CC) $(CFLAGS) -D$(1) -c -o $$@ $$<
|
||||
|
||||
$$(ASM_OBJECTS_$(1)): $(OBJ)/$(1)_%.o: %.S Makefile $(OBJ) $(BIN)
|
||||
@$(CC) $(ASFLAGS) -D$(1) -c -o $$@ $$<
|
||||
|
||||
debug_$(1): $(1)
|
||||
$(GDB) -x "$(CHIP)_$(1).gdb" -ex "reset" -readnow -se "$(OUTPUT_BIN)_$(1).elf"
|
||||
endef
|
||||
|
||||
$(foreach MEMORY, $(MEMORIES), $(eval $(call RULES,$(MEMORY))))
|
||||
|
||||
clean:
|
||||
-$(RM) -fR $(OBJ) $(BIN)
|
@@ -0,0 +1,151 @@
|
||||
* CoreUtils-5.3.0 for Windows *
|
||||
===============================
|
||||
|
||||
What is it?
|
||||
-----------
|
||||
CoreUtils: collection of basic file, shell and text manipulation utilities
|
||||
|
||||
Description
|
||||
-----------
|
||||
The GNU Core Utilities are the basic file, shell and text manipulation utilities
|
||||
of the GNU operating system. These are the core utilities which are expected to
|
||||
exist on every operating system.
|
||||
|
||||
File utilities:
|
||||
|
||||
- chgrp: Changes file group ownership.
|
||||
- chown: Changes file ownership.
|
||||
- chmod: Changes file permissions.
|
||||
- cp: Copies files.
|
||||
- dd: Copies and converts a file.
|
||||
- df: Shows disk free space on filesystems.
|
||||
- dir: Gives a brief directory listing.
|
||||
- dircolors: Setup program for the color output of GNU ls.
|
||||
- du: Shows disk usage on filesystems.
|
||||
- install: Copies file and sets its permissions.
|
||||
- ln: Creates file links.
|
||||
- ls: Lists directory contents.
|
||||
- mkdir: Creates directories.
|
||||
- mkfifo: Creates FIFOs (named pipes).
|
||||
- mknod: Creates special files.
|
||||
- mv: Moves files.
|
||||
- rm: Removes (deletes) files.
|
||||
- rmdir: Removes empty directories.
|
||||
- shred: Destroy data in files.
|
||||
- sync: Synchronizes filesystem buffers and disk.
|
||||
- touch: Changes file timestamps.
|
||||
- vdir: Long directory listing.
|
||||
|
||||
|
||||
Text utilities:
|
||||
|
||||
- cat: concatenates and prints files on the standard output
|
||||
- cksum: checksum and count the bytes in a file
|
||||
- comm: compares two sorted files line by line
|
||||
- csplit: splits a file into sections determined by context lines
|
||||
- cut: remove sections from each line of files
|
||||
- expand: convert tabs to spaces
|
||||
- fmt: simple optimal text formatter
|
||||
- fold: wrap each input line to fit in specified width
|
||||
- head: output the first part of files
|
||||
- join: join lines of two files on a common field
|
||||
- md5sum: compute and check MD5 messsage digest
|
||||
- nl: number lines of files
|
||||
- od: dump files in octal and other formats
|
||||
- paste: merge lines of files
|
||||
- ptx: produce a permuted index of file contents
|
||||
- pr: convert text files for printing
|
||||
- shasum: compute and check SHA1 message digest
|
||||
- sort: sort lines of text files
|
||||
- split: split a file into pieces
|
||||
- sum: checksum and count the blocks in a file
|
||||
- tac: concatenates and prints files in reverse
|
||||
- tail: outputs the last part of files
|
||||
- tr: translates or deletes characters
|
||||
- tsort: perform topological sort
|
||||
- unexpand: convert spaces to tabs
|
||||
- uniq: remove duplicate lines from a sorted file
|
||||
- wc: prints the number of bytes, words, and lines in files
|
||||
|
||||
|
||||
Shell utilities:
|
||||
|
||||
- [ - Check file types and compare values
|
||||
- basename - Removes the path prefix from a given pathname.
|
||||
- chroot - Changes the root directory.
|
||||
- date - Prints/sets the system date and time.
|
||||
- dirname - Removes the last level or filename from a given pathname.
|
||||
- echo - Prints a line of text.
|
||||
- env - Displays/modifies the environment.
|
||||
- expr - Evaluates expressions.
|
||||
- factor - Prints prime factors.
|
||||
- false - Returns an unsuccessful exit status.
|
||||
- groups - Print the groups that the user is a member of.
|
||||
- hostid - Print the numeric identifier for the current host
|
||||
- hostname - Print or set the machine name.
|
||||
- id - Print real/effective uid/gid.
|
||||
- logname - Print current login name.
|
||||
- nice - Modify scheduling priority.
|
||||
- nohup - Allows a command to continue running after logging out.
|
||||
- pathchk - Check file name portability.
|
||||
- pinky - Lightweight finger
|
||||
- printenv - Prints environment variables.
|
||||
- printf - Formats and prints data.
|
||||
- pwd - Print the current working directory.
|
||||
- seq - Print numeric sequences.
|
||||
- sleep - Suspends execution for a specified time.
|
||||
- stty - Print/change terminal settings.
|
||||
- su - Allows you to adopt the id of another user or superuser.
|
||||
- tee - Sends output to multiple files.
|
||||
- test - Evaluates an expression.
|
||||
- true - Returns a successful exit status.
|
||||
- tty - Print terminal name.
|
||||
- uname - Print system information.
|
||||
- users - Print current user names.
|
||||
- who - Print a list of all users currently logged in.
|
||||
- whoami - Print effective user id.
|
||||
- yes - Print a string repeatedly.
|
||||
|
||||
Homepage
|
||||
--------
|
||||
http://www.gnu.org/software/coreutils
|
||||
|
||||
System
|
||||
------
|
||||
- MS-Windows 95 / 98 / ME / NT / 2000 / XP with msvcrt.dll
|
||||
- if msvcrt.dll is not in your Windows/System folder, get it from
|
||||
Microsoft <http://support.microsoft.com/default.aspx?scid=kb;en-us;259403">
|
||||
or by installing Internet Explorer 4.0 or higher
|
||||
<http://www.microsoft.com/windows/ie>
|
||||
- libintl-2 <http://gnuwin32.sourceforge.net/packages/libintl.htm>
|
||||
- libiconv-2 <http://gnuwin32.sourceforge.net/packages/libiconv.htm>
|
||||
|
||||
Notes
|
||||
-----
|
||||
- Bugs and questions on this MS-Windows port: gnuwin32@users.sourceforge.net
|
||||
|
||||
Package Availability
|
||||
--------------------
|
||||
- in: http://gnuwin32.sourceforge.net
|
||||
Installation
|
||||
------------
|
||||
The MS-Windows version of ln implements soft links as MS-Windows
|
||||
shortcuts. If necessary, it adds the extension .lnk
|
||||
Hard links are implemented as copies on MS-Windows-95 / 98 / ME,
|
||||
and as hard linls on MS-Windows-NT / 2000 / XP.
|
||||
|
||||
Sources
|
||||
-------
|
||||
- coreutils-5.3.0-src.zip
|
||||
|
||||
Compilation
|
||||
-----------
|
||||
The package has been compiled with GNU auto-tools, GNU make, and Mingw
|
||||
(GCC for MS-Windows). Any differences from the original sources are given
|
||||
in coreutils-5.3.0-GnuWin32.diffs in coreutils-5.3.0-src.zip. Libraries needed
|
||||
for compilation can be found at the lines starting with 'LIBS = ' in the
|
||||
Makefiles. Usually, these are standard libraries provided with Mingw, or
|
||||
libraries from the package itself; 'gw32c' refers to the libgw32c package,
|
||||
which provides MS-Windows substitutes or stubs for functions normally found in
|
||||
Unix. For more information, see: http://gnuwin32.sourceforge.net/compile.html
|
||||
and http://gnuwin32.sourceforge.net/packages/libgw32c.htm.
|
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,50 @@
|
||||
* Make-3.81 for Windows *
|
||||
=========================
|
||||
|
||||
What is it?
|
||||
-----------
|
||||
Make: GNU make utility to maintain groups of programs
|
||||
|
||||
Description
|
||||
-----------
|
||||
Make is a tool which controls the generation of executables and other non-source files of a program from the program's source files. Make gets its knowledge of how to build your program from a file called the makefile, which lists each of the non-source files and how to compute it from other files. When you write a program, you should write a makefile for it, so that it is possible to use Make to build and install the program. Capabilities of Make - Make enables the end user to build and install your package without knowing the details of how that is done -- because these details are recorded in the makefile that you supply. - Make figures out automatically which files it needs to update, based on which source files have changed. It also automatically determines the proper order for updating files, in case one non-source file depends on another non-source file. As a result, if you change a few source files and then run Make, it does not need to recompile all of your program. It updates only those non-source files that depend directly or indirectly on the source files that you changed. - Make is not limited to any particular language. For each non-source file in the program, the makefile specifies the shell commands to compute it. These shell commands can run a compiler to produce an object file, the linker to produce an executable, ar to update a library, or TeX or Makeinfo to format documentation. - Make is not limited to building a package. You can also use Make to control installing or deinstalling a package, generate tags tables for it, or anything else you want to do often enough to make it worth while writing down how to do it.
|
||||
|
||||
Homepage
|
||||
--------
|
||||
http://www.gnu.org/software/make
|
||||
|
||||
System
|
||||
------
|
||||
- Win32, i.e. MS-Windows 95 / 98 / ME / NT / 2000 / XP / 2003 with msvcrt.dll
|
||||
- if msvcrt.dll is not in your Windows/System folder, get it from
|
||||
Microsoft <http://support.microsoft.com/default.aspx?scid=kb;en-us;259403">
|
||||
or by installing Internet Explorer 4.0 or higher
|
||||
<http://www.microsoft.com/windows/ie>
|
||||
- libintl3 <http://gnuwin32.sourceforge.net/packages/libintl3.htm>
|
||||
- libiconv2 <http://gnuwin32.sourceforge.net/packages/libiconv2.htm>
|
||||
|
||||
Notes
|
||||
-----
|
||||
- Bugs and questions on this MS-Windows port: gnuwin32@users.sourceforge.net
|
||||
|
||||
Package Availability
|
||||
--------------------
|
||||
- in: http://gnuwin32.sourceforge.net
|
||||
Installation
|
||||
------------
|
||||
|
||||
Sources
|
||||
-------
|
||||
- make-3.81-src.zip
|
||||
|
||||
Compilation
|
||||
-----------
|
||||
The package has been compiled with GNU auto-tools, GNU make, and Mingw
|
||||
(GCC for MS-Windows). Any differences from the original sources are given
|
||||
in make-3.81-GnuWin32.diffs in make-3.81-src.zip. Libraries needed
|
||||
for compilation can be found at the lines starting with 'LIBS = ' in the
|
||||
Makefiles. Usually, these are standard libraries provided with Mingw, or
|
||||
libraries from the package itself; 'gw32c' refers to the libgw32c package,
|
||||
which provides MS-Windows substitutes or stubs for functions normally found in
|
||||
Unix. For more information, see: http://gnuwin32.sourceforge.net/compile.html
|
||||
and http://gnuwin32.sourceforge.net/packages/libgw32c.htm.
|
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,35 @@
|
||||
#*******************************************************
|
||||
#
|
||||
# Connect to J-Link and debug application in flash on SAM3N.
|
||||
#
|
||||
|
||||
# Define 'reset' command
|
||||
define reset
|
||||
|
||||
# Connect to the J-Link gdb server
|
||||
target remote localhost:2331
|
||||
|
||||
# Reset the chip to get to a known state
|
||||
monitor reset
|
||||
|
||||
# Select flash device
|
||||
monitor flash device = AT91SAM3N4C
|
||||
|
||||
# Enable flash download and flash breakpoints
|
||||
monitor flash download = 1
|
||||
|
||||
# Load the program
|
||||
load
|
||||
|
||||
# Reset peripheral (RSTC_CR)
|
||||
set *0x400e1400 = 0xA5000004
|
||||
|
||||
# Initialize PC and stack pointer
|
||||
mon reg sp=(0x00400000)
|
||||
#set *0x400004 = *0x400004 & 0xFFFFFFFE
|
||||
mon reg pc=(0x00400004)
|
||||
|
||||
info reg
|
||||
|
||||
# End of 'reset' command
|
||||
end
|
@@ -0,0 +1,29 @@
|
||||
#*******************************************************
|
||||
#
|
||||
# Connect to J-Link and debug application in sram on SAM3N.
|
||||
#
|
||||
|
||||
# Define 'reset' command
|
||||
define reset
|
||||
|
||||
# Connect to the J-Link gdb server
|
||||
target remote localhost:2331
|
||||
|
||||
# Reset the chip to get to a known state
|
||||
monitor reset
|
||||
|
||||
# Load the program
|
||||
load
|
||||
|
||||
# Reset peripheral (RSTC_CR)
|
||||
set *0x400e1400 = 0xA5000004
|
||||
|
||||
# Initialize PC and stack pointer
|
||||
mon reg sp=(0x20000000)
|
||||
#set *0x20000004 = *0x20000004 & 0xFFFFFFFE
|
||||
mon reg pc=(0x20000004)
|
||||
|
||||
info reg
|
||||
|
||||
# End of 'reset' command
|
||||
end
|
@@ -0,0 +1,35 @@
|
||||
#*******************************************************
|
||||
#
|
||||
# Connect to J-Link and debug application in flash on SAM3S.
|
||||
#
|
||||
|
||||
# Define 'reset' command
|
||||
define reset
|
||||
|
||||
# Connect to the J-Link gdb server
|
||||
target remote localhost:2331
|
||||
|
||||
# Reset the chip to get to a known state
|
||||
monitor reset
|
||||
|
||||
# Select flash device
|
||||
monitor flash device = AT91SAM3S4C
|
||||
|
||||
# Enable flash download and flash breakpoints
|
||||
monitor flash download = 1
|
||||
|
||||
# Load the program
|
||||
load
|
||||
|
||||
# Reset peripheral (RSTC_CR)
|
||||
set *0x400e1400 = 0xA5000004
|
||||
|
||||
# Initialize PC and stack pointer
|
||||
mon reg sp=(0x400000)
|
||||
#set *0x400004 = *0x400004 & 0xFFFFFFFE
|
||||
mon reg pc=(0x400004)
|
||||
|
||||
info reg
|
||||
|
||||
# End of 'reset' command
|
||||
end
|
@@ -0,0 +1,29 @@
|
||||
#*******************************************************
|
||||
#
|
||||
# Connect to J-Link and debug application in sram on SAM3S.
|
||||
#
|
||||
|
||||
# Define 'reset' command
|
||||
define reset
|
||||
|
||||
# Connect to the J-Link gdb server
|
||||
target remote localhost:2331
|
||||
|
||||
# Reset the chip to get to a known state
|
||||
monitor reset
|
||||
|
||||
# Load the program
|
||||
load
|
||||
|
||||
# Reset peripheral (RSTC_CR)
|
||||
set *0x400e1400 = 0xA5000004
|
||||
|
||||
# Initialize PC and stack pointer
|
||||
mon reg sp=(0x20000000)
|
||||
#set *0x20000004 = *0x20000004 & 0xFFFFFFFE
|
||||
mon reg pc=(0x20000004)
|
||||
|
||||
info reg
|
||||
|
||||
# End of 'reset' command
|
||||
end
|
@@ -0,0 +1,35 @@
|
||||
#*******************************************************
|
||||
#
|
||||
# Connect to J-Link and debug application in flash on SAM3S.
|
||||
#
|
||||
|
||||
# Define 'reset' command
|
||||
define reset
|
||||
|
||||
# Connect to the J-Link gdb server
|
||||
target remote localhost:2331
|
||||
|
||||
# Reset the chip to get to a known state
|
||||
monitor reset
|
||||
|
||||
# Select flash device
|
||||
monitor flash device = AT91SAM3S4C
|
||||
|
||||
# Enable flash download and flash breakpoints
|
||||
monitor flash download = 1
|
||||
|
||||
# Load the program
|
||||
load
|
||||
|
||||
# Reset peripheral (RSTC_CR)
|
||||
set *0x400e1400 = 0xA5000004
|
||||
|
||||
# Initialize PC and stack pointer
|
||||
mon reg sp=(0x400000)
|
||||
#set *0x400004 = *0x400004 & 0xFFFFFFFE
|
||||
mon reg pc=(0x400004)
|
||||
|
||||
info reg
|
||||
|
||||
# End of 'reset' command
|
||||
end
|
@@ -0,0 +1,29 @@
|
||||
#*******************************************************
|
||||
#
|
||||
# Connect to J-Link and debug application in sram on SAM3S.
|
||||
#
|
||||
|
||||
# Define 'reset' command
|
||||
define reset
|
||||
|
||||
# Connect to the J-Link gdb server
|
||||
target remote localhost:2331
|
||||
|
||||
# Reset the chip to get to a known state
|
||||
monitor reset
|
||||
|
||||
# Load the program
|
||||
load
|
||||
|
||||
# Reset peripheral (RSTC_CR)
|
||||
set *0x400e1400 = 0xA5000004
|
||||
|
||||
# Initialize PC and stack pointer
|
||||
mon reg sp=(0x20000000)
|
||||
#set *0x20000004 = *0x20000004 & 0xFFFFFFFE
|
||||
mon reg pc=(0x20000004)
|
||||
|
||||
info reg
|
||||
|
||||
# End of 'reset' command
|
||||
end
|
@@ -0,0 +1,35 @@
|
||||
#*******************************************************
|
||||
#
|
||||
# Connect to J-Link and debug application in flash on SAM3U.
|
||||
#
|
||||
|
||||
# Define 'reset' command
|
||||
define reset
|
||||
|
||||
# Connect to the J-Link gdb server
|
||||
target remote localhost:2331
|
||||
|
||||
# Reset the chip to get to a known state
|
||||
monitor reset
|
||||
|
||||
# Select flash device
|
||||
monitor flash device = AT91SAM3U4E
|
||||
|
||||
# Enable flash download and flash breakpoints
|
||||
monitor flash download = 1
|
||||
|
||||
# Load the program
|
||||
load
|
||||
|
||||
# Reset peripheral (RSTC_CR)
|
||||
set *0x400e1200 = 0xA5000004
|
||||
|
||||
# Initialize PC and stack pointer
|
||||
mon reg sp=(0x80000)
|
||||
#set *0x80004 = *0x80004 & 0xFFFFFFFE
|
||||
mon reg pc=(0x80004)
|
||||
|
||||
info reg
|
||||
|
||||
# End of 'reset' command
|
||||
end
|
@@ -0,0 +1,29 @@
|
||||
#*******************************************************
|
||||
#
|
||||
# Connect to J-Link and debug application in sram on SAM3U.
|
||||
#
|
||||
|
||||
# Define 'reset' command
|
||||
define reset
|
||||
|
||||
# Connect to the J-Link gdb server
|
||||
target remote localhost:2331
|
||||
|
||||
# Reset the chip to get to a known state
|
||||
monitor reset
|
||||
|
||||
# Load the program
|
||||
load
|
||||
|
||||
# Reset peripheral (RSTC_CR)
|
||||
set *0x400e1200 = 0xA5000004
|
||||
|
||||
# Initialize PC and stack pointer
|
||||
mon reg sp=(0x20000000)
|
||||
#set *0x20000004 = *0x20000004 & 0xFFFFFFFE
|
||||
mon reg pc=(0x20000004)
|
||||
|
||||
info reg
|
||||
|
||||
# End of 'reset' command
|
||||
end
|
@@ -0,0 +1,35 @@
|
||||
#*******************************************************
|
||||
#
|
||||
# Connect to J-Link and debug application in flash on SAM3X.
|
||||
#
|
||||
|
||||
# Define 'reset' command
|
||||
define reset
|
||||
|
||||
# Connect to the J-Link gdb server
|
||||
target remote localhost:2331
|
||||
|
||||
# Reset the chip to get to a known state
|
||||
monitor reset
|
||||
|
||||
# Select flash device
|
||||
monitor flash device = AT91SAM3X8H
|
||||
|
||||
# Enable flash download and flash breakpoints
|
||||
monitor flash download = 1
|
||||
|
||||
# Load the program
|
||||
load
|
||||
|
||||
# Reset peripheral (RSTC_CR)
|
||||
set *0x400e1a00 = 0xA5000004
|
||||
|
||||
# Initialize PC and stack pointer
|
||||
mon reg sp=(0x80000)
|
||||
#set *0x80004 = *0x80004 & 0xFFFFFFFE
|
||||
mon reg pc=(0x80004)
|
||||
|
||||
info reg
|
||||
|
||||
# End of 'reset' command
|
||||
end
|
@@ -0,0 +1,29 @@
|
||||
#*******************************************************
|
||||
#
|
||||
# Connect to J-Link and debug application in sram on SAM3X.
|
||||
#
|
||||
|
||||
# Define 'reset' command
|
||||
define reset
|
||||
|
||||
# Connect to the J-Link gdb server
|
||||
target remote localhost:2331
|
||||
|
||||
# Reset the chip to get to a known state
|
||||
monitor reset
|
||||
|
||||
# Load the program
|
||||
load
|
||||
|
||||
# Reset peripheral (RSTC_CR)
|
||||
set *0x400e1a00 = 0xA5000004
|
||||
|
||||
# Initialize PC and stack pointer
|
||||
mon reg sp=(0x20000000)
|
||||
#set *0x20000004 = *0x20000004 & 0xFFFFFFFE
|
||||
mon reg pc=(0x20000004)
|
||||
|
||||
info reg
|
||||
|
||||
# End of 'reset' command
|
||||
end
|
@@ -0,0 +1,32 @@
|
||||
#*******************************************************
|
||||
#
|
||||
# Connect to J-Link and debug application in flash.
|
||||
#
|
||||
|
||||
# define 'reset' command
|
||||
define reset
|
||||
|
||||
# Connect to the J-Link gdb server
|
||||
target remote localhost:2331
|
||||
|
||||
# Reset the chip to get to a known state
|
||||
monitor reset
|
||||
|
||||
# Select flash device (Should be AT91SAM4S16C, but it is not available now)
|
||||
monitor flash device = AT91SAM4S16C
|
||||
# Enable flash download and flash breakpoints
|
||||
monitor flash download = 1
|
||||
|
||||
# Load the program
|
||||
load
|
||||
|
||||
# Reset peripheral (RSTC_CR)
|
||||
set *0x400e1400 = 0xA5000004
|
||||
|
||||
# Initializing PC and stack pointer
|
||||
mon reg sp=(0x400000)
|
||||
mon reg pc=(0x400004)
|
||||
info reg
|
||||
|
||||
# end of 'reset' command
|
||||
end
|
@@ -0,0 +1,27 @@
|
||||
#*************************************************
|
||||
#
|
||||
# Connect to J-Link and debug application in sram.
|
||||
#
|
||||
|
||||
# define 'reset' command
|
||||
define reset
|
||||
|
||||
# Connect to the J-Link gdb server
|
||||
target remote localhost:2331
|
||||
|
||||
# Reset the chip to get to a known state
|
||||
monitor reset
|
||||
|
||||
# Load the program
|
||||
load
|
||||
|
||||
# Reset peripheral (RSTC_CR)
|
||||
set *0x400e1400 = 0xA5000004
|
||||
|
||||
# Initializing PC and stack pointer
|
||||
mon reg sp=(0x20000000)
|
||||
mon reg pc=(0x20000004)
|
||||
info reg
|
||||
|
||||
# end of 'reset' command
|
||||
end
|
@@ -0,0 +1,37 @@
|
||||
# ----------------------------------------------------------------------------
|
||||
# ATMEL Microcontroller Software Support
|
||||
# ----------------------------------------------------------------------------
|
||||
# Copyright (c) 2010, Atmel Corporation
|
||||
#
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following condition is met:
|
||||
#
|
||||
# - Redistributions of source code must retain the above copyright notice,
|
||||
# this list of conditions and the disclaimer below.
|
||||
#
|
||||
# Atmel's name may not be used to endorse or promote products derived from
|
||||
# this software without specific prior written permission.
|
||||
#
|
||||
# DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
|
||||
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
|
||||
# DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
|
||||
# OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
||||
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
# define SAM series
|
||||
SAM3N=SAM3N00A SAM3N00B SAM3N0A SAM3N0B SAM3N0C SAM3N1A SAM3N1B SAM3N1C SAM3N2A SAM3N2B SAM3N2C SAM3N4A SAM3N4B SAM3N4C
|
||||
SAM3S=SAM3S1A SAM3S1B SAM3S1C SAM3S2A SAM3S2B SAM3S2C SAM3S4A SAM3S4B SAM3S4C
|
||||
SAM3SD8=SAM3S8B SAM3S8C SAM3SD8B SAM3SD8C
|
||||
SAM3U=SAM3U1C SAM3U1E SAM3U2C SAM3U2E SAM3U4C SAM3U4E
|
||||
SAM3XA=SAM3A4C SAM3A8C SAM3X4C SAM3X4E SAM3X8C SAM3X8E SAM3X8H
|
||||
SAM4S=SAM4S8B SAM4S8C SAM4S16B SAM4S16C
|
||||
|
||||
SAM_SERIES=$(SAM3N) $(SAM3S) $(SAM3SD8) $(SAM3U) $(SAM3XA) $(SAM4S)
|
Reference in New Issue
Block a user