Skip to content
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

[WIP] H563 support #31

Draft
wants to merge 22 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
c4309ba
compiles, does not fit in flash
jaxxzer Oct 12, 2024
117e0ec
compiles, 64k for bootloader in ldscript_bl.ld
jaxxzer Oct 12, 2024
e78c473
wip, 192
jaxxzer Oct 13, 2024
708de1f
clock test is right, but prescaler is half of what it should be?
jaxxzer Oct 13, 2024
a5c3d4f
test string works (after enabling prefetch and icache)
jaxxzer Oct 13, 2024
8e20c4d
add mpu config, so icache does not block eeprom read
jaxxzer Oct 14, 2024
7b47300
test clock compiles
jaxxzer Oct 14, 2024
0b9fd28
signs point to 32mhz clock for tim2
jaxxzer Oct 14, 2024
eb780e8
clock now reflects 64MHz input after setting HSIDIV = 0 (HSI / 1)
jaxxzer Oct 14, 2024
c8c7116
framing seems better overall now
jaxxzer Oct 14, 2024
af06f83
holy cow it connects
jaxxzer Oct 14, 2024
7bd0911
maybe does something different between programmed and unprogrammed ee…
jaxxzer Oct 14, 2024
d8bd150
faulting at read_flash_bin
jaxxzer Oct 14, 2024
072f4d7
error follows number of bytes previously programmed (error hits in re…
jaxxzer Oct 14, 2024
73d0e96
idk what is wrong here
jaxxzer Oct 14, 2024
5433270
wip
jaxxzer Oct 14, 2024
b7938bb
EEPROM_START_ADD = 0, works, 2, does not work, 4, works
jaxxzer Oct 14, 2024
6e6c043
not working
jaxxzer Oct 14, 2024
ae6567d
there appears to be parity between this and AM32/Src/tests/test-eeprom.c
jaxxzer Oct 14, 2024
4dbceab
8 bit eeprom
jaxxzer Oct 15, 2024
ff2e625
were connected!
jaxxzer Oct 15, 2024
a062e73
connecting and saving settings by configurator is working
jaxxzer Oct 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
19 changes: 12 additions & 7 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,34 @@
"liveWatch": {
"enabled": true,
"samplesPerSecond": 4,
},
"svdFile": "obj/debug.svd",
},


"svdFile": "obj/debug.svd",
"request": "launch",
"type": "cortex-debug",
"servertype": "openocd",
"configFiles": [
"${workspaceFolder}/obj/openocd.cfg",
"configFiles": [
// "${workspaceFolder}/obj/openocd.cfg",
"board/st_nucleo_h5.cfg"

],
"showDevDebugOutput": "none",
"osx": {
"serverpath": "${workspaceFolder}/tools/macos/openocd/bin/openocd",
// "serverpath": "${workspaceFolder}/tools/macos/openocd/bin/openocd",
"armToolchainPath": "${workspaceFolder}/tools/macos/xpack-arm-none-eabi-gcc-10.3.1-2.3/bin"
},
"linux": {
"serverpath": "${workspaceFolder}/tools/linux/openocd/bin/openocd",
// "serverpath": "${workspaceFolder}/tools/linux/openocd/bin/openocd",
"armToolchainPath": "${workspaceFolder}/tools/linux/xpack-arm-none-eabi-gcc-10.3.1-2.3/bin"
},
"windows": {
"serverpath": "${workspaceFolder}\\tools\\windows\\openocd\\bin\\openocd",
// "serverpath": "${workspaceFolder}\\tools\\windows\\openocd\\bin\\openocd",
"armToolchainPath": "${workspaceFolder}\\tools\\windows\\xpack-arm-none-eabi-gcc-10.3.1-2.3\\bin"
}
},


// JLink configuration
{
"type": "cortex-debug",
Expand Down
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ ROOT := $(patsubst %/,%,$(dir $(lastword $(MAKEFILE_LIST))))
include $(ROOT)/make/tools.mk

# MCU builds, if with _xxK then adds build with given flash size
MCU_BUILDS := E230 F031 F051 F415 F415_128K F421 G071 G071_64K L431 L431_128K G431 V203
MCU_BUILDS := E230 F031 F051 F415 F415_128K F421 G071 G071_64K H563 L431 L431_128K G431 V203

# we support bootloader comms on a list of possible pins
BOOTLOADER_PINS = PB4 PA2 PA6 PA15 PA0
BOOTLOADER_PINS = PB4 PA2 PA6 PA15 PA0 PA5

# filter out any unsupported MCUs for this host OS
filter_mcus = $(foreach w,$(MCU_NOBUILD),$(eval MCU_BUILDS := $(filter-out $w,$(MCU_BUILDS))))$(MCU_BUILDS)
Expand All @@ -46,8 +46,10 @@ $(call INCLUDE_MCU_MAKEFILES)
LIBS := -lnosys

# Compiler options
CFLAGS_BASE := -fsingle-precision-constant -fomit-frame-pointer -ffast-math --specs=nosys.specs
CFLAGS_BASE += -I$(MAIN_INC_DIR) -g3 -Os -ffunction-sections -funsigned-char
# CFLAGS_BASE := -fsingle-precision-constant -fomit-frame-pointer -ffast-math --specs=nosys.specs
# CFLAGS_BASE += -I$(MAIN_INC_DIR) -g3 -Os -ffunction-sections -funsigned-char
CFLAGS_BASE := -fsingle-precision-constant --specs=nosys.specs
CFLAGS_BASE += -I$(MAIN_INC_DIR) -g3 -ffunction-sections -funsigned-char
CFLAGS_BASE += -Wall -Wextra -Wundef -Werror -Wno-unused-parameter

CFLAGS_COMMON := $(CFLAGS_BASE)
Expand Down
3,271 changes: 3,271 additions & 0 deletions Mcu/h563/Drivers/CMSIS/ARM.CMSIS.pdsc

Large diffs are not rendered by default.

Loading