FREE RTOS MCU - Setup IDE and Blink
Before we dive into RTOS coding lets setup a simple IDE and use a conventional super loop approach to Blink 2 LEDs on our custom MCU Board.
Steps to start.
Install STM32CUBE IDE from the ST website.
Go through the steps outlined in [https://wiki.st.com/stm32mcu/index.php?title=STM32CubeIDE:Introduction_to_STM32CubeIDE&sfr=stm32mcu] (Introduction to STM32CubeIDE)
Connect the STLINK to the Computer and Hit Debug use the code provided here.
https://github.com/gowrav/stm32_sandbox
while (1)
{
/* USER CODE END WHILE */
HAL_GPIO_TogglePin(GPIOB, GPIO_PIN_0);
HAL_Delay(500);
HAL_GPIO_TogglePin(GPIOB, GPIO_PIN_1);
HAL_Delay(500);
/* USER CODE BEGIN 3 */
}
Now for part 2 , lets focus on doing the exact same thing without IDE. Concepts which we will learn are Compilers , Linkers etc https://medium.com/@aareshbachana/embedded-systems-intro-compiling-and-linking-using-make-1340520df3ce Next lets take first steps by compiliing code snippets only using ![MAKE] (https://www.gnu.org/software/make/manual/html_node/Introduction.html) https://github.com/shengwen-tw/stm32f4-examples/tree/master
##
####
Websites for reference:
- [https://www.nxp.com/docs/en/application-note/AN12881.pdf] (Motor Control Using FreeRTOS)
- [https://labs.dese.iisc.ac.in/embeddedlab/wp-content/uploads/sites/24/2023/08/Mastering_the_FreeRTOS_Real_Time_Kernel_A_Hands_On_Tutorial_Guide.pdf] (Mastering_the_FreeRTOS_Real_Time_Kernel)
- [https://wiki.st.com/stm32mcu/index.php?title=STM32CubeIDE:Introduction_to_STM32CubeIDE&sfr=stm32mcu] (Introduction to STM32CubeIDE)
- https://cgdb.github.io/docs/cgdb.html
- https://developer.apple.com/library/archive/documentation/DeveloperTools/gdb/gdb/gdb_5.html
- https://openocd.org/doc/html/GDB-and-OpenOCD.html
- https://medium.com/@csrohit/writing-linker-script-for-stm32-arm-cortex-m3-%EF%B8%8F-fdc2acaaddcc
- https://www.youtube.com/watch?v=OkUQ3iMmiYQ
- https://www.youtube.com/watch?v=_gejWsAn5kg
- https://github.com/STMicroelectronics/stm32-mw-openbl/tree/main?tab=readme-ov-file
- https://medium.com/@csrohit/writing-linker-script-for-stm32-arm-cortex-m3-%EF%B8%8F-fdc2acaaddcc
- [https://www.st.com/resource/en/user_manual/um1725-description-of-stm32f4-hal-and-lowlayer-drivers-stmicroelectronics.pdf] (https://www.youtube.com/watch?v=hyZS2p1tW-g)
Comments