Youngbin Kim 2 жил өмнө
parent
commit
9e0c91fe5f

+ 2 - 1
.gitignore

@@ -4,4 +4,5 @@
 .mxproject
 .vscode
 /Debug/
-imc_freertos_app_m33.launch
+imc_freertos_app_m33.launch
+build/

+ 2 - 1
CMakeLists.txt

@@ -64,7 +64,8 @@ set(SRC_FILES
     Core/Src/sc03mpd/sc03mpd.c
     Core/Src/ImC/decoder.c
     Core/Src/ImC/imc_api.c
-    Core/Src/ImC/uartBufferIT.c
+    Core/Src/ImC/imc_kernel.c
+    # Core/Src/ImC/uartBufferIT.c
     Core/Src/app_freertos.c
     Core/Src/main.c
     Core/Src/stm32l5xx_hal_msp.c

+ 7 - 0
STM32L552ZETX_FLASH.ld

@@ -46,6 +46,7 @@ MEMORY
 {
   RAM	(xrw)	: ORIGIN = 0x20000000,	LENGTH = 256K
   FLASH	(rx)	: ORIGIN = 0x8000000,	LENGTH = 512K
+  NVM (xrw)        : ORIGIN = 0x68000000, LENGTH = 1024K
 }
 
 /* Sections */
@@ -173,6 +174,12 @@ SECTIONS
     . = ALIGN(8);
   } >RAM
 
+  /* imc */
+  .kernel_nvm (NOLOAD) :
+  {
+    . = ALIGN(8);
+  } >NVM
+
   /* Remove information from the compiler libraries */
   /DISCARD/ :
   {

+ 4 - 0
imc/utils/program_binary.sh

@@ -0,0 +1,4 @@
+PROJECT_ROOT_DIR="/home/ybkim/workspace/imc/imc_freertos_app_m33"
+BIN_DIR="${PROJECT_ROOT_DIR}/imc_freeRTOS"
+OPENOCD_SCRIPT_DIR="${PROJECT_ROOT_DIR}/imc_freertos_app_m33.cfg"
+/home/ybkim/opt/xpack-openocd-0.11.0-4/bin/openocd -f ${OPENOCD_SCRIPT_DIR} -c "program ${BIN_DIR}" -c reset -c resume -c exit