Skip to content

Commit bc9cadd

Browse files
n-ito2222andyp1per
authored andcommitted
hwdef: modify RAM map to scripts of STM32H755xx for Ethernet
1 parent 8e9a9e0 commit bc9cadd

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

libraries/AP_HAL_ChibiOS/hwdef/scripts/STM32H755xx.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,27 +30,28 @@
3030
# flags of 1 means DMA-capable (DMA and BDMA)
3131
# flags of 2 means faster memory for CPU intensive work
3232
# flags of 4 means memory can be used for SDMMC DMA
33+
# flags of 8 means memory can be used for ethernet DMA
3334
'RAM_MAP' : [
34-
(0x30000000, 256, 0), # SRAM1, SRAM2
35+
(0x30000000, 256, 8), # SRAM1, SRAM2
3536
(0x20000000, 128, 2), # DTCM, tightly coupled, no DMA, fast
3637
(0x24000000, 512, 4), # AXI SRAM. Use this for SDMMC IDMA ops
3738
(0x00000400, 63, 2), # ITCM (first 1k removed, to keep address 0 unused)
38-
(0x30040000, 32, 0), # SRAM3.
39+
(0x30040000, 32, 8), # SRAM3.
3940
(0x38000000, 64, 1), # SRAM4.
4041
],
4142
'INSTRUCTION_RAM' : (0x00000400, 63), # ITCM (first 1k removed, to keep address 0 unused)
42-
'FLASH_RAM' : (0x24020000, 384), # AXI SRAM used for process stack and ram functions
43+
'FLASH_RAM' : (0x24020000, 384), # AXI SRAM used for process stack and ram functions
4344
'DATA_RAM' : (0x20010000, 64), # DTCM, tightly coupled, no DMA, fast
4445

45-
# avoid a problem in the bootloader by making DTCM first. The DCache init
46+
# avoid a problem in the bootloader by making DTCM first. The DCache init
4647
# when using SRAM1 as primary memory gets a hard fault in bootloader
4748
# we can't use DTCM first for main firmware as some builds overflow the first segment
4849
'RAM_MAP_BOOTLOADER' : [
4950
(0x20000000, 128, 2), # DTCM, tightly coupled, no DMA, fast
50-
(0x30000000, 256, 0), # SRAM1, SRAM2
51+
(0x30000000, 256, 8), # SRAM1, SRAM2
5152
(0x24000000, 512, 4), # AXI SRAM. Use this for SDMMC IDMA ops
5253
(0x00000400, 63, 2), # ITCM (first 1k removed, to keep address 0 unused)
53-
(0x30040000, 32, 0), # SRAM3.
54+
(0x30040000, 32, 8), # SRAM3.
5455
(0x38000000, 64, 1), # SRAM4.
5556
],
5657

0 commit comments

Comments
 (0)