2020-11-03 01:09 AM
as people told me, i looked on "makefile" vs last version "makefile" to see any change but i couldnt spot one.
I did all necessary "#incuded" on top of the class.
I'v attached the problematic part:
#include "main.h"
#include <string.h>
#include <stdbool.h>
#include <stdio.h>
#include <time.h>
#include <uart_comm.h>
#include "spi.h"
#include "control.h"
#include "flash.h"
#include "comm.h"
#include "func.h"
#include "STM32L4xx_HAL_UART.h"
int atoi(char* );
void delay1u(int);
void delay1m(int);
char string[8];
GPIO_TypeDef* GPIOx;
uint16_t raw;
char msg[10];
bool start= false;
int freqdiv=1;
uint16_t rx_data;
UART_HandleTypeDef huart1;
uint8_t rx_index = 0;
bool in_ques=false, spi_w=false, spi_r=false, tim=false,SendToComm=false;
void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart){
if (huart -> Instance == USART1){
HAL_UART_Transmit(&huart1, &rx_data, 1,100);
if (rx_data==0)for (int i = 0 ; i<20; i++)rx_buffer[i]=0;
else if (rx_data != 13){rx_buffer[rx_index++]= rx_data;}
else { mymemcpy(InputMsg,rx_buffer,21); InputMsgProcess();}
rx_index=0;
char *p=rx_buffer, *s = InputMsg;
REGnumber=0;
while (*p++ || *s++) { // While there are more characters to process...
rx_buffer[rx_index++]='\0'; InputMsg[rx_index]='\0';}
rx_index=0;
}
HAL_UART_Receive_IT(&huart1, &rx_data,1);
}
2020-11-03 01:24 AM
Hello @Gbasi.1 ,
I want to ask you about the problem related to : cubmixIDE is saying that: "undefined reference to `HAL_UART_Transmit'" anytime I'm using `HAL_UART_Transmit'.
Could you please share you ioc File where this error message appears ?
Thanks
Khouloud
2020-11-03 01:41 AM
problem is not in IOC file. but i will share it anyway the problem accrue in the c file as I attached above.
here i show it in picture:
2020-11-03 01:42 AM
that the IOC pic