cancel
Showing results for 
Search instead for 
Did you mean: 

hello, I am using stm while controlling a device and after working conditions for a while, I saw that the software made itself like this. I have not encountered it on other devices. When I put the software on the processor again,it gets fixed,what reason?

MşAt.1
Associate

0693W00000Lz1QVQAZ.pngThat is part of broken software

D8 0A 00 20 CD 02 00 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 E7 02 00 08 E7 02 00 08 E7 02 00 08 E7 02 00 08 E7 02 00 08 E7 02 00 08 E7 02 00 08 E7 02 00 08 E7 02 00 08 E7 02 00 08 E7 02 00 08 00 00 00 00 E7 02 00 08 E7 02 00 08 E7 02 00 08 E7 02 00 08 E7 02 00 08 1D 18 00 08 E7 02 00 08 E7 02 00 08 E7 02 00 08 E7 02 00 08 E7 02 00 08 

it is part of normal software

D8 0A 00 20 CD 02 00 08 45 4A 00 08 43 45 00 08 41 4A 00 08 95 0C 00 08 ED 7A 00 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 11 51 00 08 D9 0E 00 08 00 00 00 00 E1 4C 00 08 29 6B 00 08 E7 02 00 08 E7 02 00 08 E7 02 00 08 E7 02 00 08 E7 02 00 08 E7 02 00 08 E7 02 00 08 E7 02 00 08 E7 02 00 08 E7 02 00 08 E7 02 00 08 E7 02 00 08 E7 02 00 08 E7 02 00 08 E7 02 00 08 E7 02 00 08 E7 02 00 08 00 00 00 00 E7 02 00 08 E7 02 00 08 E7 02 00 08 E7 02 

my software starts like that

#include "main.h"

// revizyon takibi

// 2022.04.22 19:58

// 

u16 PWM = 300;

__IO u8 PID_OK = 0;

u8 Alarmsayac = 0;

void SystemClock_Config(void);

int main(void)

{

 HAL_Init();

 SystemClock_Config();

//2022.04.22 emrah

ReadFlash(FLASH_USER_START_ADDR);

if(UserFlash.Flash[0] != 0xFFFFFFFF)

{

EEPROM_Oku();

}

ReadFlash(FLASH_USER_START_ADDR2);

if(UserFlash.Flash[0] != 0xFFFFFFFF)

{

EEPROM_Oku2();

}

 MX_GPIO_Init();

 MX_ADC2_Init();

 MX_RTC_Init();

 MX_TIM2_Init();

 MX_USART2_UART_Init();

__HAL_UART_ENABLE_IT(&huart2,UART_IT_RXNE);

HAL_TIM_PWM_Start(&htim2,TIM_CHANNEL_1);

HAL_TIM_PWM_Start(&htim2,TIM_CHANNEL_3);

Buzzer_ON();

HAL_Delay(100);

Buzzer_OFF();

ReadADC();

Cam_Sensor_Out = (u16)map(Cam_KS,Window_X1,Window_X2,Window_Y1,Window_Y2);......................

0 REPLIES 0