2021-08-04 07:08 AM
Hello Folks,
my initial goal is now to create a library. I have to use the SPI function outside of main.c file. However, I cannot make HAL_SPI_Transmit function run outside of main.c file. Also, I cannot able to run outside of main function inside the main.c
It goes into HardFault_Handler
I didn't do anything crazy, here is my full program too.
I should be able to use these functions outside the main function right?
Kind regards.
2021-08-04 07:17 AM
You can use it, you just need to use it correctly.
Duplicate: