Forum Replies Created
-
AuthorPosts
-
Brian WalkerParticipant
I enabled the clock and added the following file:
../../bsp/nRF5x/external/freertos/source/timers.c
That leaves me with:
Severity Code Description Project File Line Suppression State
Error MSB3073 The command “”C:\Program Files (x86)\Sysprogs\VisualGDB\\VisualGDB.exe” /rebuild “C:\Projects\nordic\visualgdb\blink_freertos\blink_freertos\blink_freertos.vcxproj” “/solution:C:\Projects\nordic\visualgdb\blink_freertos\blink_freertos.sln” “/config:Debug” “/platform:Win32″” exited with code 1. blink_freertos C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets 42
Error VGDB1002 undefined reference to ‘__isr_vector’ blink_freertos C:\Projects\nordic\visualgdb\blink_freertos\blink_freertos\port.c 1
Error ld returned 1 exit status blink_freertos C:\Projects\nordic\visualgdb\blink_freertos\blink_freertos\collect2.exe 1
Error Command-line action failed blink_freertos C:\Projects\nordic\visualgdb\blink_freertos\blink_freertos\VisualGDB 1Brian WalkerParticipantI may have made some “progress” since the original post, so here is what I’ve done.
I started an nRF52 blinky (BSP) demo.
(I’ve installed my shared files at the same root directory as my project, so that why the pathing may appear odd.)
Per the standard FreeRTOS setup, I added the following include directories:
../../bsp/nRF5x/external/freertos/source/include
../../bsp/nRF5x/external/freertos/portable/GCC/nrf52
Per the standard FreeRTOS setup, I added the following files to my project from the bsp install:
../../bsp/nRF5x/external/freertos/source/list.c
../../bsp/nRF5x/external/freertos/source/queue.c
../../bsp/nRF5x/external/freertos/source/tasks.c
../../bsp/nRF5x/external/freertos/source/portable/MemMang/heap_1.c
../../bsp/nRF5x/external/freertos/portable/GCC/nrf52/port.c
I also copied FreeRTOSConfig.h to my project and added it as a header file. I modified the file to match the config from blinky_freertos in the SDK.
I added the following includes to my LEDBlink.c and then built. (No actual FreeRTOS tasks.)
#include “FreeRTOS.h”
#include “task.h”This produced multiple build errors for portmacro_cmsis.h so I added the following include directory to the makefile.
../../bsp/nRF5x/external/freertos/portable/CMSIS/nrf52
This built cleanly.
I then created a task and added a call to vTaskStartScheduler().
This build failed.
I added the following sources to resolve missing file errors.
../../bsp/nRF5x/external/freertos/portable/CMSIS/nrf52/port_cmsis.c
../../bsp/nRF5x/external/freertos/portable/CMSIS/nrf52/port_cmsis_systick.c
This build failed with the following errors:
Severity Code Description Project File Line Suppression State
Error VGDB1000 undefined reference to ‘nrf_drv_clock_lfclk_request’ blink_freertos C:\Projects\nordic\visualgdb\bsp\nRF5x\external\freertos\portable\CMSIS\nrf52\port_cmsis_systick.c 200
Error VGDB1002 undefined reference to ‘__isr_vector’ blink_freertos C:\Projects\nordic\visualgdb\blink_freertos\blink_freertos\port.c 1
Error VGDB1000 undefined reference to ‘xTimerCreateTimerTask’ blink_freertos C:\Projects\nordic\visualgdb\bsp\nRF5x\external\freertos\source\tasks.c 1565
Error ld returned 1 exit status blink_freertos C:\Projects\nordic\visualgdb\blink_freertos\blink_freertos\collect2.exe 1
Error Command-line action failed blink_freertos C:\Projects\nordic\visualgdb\blink_freertos\blink_freertos\VisualGDB 1
Error MSB3073 The command “”C:\Program Files (x86)\Sysprogs\VisualGDB\\VisualGDB.exe” /rebuild “C:\Projects\nordic\visualgdb\blink_freertos\blink_freertos\blink_freertos.vcxproj” “/solution:C:\Projects\nordic\visualgdb\blink_freertos\blink_freertos.sln” “/config:Debug” “/platform:Win32″” exited with code 1. blink_freertos C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets 42Clearly these are all linker errors, and that’s where I’m at.
- This reply was modified 8 years, 5 months ago by Brian Walker.
- This reply was modified 8 years, 5 months ago by Brian Walker.
-
AuthorPosts