Setting up debugging
This commit is contained in:
parent
2aa08f20a0
commit
ba338eebb5
5 changed files with 28 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,3 +3,4 @@ _[Bb][Uu][Ii][Ll][Dd]*/
|
|||
[Dd]ebug/
|
||||
[Rr]elease/
|
||||
*.[Bb][Aa][Kk]
|
||||
.vscode/.*
|
||||
|
|
20
.vscode/launch.json
vendored
Normal file
20
.vscode/launch.json
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Cortex Debug",
|
||||
"cwd": "${workspaceRoot}",
|
||||
"executable": "./build/f407zgt6_hs_uart.elf",
|
||||
"request": "launch",
|
||||
"type": "cortex-debug",
|
||||
"servertype": "jlink",
|
||||
"device": "STM32F407ZE",
|
||||
"interface": "swd",
|
||||
"ipAddress": null,
|
||||
"serialNumber": null
|
||||
}
|
||||
]
|
||||
}
|
4
.vscode/settings.json
vendored
Normal file
4
.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"cortex-debug.armToolchainPath": "/opt/shared/arm/gcc-arm-none-eabi-8-2018-q4-major/bin/",
|
||||
"cortex-debug.openocdPath": "/opt/shared/arm/gnu-mcu-eclipse/openocd/0.10.0-12-20190422-2015/bin/",
|
||||
}
|
|
@ -25,6 +25,7 @@
|
|||
#include "spi.h"
|
||||
#include "usart.h"
|
||||
#include "gpio.h"
|
||||
#include "application.h"
|
||||
|
||||
/* Private includes ----------------------------------------------------------*/
|
||||
/* USER CODE BEGIN Includes */
|
||||
|
@ -102,7 +103,7 @@ int main(void)
|
|||
MX_USART6_UART_Init();
|
||||
MX_CRC_Init();
|
||||
/* USER CODE BEGIN 2 */
|
||||
|
||||
MainLoop();
|
||||
/* USER CODE END 2 */
|
||||
|
||||
/* Infinite loop */
|
||||
|
|
|
@ -251,7 +251,7 @@ void DMA1_Stream2_IRQHandler(void)
|
|||
void DMA1_Stream3_IRQHandler(void)
|
||||
{
|
||||
/* USER CODE BEGIN DMA1_Stream3_IRQn 0 */
|
||||
HandleUsartTxDmaIrq(&g_uartStatuses[USART1_OFFSET]);
|
||||
HandleUsartTxDmaIrq(&g_uartStatuses[USART3_OFFSET]);
|
||||
/* USER CODE END DMA1_Stream3_IRQn 0 */
|
||||
|
||||
/* USER CODE BEGIN DMA1_Stream3_IRQn 1 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue