This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

RTX5 and stm32 - LED don't blink

Hello everyone!

I want to use RTX 5 RTOS for my project using STM32 and for now I wanted to just blink an on-board LED, but it just stays on. Everything builds etc, but during debugging using GDB/OpenOCD combo in Eclipse IDE system stays in idle thread, displays messages like "Error: Failed to read memory at 0x10020000", "Error: Failed to read memory at 0x10021004" and "Error: Failed to read memory at 0x10020ffe" during each step and does not go to app_main thread nor gpioB_Thread which I use to blink LED at all. Here's my main.c file and GNU LD linker script file

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*----------------------------------------------------------------------------
* Includes
*---------------------------------------------------------------------------*/
#include "cmsis_os2.h"
#include "RTE_Components.h"
/*----------------------------------------------------------------------------
* Thread initialization
*---------------------------------------------------------------------------*/
osThreadId_t gpioB;
/*-------------------------------------------------------------------------
* GPIO B thread
*---------------------------------------------------------------------------*/
GPIO_InitTypeDef GPIO_InitStructureB;
void gpioB_Thread(void *argument)
{
while (1)
{
/* Toggle LED on PB12 */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
*****************************************************************************
**
** File : LinkerScript.ld
**
** Abstract : Linker script for STM32F103C8Tx Device with
** 64KByte FLASH, 20KByte RAM
**
** Set heap size, stack size and stack location according
** to application requirements.
**
** Set memory bank area and size if external memory is used.
**
** Target : STMicroelectronics STM32
**
**
** Distribution: The file is distributed as is, without any warranty
** of any kind.
*****************************************************************************
** @attention
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

0