I cannot use SW pins as GPIO for some reason
I swear i was able to do this in the past but then ...... then i updated from 6.3.0 to cubeMX 6.6.1.
Maybe thats the reason, maybe not .
Im using a stm32f105RBT6
When i flash the chip and remove the stlink both PA13 and PA14 are stuck into some idle 1,3V floating state instead of toggle each second like PA10
I am not sure where should i look to be sure pin SW functions are not on.
Setting up pins as GPIOs in cubeMX
Code inside main, simple GPIO toggle
int main(void)
{
/* USER CODE BEGIN 1 */
/* USER CODE END 1 */
/* MCU Configuration--------------------------------------------------------*/
/* Reset of all peripherals, Initializes the Flash interface and the Systick. */
HAL_Init();
/* USER CODE BEGIN Init */
/* USER CODE END Init */
/* Configure the system clock */
SystemClock_Config();
/* USER CODE BEGIN SysInit */
/* USER CODE END SysInit */
/* Initialize all configured peripherals */
MX_GPIO_Init();
MX_DMA_Init();
MX_ADC1_Init();
MX_CAN1_Init();
MX_TIM1_Init();
MX_TIM2_Init();
MX_TIM3_Init();
MX_TIM4_Init();
MX_TIM7_Init();
/* USER CODE BEGIN 2 */
/* USER CODE END 2 */
/* Infinite loop */
/* USER CODE BEGIN WHILE */
while (1)
{
HAL_Delay(1000);
HAL_GPIO_TogglePin(uC_OUT_01_GPIO_Port, uC_OUT_01_Pin);
HAL_GPIO_TogglePin(uC_OUT_02_GPIO_Port, uC_OUT_02_Pin);
HAL_GPIO_TogglePin(uC_OUT_03_GPIO_Port, uC_OUT_03_Pin);//Only thisone works
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
}
/* USER CODE END 3 */
}I am flashing the release version wchih is not supposed to be using SW debugging pins at all..... i ran out of ideas