-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HardFault_Handler when rclc_timer_init_default is use #99
Comments
We need more details to be able to evaluate this issue. |
Do you have any heap initialized? |
No I did not, what I know In microros, the heap is typically initialized automatically by the main() function or by the underlying operating system. How I can initialized microros heap any ref.., This is all in my main for ref /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /* MCU Configuration--------------------------------------------------------*/ /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ /* USER CODE BEGIN Init */ /* USER CODE END Init */ /* Configure the system clock */ /* USER CODE BEGIN SysInit */ /* USER CODE END SysInit */ /* Initialize all configured peripherals / HAL_CAN_Start(&hcan2); HAL_UART_Receive_IT(&huart2, &uart2_it_data, 1); HAL_TIM_Base_Start(&htim6); // Start timer //FirstOrderIIR_Init(&iirBuffer, IIR_FILTER_ALPHA); if(HAL_GPIO_ReadPin(GPIOB, em_button_Pin) == 0x01){ //init emergency var /* USER CODE END 2 */ /* Init scheduler */ /* USER CODE BEGIN RTOS_MUTEX / /* USER CODE BEGIN RTOS_SEMAPHORES / /* USER CODE BEGIN RTOS_TIMERS / /* Create the queue(s) / /* creation of myQueue02 */ /* USER CODE BEGIN RTOS_QUEUES / /* Create the thread(s) / /* creation of motorDriver01Ta */ /* creation of motorDriver02Ta */ /* creation of uartDataProcess */ /* USER CODE BEGIN RTOS_THREADS / /* USER CODE BEGIN RTOS_EVENTS / /* Start scheduler /
} |
In Cube IDE you need to have some heap configured for your platform. This is not related to micro-ROS but to your platform usage. |
I Have configure the heap to 10k but the problem still have |
What other data require for evaluate this issue.. |
I have a problem when debugger reach rclc_timer_init_default function. this cause the debugger go to HardFault_Handler function. Please help.
Board: openCR(stm32f746)
IDE: stm32cubeide
OS: Freertos
The text was updated successfully, but these errors were encountered: