Skip to content
Merged
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
5 changes: 4 additions & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
{
"label": "Pre-flash check",
"type": "shell",
"command": "${workspaceFolder}/virtual/Scripts/python",
"command": "${workspaceFolder}/virtual/bin/python",
"windows": {
"command": "${workspaceFolder}/virtual/Scripts/python"
},
"args": [
"${workspaceFolder}/tools/preflash_check.py"
],
Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ project(template-project LANGUAGES ASM C CXX)

set(EXECUTABLE ${PROJECT_NAME}.elf)
set(STLIB_DIR ${CMAKE_CURRENT_LIST_DIR}/deps/ST-LIB)
set(LD_SCRIPT ${CMAKE_SOURCE_DIR}/STM32H723ZGTX_FLASH.ld)
set(LD_SCRIPT ${STLIB_DIR}/STM32H723ZGTX_FLASH.ld)
if(CMAKE_HOST_WIN32 )
set(VENV_PYTHON ${CMAKE_SOURCE_DIR}/virtual/Scripts/python)
else()
Expand All @@ -31,7 +31,7 @@ add_executable(${EXECUTABLE}
${SOURCE_H}
${SOURCE_HPP}

$<$<BOOL:${CMAKE_CROSSCOMPILING}>:${CMAKE_SOURCE_DIR}/Core/Startup/startup_stm32h723zgtx.s>
$<$<BOOL:${CMAKE_CROSSCOMPILING}>:${STLIB_DIR}/startup_stm32h723zgtx.s>
)

target_link_libraries(${EXECUTABLE} PRIVATE
Expand Down
377 changes: 377 additions & 0 deletions Core/Src/Examples/ExampleMPU.cpp

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions Core/Src/Runes/Runes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,6 @@ SPI_HandleTypeDef hspi3;
FDCAN_HandleTypeDef hfdcan1;
FMAC_HandleTypeDef hfmac;

/************************************************
* MPU
***********************************************/

MPUManager::config MPUManager::MPUConfig = {};

/************************************************
* Communication-FDCAN
***********************************************/
Expand Down
10 changes: 10 additions & 0 deletions Core/Src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
#define EXAMPLE_BASE
#define TEST_0 // Test to be run

// Include all examples, run the one defined above
#include "Examples/ExampleMPU.cpp"

#ifdef EXAMPLE_BASE

#include "main.h"
#include "ST-LIB.hpp"

Expand All @@ -22,3 +30,5 @@ void Error_Handler(void) {
while (1) {
}
}

#endif
756 changes: 0 additions & 756 deletions Core/Startup/startup_stm32h723zgtx.s

This file was deleted.

209 changes: 0 additions & 209 deletions STM32H723ZGTX_FLASH.ld

This file was deleted.

Loading