1
0
mirror of https://github.com/rfivet/stm32bringup.git synced 2024-12-18 14:56:22 -05:00

Upgrade toolchain to 13.3.

Documentation revision with Firefox.
This commit is contained in:
Renaud 2024-09-20 15:27:09 +08:00
parent 8c464ae090
commit f199ffa8b0
5 changed files with 15 additions and 6 deletions

View File

@ -1,5 +1,5 @@
# Makefile -- stm32bringup # Makefile -- stm32bringup
# Copyright © 2020-2023 Renaud Fivet # Copyright © 2020-2024 Renaud Fivet
### Build environment selection ### Build environment selection
@ -14,7 +14,8 @@ ifeq (linux, $(findstring linux, $(MAKE_HOST)))
#REVDIR = arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi #REVDIR = arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi
#REVDIR = arm-gnu-toolchain-12.2.rel1-x86_64-arm-none-eabi #REVDIR = arm-gnu-toolchain-12.2.rel1-x86_64-arm-none-eabi
#REVDIR = arm-gnu-toolchain-12.2.mpacbti-rel1-x86_64-arm-none-eabi #REVDIR = arm-gnu-toolchain-12.2.mpacbti-rel1-x86_64-arm-none-eabi
REVDIR = arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi #REVDIR = arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi
REVDIR = arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi
else else
DRIVE = d DRIVE = d
ifeq (cygwin, $(findstring cygwin, $(MAKE_HOST))) ifeq (cygwin, $(findstring cygwin, $(MAKE_HOST)))
@ -38,7 +39,8 @@ endif
#REVDIR = GNU Arm Embedded Toolchain/arm-gnu-toolchain-11.3.rel1-mingw-w64-i686-arm-none-eabi #REVDIR = GNU Arm Embedded Toolchain/arm-gnu-toolchain-11.3.rel1-mingw-w64-i686-arm-none-eabi
#REVDIR = GNU Arm Embedded Toolchain/arm-gnu-toolchain-12.2.rel1-mingw-w64-i686-arm-none-eabi #REVDIR = GNU Arm Embedded Toolchain/arm-gnu-toolchain-12.2.rel1-mingw-w64-i686-arm-none-eabi
#REVDIR = GNU Arm Embedded Toolchain/arm-gnu-toolchain-12.2.mpacbti-rel1-mingw-w64-i686-arm-none-eabi #REVDIR = GNU Arm Embedded Toolchain/arm-gnu-toolchain-12.2.mpacbti-rel1-mingw-w64-i686-arm-none-eabi
REVDIR = GNU Arm Embedded Toolchain/arm-gnu-toolchain-13.2.Rel1-mingw-w64-i686-arm-none-eabi #REVDIR = GNU Arm Embedded Toolchain/arm-gnu-toolchain-13.2.Rel1-mingw-w64-i686-arm-none-eabi
REVDIR = GNU Arm Embedded Toolchain/arm-gnu-toolchain-13.3.rel1-mingw-w64-i686-arm-none-eabi
endif endif
GCCDIR = $(INSTALLDIR)/$(REVDIR) GCCDIR = $(INSTALLDIR)/$(REVDIR)

View File

@ -11,7 +11,8 @@ Arm maintains a GCC cross-compiler available as binaries that run on Linux and
Windows.<br>It is available on their Windows.<br>It is available on their
<a href="https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm"> <a href="https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm">
arm developer site</a>. arm developer site</a>.
<p>
I want to develop for <b>AArch32 bare-metal target (arm-none-eabi)</b>.
<h2>Installation on Windows</h2> <h2>Installation on Windows</h2>
So far there are only win32 versions available for download either as So far there are only win32 versions available for download either as
<b>.exe</b> installers or <b>.zip</b> archives. File naming convention helps to <b>.exe</b> installers or <b>.zip</b> archives. File naming convention helps to
@ -37,6 +38,7 @@ CC = $(BINPFX)gcc
version: version:
$(CC) --version $(CC) --version
</pre> </pre>
<ul> <ul>
<li> <b>GCCDIR</b> holds the path to the folder where the toolchain is installed. <li> <b>GCCDIR</b> holds the path to the folder where the toolchain is installed.
@ -88,6 +90,7 @@ CC = $(BINPFX)gcc
version: version:
$(CC) --version $(CC) --version
</pre> </pre>
I use the path prefix <b>$(HOME)/Packages</b> instead of <b>~/Packages</b> when I use the path prefix <b>$(HOME)/Packages</b> instead of <b>~/Packages</b> when
@ -151,6 +154,7 @@ LD_SCRIPT = $(GCCDIR)/share/gcc-arm-none-eabi/samples/ldscripts/mem.ld
%.elf: %.o %.elf: %.o
$(LD) -T$(LD_SCRIPT) -o $@ $< $(LD) -T$(LD_SCRIPT) -o $@ $<
</pre> </pre>
<pre> <pre>
@ -191,6 +195,7 @@ LD_SCRIPT = $(GCCDIR)/share/gcc-arm-none-eabi/samples/ldscripts/mem.ld
%.hex: %.elf %.hex: %.elf
$(OBJCOPY) -O ihex $< $@ $(OBJCOPY) -O ihex $< $@
</pre> </pre>
Now, if I start in a directory that contains only this <b>Makefile</b> and an Now, if I start in a directory that contains only this <b>Makefile</b> and an
@ -263,6 +268,7 @@ clean:
%.hex: %.elf %.hex: %.elf
@echo $@ @echo $@
$(OBJCOPY) -O ihex $< $@ $(OBJCOPY) -O ihex $< $@
</pre> </pre>
<pre> <pre>

View File

@ -299,6 +299,7 @@ clean:
%.hex: %.elf %.hex: %.elf
@echo $@ @echo $@
$(OBJCOPY) -O ihex $< $@ $(OBJCOPY) -O ihex $< $@
</pre> </pre>
<hr>© 2020-2024 Renaud Fivet <hr>© 2020-2024 Renaud Fivet

View File

@ -6,7 +6,7 @@
<link type="text/css" rel="stylesheet" href="style.css"> <link type="text/css" rel="stylesheet" href="style.css">
</head> </head>
<body> <body>
<h1>STM32 Bringup</h1> <h1>STM32 Bring Up</h1>
<h2>Introduction</h2> <h2>Introduction</h2>
Getting started with a micro-controller usually means picking up a board, Getting started with a micro-controller usually means picking up a board,

View File

@ -9,7 +9,7 @@ body {
pre { pre {
background-color: #F3F6FA ; background-color: #F3F6FA ;
margin-left: 1% ; margin-left: 1% ;
margin-right: 25% ; margin-right: 24.5% ;
font-size: 120% ; font-size: 120% ;
overflow-x: auto ; overflow-x: auto ;
} }