Commit 5c1117a6 authored by Wenxi Xu's avatar Wenxi Xu
Browse files

Updates about boards

parent d8c7ee9c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
board_runner_args(openocd)

board_runner_args(pyocd "--target=STM32H723VG")
board_runner_args(jlink "--device=STM32H723VG" "--speed=4000")
board_runner_args(jlink "--device=STM32H723VG" "--speed=12000")

# keep first
include(${ZEPHYR_BASE}/boards/common/stm32cubeprogrammer.board.cmake)
+27 −0
Original line number Diff line number Diff line
source [find interface/jlink.cfg]

transport select swd
adapter speed 4000

set CHIPNAME STM32H723VG

source [find target/stm32h7x.cfg]

reset_config srst_only

$_CHIPNAME.cpu0 configure -event gdb-attach {
        echo "Debugger attaching: halting execution"
        gdb_breakpoint_override hard
		reset halt
}

$_CHIPNAME.cpu0 configure -event gdb-detach {
        echo "Debugger detaching: resuming execution"
        resume
}

# rename init old_init
# proc init {} {
#         old_init
#         reset halt
# }
 No newline at end of file
+5 −1
Original line number Diff line number Diff line
@@ -14,3 +14,7 @@ CONFIG_GPIO=y

#CAN
CONFIG_CAN_DEFAULT_BITRATE=1000000


CONFIG_ISR_STACK_SIZE=3200
CONFIG_MAIN_STACK_SIZE=3200
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
board_runner_args(openocd)
board_runner_args(pyocd "--target=STM32F407IG")
board_runner_args(jlink "--device=STM32F407IG" "--speed=4000")
board_runner_args(jlink "--device=STM32F407IG" "--speed=16000")

# keep first
include(${ZEPHYR_BASE}/boards/common/stm32cubeprogrammer.board.cmake)
+21 −5
Original line number Diff line number Diff line
@@ -255,11 +255,27 @@ zephyr_udc0: &usbotg_fs {
	status = "okay";
	pinctrl-0=<&spi2_mosi_pb15
			&spi2_miso_pb14
			&spi2_sck_pb13
			&spi2_nss_pb12>;
			&spi2_sck_pb13>;
	pinctrl-names="default";
	dmas = <&dma1 3 0 STM32_DMA_PERIPH_RX STM32_DMA_FIFO_FULL>,
		   <&dma1 4 0 STM32_DMA_PERIPH_TX STM32_DMA_FIFO_FULL>;
	// dmas = <&dma1 3 0 STM32_DMA_PERIPH_RX STM32_DMA_FIFO_FULL>,
	// 	   <&dma1 4 0 STM32_DMA_PERIPH_TX STM32_DMA_FIFO_FULL>;
	//<&dmax stream channel flags>
	dma-names = "rx", "tx";
	// dma-names = "rx", "tx";
};

&flash0 {
	partitions {
		compatible = "fixed-partitions";
		#address-cells = <1>;
		#size-cells = <1>;

		/* Sector 10 base: 0x080C0000, size: 128KB */
		/* Sector 11 base: 0x080E0000, size: 128KB */
		/* 我们使用 Sector 10 和 Sector 11,总共 256KB */
		storage_partition: partition@c0000 {
			label = "storage";
			/* 从 Sector 10 开始 (0x080C0000),大小为 256KB (0x40000) */
			reg = <0x00C0000 0x00040000>;
		};
	};
};
 No newline at end of file
Loading