Skip to content

stm32: add support for the STM32L031G6U6 #4913

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/machine/board_stm32l0x1.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//go:build stm32l0x1

package machine

const (
I2C0_SCL_PIN = NoPin

Check failure on line 6 in src/machine/board_stm32l0x1.go

View workflow job for this annotation

GitHub Actions / build-macos (macos-14)

I2C0_SCL_PIN redeclared in this block

Check failure on line 6 in src/machine/board_stm32l0x1.go

View workflow job for this annotation

GitHub Actions / assert-test-linux

I2C0_SCL_PIN redeclared in this block
I2C0_SDA_PIN = NoPin

Check failure on line 7 in src/machine/board_stm32l0x1.go

View workflow job for this annotation

GitHub Actions / build-macos (macos-14)

I2C0_SDA_PIN redeclared in this block

Check failure on line 7 in src/machine/board_stm32l0x1.go

View workflow job for this annotation

GitHub Actions / assert-test-linux

I2C0_SDA_PIN redeclared in this block

UART_TX_PIN = NoPin

Check failure on line 9 in src/machine/board_stm32l0x1.go

View workflow job for this annotation

GitHub Actions / build-macos (macos-14)

UART_TX_PIN redeclared in this block

Check failure on line 9 in src/machine/board_stm32l0x1.go

View workflow job for this annotation

GitHub Actions / assert-test-linux

UART_TX_PIN redeclared in this block
UART_RX_PIN = NoPin

SPI0_SDI_PIN = NoPin
SPI0_SDO_PIN = NoPin
SPI0_SCK_PIN = NoPin
)
10 changes: 10 additions & 0 deletions targets/stm32l031x6.ld
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

MEMORY
{
FLASH_TEXT (rx) : ORIGIN = 0x08000000, LENGTH = 32K
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 8K
}

_stack_size = 2K;

INCLUDE "targets/arm.ld"
18 changes: 18 additions & 0 deletions targets/stm32l0x1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"inherits": [
"cortex-m0plus"
],
"build-tags": [
"stm32l031",
"stm32l0x1",
"stm32l0",
"stm32"
],
"linkerscript": "targets/stm32l031x6.ld",
"extra-files": [
"src/device/stm32/stm32l0x1.s"
],
"flash-method": "openocd",
"openocd-interface": "cmsis-dap",
"openocd-target": "stm32l0"
}
Loading