Skip to content

Commit 4b620a5

Browse files
committed
DMA Buffers allocated in wrong section.
What's Wrong: * Used dma_buffer instead of dma_buffers. How Was it Fixed (if not obvious): * Fixed strings. What side effects does this have (could be none): * DMA memory will move from some random SRAM address to the range declared in the scripts Which builds did you run to make sure they build? [X] arm-none-eabi-gcc Cortex M4 [ ] arm-none-eabi-gcc Cortex M7 [ ] (Apple) Native Clang [ ] (Apple) Homebrew GCC [ ] (Apple) Homebrew LLVM How Do We Know and Can Show It's Fixed: * Looked at map file to see that it's moved the DMA buffers to the right spot now. Which Unittest Series did you Check? [ ] (Apple) Native Clang [ ] (Apple) Homebrew GCC [ ] (Apple) Homebrew LLVM Did this affect any on-target builds? If so which were tested? [X] STM32F407VE board (boots) [ ] STM32H753ZI board
1 parent e5c0612 commit 4b620a5

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

boards/netduinoplus2/source/BoardContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
namespace stm32 {
99

1010
/// @brief Dedicate a chunk of memory for the DMA buffers
11-
LINKER_SECTION(".dma_buffer") alignas(alignof(std::max_align_t)) static core::Array<uint8_t, DmaBlockSize * DmaBlockCount> dma_memory;
11+
LINKER_SECTION(".dma_buffers") alignas(alignof(std::max_align_t)) static core::Array<uint8_t, DmaBlockSize * DmaBlockCount> dma_memory;
1212
/// @brief Manage the DMA buffers with a bitmap allocator
1313
static core::BitMapHeap<DmaBlockSize, DmaBlockCount> dma_heap_allocator{&dma_memory[0], dma_memory.size()};
1414

boards/stm32_f4ve_v2/source/BoardContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace stm32 {
1313

1414
/// @brief Dedicate a chunk of memory for the DMA buffers
15-
LINKER_SECTION(".dma_buffer") alignas(alignof(std::max_align_t)) static core::Array<uint8_t, DmaBlockSize * DmaBlockCount> dma_memory;
15+
LINKER_SECTION(".dma_buffers") alignas(alignof(std::max_align_t)) static core::Array<uint8_t, DmaBlockSize * DmaBlockCount> dma_memory;
1616
/// @brief Manage the DMA buffers with a bitmap allocator
1717
static core::BitMapHeap<DmaBlockSize, DmaBlockCount> dma_heap_allocator{&dma_memory[0], dma_memory.size()};
1818

build-support/share/cmake/embedded-superloop/firmware.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ function(add_firmware)
155155
add_custom_command(
156156
OUTPUT ${ARG_DISASM}
157157
DEPENDS ${ARG_ELF}
158-
COMMAND ${CMAKE_OBJDUMP} -d ${ARG_ELF} -marm -C -z > ${ARG_DISASM}
158+
COMMAND ${CMAKE_OBJDUMP} -D ${ARG_ELF} -s -marm -C -z > ${ARG_DISASM}
159159
COMMENT "Creating Disassembly of ${ARG_ELF}"
160160
)
161161

0 commit comments

Comments
 (0)