Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6889728

Browse files
GerogeFufpistm
andcommitted
Support FYSETC S6 3D printer board
Co-Authored-By: Frederic Pillon <frederic.pillon@st.com>
1 parentdf6b4f7 commit6889728

File tree

7 files changed

+1060
-0
lines changed

7 files changed

+1060
-0
lines changed

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ User can add a STM32 based board following this [wiki](https://github.com/stm32d
170170
|:green_heart:|[RUMBA32](https://github.com/Aus3D/RUMBA32)|*1.5.0*||
171171
|:green_heart:|[STEVAL-3DP001V1](https://www.st.com/en/evaluation-tools/steval-3dp001v1.html)|*1.6.0*||
172172
|:green_heart:|[VAkE v1.0](https://www.facebook.com/pages/category/Product-Service/VAkE-Board-2290066274575218/)|*1.6.0*||
173+
|:yellow_heart:|[FYSETC_S6](https://wiki.fysetc.com/FYSETC_S6/)|**1.9.0**||
173174

174175
| Status| LoRa boards| Release| Comment|
175176
| :---:| ---| :---:| :---|

‎boards.txt‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1712,6 +1712,20 @@ LoRa.menu.upload_method.dfuMethod.upload.tool=stm32CubeProg
17121712
3dprinter.menu.pnum.VAKE_F446VE.build.variant=VAKE_F446VE
17131713
3dprinter.menu.pnum.VAKE_F446VE.build.cmsis_lib_gcc=arm_cortexM4lf_math
17141714

1715+
# FYSETC_S6 board
1716+
3dprinter.menu.pnum.FYSETC_S6=FYSETC_S6
1717+
3dprinter.menu.pnum.FYSETC_S6.upload.maximum_size=458752
1718+
3dprinter.menu.pnum.FYSETC_S6.upload.maximum_data_size=131072
1719+
3dprinter.menu.pnum.FYSETC_S6.build.mcu=cortex-m4
1720+
3dprinter.menu.pnum.FYSETC_S6.build.flags.fp=-mfpu=fpv4-sp-d16 -mfloat-abi=hard
1721+
3dprinter.menu.pnum.FYSETC_S6.build.board=FYSETC_S6
1722+
3dprinter.menu.pnum.FYSETC_S6.build.series=STM32F4xx
1723+
3dprinter.menu.pnum.FYSETC_S6.build.product_line=STM32F446xx
1724+
3dprinter.menu.pnum.FYSETC_S6.build.variant=FYSETC_S6
1725+
3dprinter.menu.pnum.FYSETC_S6.build.cmsis_lib_gcc=arm_cortexM4lf_math
1726+
3dprinter.menu.pnum.MALYANM300_F070CB.build.flash_offset=0x10000
1727+
3dprinter.menu.pnum.MALYANM200_F070CB.build.extra_flags=-D{build.product_line} {build.enable_usb} {build.xSerial} -DVECT_TAB_OFFSET={build.flash_offset}
1728+
17151729
# Upload menu
17161730
3dprinter.menu.upload_method.swdMethod=STM32CubeProgrammer (SWD)
17171731
3dprinter.menu.upload_method.swdMethod.upload.protocol=0

‎variants/FYSETC_S6/PeripheralPins.c‎

Lines changed: 424 additions & 0 deletions
Large diffs are not rendered by default.

‎variants/FYSETC_S6/PinNamesVar.h‎

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/* SYS_WKUP */
2+
#ifdefPWR_WAKEUP_PIN1
3+
SYS_WKUP1=PA_0,/* SYS_WKUP0 */
4+
#endif
5+
#ifdefPWR_WAKEUP_PIN2
6+
SYS_WKUP2=PC_13,/* SYS_WKUP1 */
7+
#endif
8+
#ifdefPWR_WAKEUP_PIN3
9+
SYS_WKUP3=NC,
10+
#endif
11+
#ifdefPWR_WAKEUP_PIN4
12+
SYS_WKUP4=NC,
13+
#endif
14+
#ifdefPWR_WAKEUP_PIN5
15+
SYS_WKUP5=NC,
16+
#endif
17+
#ifdefPWR_WAKEUP_PIN6
18+
SYS_WKUP6=NC,
19+
#endif
20+
#ifdefPWR_WAKEUP_PIN7
21+
SYS_WKUP7=NC,
22+
#endif
23+
#ifdefPWR_WAKEUP_PIN8
24+
SYS_WKUP8=NC,
25+
#endif
26+
/* USB */
27+
#ifdefUSBCON
28+
USB_OTG_FS_SOF=PA_8,
29+
USB_OTG_FS_VBUS=PA_9,
30+
USB_OTG_FS_ID=PA_10,
31+
USB_OTG_FS_DM=PA_11,
32+
USB_OTG_FS_DP=PA_12,
33+
USB_OTG_HS_ULPI_D0=PA_3,
34+
USB_OTG_HS_SOF=PA_4,
35+
USB_OTG_HS_ULPI_CK=PA_5,
36+
USB_OTG_HS_ULPI_D1=PB_0,
37+
USB_OTG_HS_ULPI_D2=PB_1,
38+
USB_OTG_HS_ULPI_D4=PB_2,
39+
USB_OTG_HS_ULPI_D7=PB_5,
40+
USB_OTG_HS_ULPI_D3=PB_10,
41+
USB_OTG_HS_ID=PB_12,
42+
USB_OTG_HS_ULPI_D5=PB_12,
43+
USB_OTG_HS_ULPI_D6=PB_13,
44+
USB_OTG_HS_VBUS=PB_13,
45+
USB_OTG_HS_DM=PB_14,
46+
USB_OTG_HS_DP=PB_15,
47+
USB_OTG_HS_ULPI_STP=PC_0,
48+
USB_OTG_HS_ULPI_DIR=PC_2,
49+
USB_OTG_HS_ULPI_NXT=PC_3,
50+
#endif

‎variants/FYSETC_S6/ldscript.ld‎

Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
1+
/*
2+
*****************************************************************************
3+
**
4+
5+
** File : LinkerScript.ld
6+
**
7+
** Abstract : Linker script for STM32F446VETx Device with
8+
** 512KByte FLASH, 128KByte RAM
9+
**
10+
** Set heap size, stack size and stack location according
11+
** to application requirements.
12+
**
13+
** Set memory bank area and size if external memory is used.
14+
**
15+
** Target : STMicroelectronics STM32
16+
**
17+
**
18+
** Distribution: The file is distributed as is, without any warranty
19+
** of any kind.
20+
**
21+
*****************************************************************************
22+
** @attention
23+
**
24+
** <h2><center>&copy; COPYRIGHT(c) 2014 Ac6</center></h2>
25+
**
26+
** Redistribution and use in source and binary forms, with or without modification,
27+
** are permitted provided that the following conditions are met:
28+
** 1. Redistributions of source code must retain the above copyright notice,
29+
** this list of conditions and the following disclaimer.
30+
** 2. Redistributions in binary form must reproduce the above copyright notice,
31+
** this list of conditions and the following disclaimer in the documentation
32+
** and/or other materials provided with the distribution.
33+
** 3. Neither the name of Ac6 nor the names of its contributors
34+
** may be used to endorse or promote products derived from this software
35+
** without specific prior written permission.
36+
**
37+
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
38+
** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
39+
** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
40+
** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
41+
** FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
42+
** DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
43+
** SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
44+
** CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
45+
** OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
46+
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
47+
**
48+
*****************************************************************************
49+
*/
50+
51+
/* Entry Point*/
52+
ENTRY(Reset_Handler)
53+
54+
/* Highest address of the user mode stack*/
55+
_estack = 0x20020000;/* end of RAM*/
56+
/* Generate a link error if heap and stack don't fit into RAM*/
57+
_Min_Heap_Size =0x200;;/* required amount of heap*/
58+
_Min_Stack_Size =0x400;;/* required amount of stack*/
59+
60+
/* Specify the memory areas*/
61+
MEMORY
62+
{
63+
FLASH (rx) :ORIGIN =0x8010000,LENGTH = 448K
64+
RAM (xrw) :ORIGIN =0x20000000,LENGTH = 128K
65+
}
66+
67+
/* Define output sections*/
68+
SECTIONS
69+
{
70+
/* The startup code goes first into FLASH*/
71+
.isr_vector :
72+
{
73+
. =ALIGN(4);
74+
KEEP(*(.isr_vector))/* Startup code*/
75+
. =ALIGN(4);
76+
} >FLASH
77+
78+
/* The program code and other data goes into FLASH*/
79+
.textALIGN(4):
80+
{
81+
. =ALIGN(4);
82+
*(.text)/* .text sections (code)*/
83+
*(.text*)/* .text* sections (code)*/
84+
*(.glue_7)/* glue arm to thumb code*/
85+
*(.glue_7t)/* glue thumb to arm code*/
86+
*(.eh_frame)
87+
88+
KEEP (*(.init))
89+
KEEP (*(.fini))
90+
91+
. =ALIGN(4);
92+
_etext = .;/* define a global symbols at end of code*/
93+
} >FLASH
94+
95+
/* Constant data goes into FLASH*/
96+
.rodataALIGN(4):
97+
{
98+
. =ALIGN(4);
99+
*(.rodata)/* .rodata sections (constants, strings, etc.)*/
100+
*(.rodata*)/* .rodata* sections (constants, strings, etc.)*/
101+
. =ALIGN(4);
102+
} >FLASH
103+
104+
.ARM.extab : { *(.ARM.extab* .gnu.linkonce.armextab.*) } >FLASH
105+
.ARM : {
106+
__exidx_start = .;
107+
*(.ARM.exidx*)
108+
__exidx_end = .;
109+
} >FLASH
110+
111+
.preinit_array :
112+
{
113+
PROVIDE_HIDDEN (__preinit_array_start = .);
114+
KEEP (*(.preinit_array*))
115+
PROVIDE_HIDDEN (__preinit_array_end = .);
116+
} >FLASH
117+
.init_array :
118+
{
119+
PROVIDE_HIDDEN (__init_array_start = .);
120+
KEEP (*(SORT(.init_array.*)))
121+
KEEP (*(.init_array*))
122+
PROVIDE_HIDDEN (__init_array_end = .);
123+
} >FLASH
124+
.fini_array :
125+
{
126+
PROVIDE_HIDDEN (__fini_array_start = .);
127+
KEEP (*(SORT(.fini_array.*)))
128+
KEEP (*(.fini_array*))
129+
PROVIDE_HIDDEN (__fini_array_end = .);
130+
} >FLASH
131+
132+
/* used by the startup to initialize data*/
133+
_sidata =LOADADDR(.data);
134+
135+
/* Initialized data sections goes into RAM, load LMA copy after code*/
136+
.data :
137+
{
138+
. =ALIGN(4);
139+
_sdata = .;/* create a global symbol at data start*/
140+
*(.data)/* .data sections*/
141+
*(.data*)/* .data* sections*/
142+
143+
. =ALIGN(4);
144+
_edata = .;/* define a global symbol at data end*/
145+
} >RAM AT> FLASH
146+
147+
/*_siccmram = LOADADDR(.ccmram);*/
148+
149+
/* Uninitialized data section*/
150+
. =ALIGN(4);
151+
.bss :
152+
{
153+
/* This is used by the startup in order to initialize the .bss secion*/
154+
_sbss = .;/* define a global symbol at bss start*/
155+
__bss_start__ = _sbss;
156+
*(.bss)
157+
*(.bss*)
158+
*(COMMON)
159+
160+
. =ALIGN(4);
161+
_ebss = .;/* define a global symbol at bss end*/
162+
__bss_end__ = _ebss;
163+
} >RAM
164+
165+
/* User_heap_stack section, used to check that there is enough RAM left*/
166+
._user_heap_stack :
167+
{
168+
. =ALIGN(4);
169+
PROVIDE ( end = . );
170+
PROVIDE ( _end = . );
171+
. = . + _Min_Heap_Size;
172+
. = . + _Min_Stack_Size;
173+
. =ALIGN(4);
174+
} >RAM
175+
176+
/* Remove information from the standard libraries*/
177+
/DISCARD/ :
178+
{
179+
libc.a ( * )
180+
libm.a ( * )
181+
libgcc.a ( * )
182+
}
183+
184+
.ARM.attributes 0 : { *(.ARM.attributes) }
185+
}
186+

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp