filmov
tv
STM32C0 workshop - 07 RAM code execution lab
Показать описание
We will create an application code and then we will move part of the code to RAM.
*Code to be added:*
in main.c:
/* USER CODE BEGIN 2 */
LL_USART_EnableIT_RXNE(USART2);
LL_USART_EnableIT_ERROR(USART2);
...
/* USER CODE BEGIN 4 */
void USART_CharReception_Callback(void)
{
uint8_t received_char;
received_char = LL_USART_ReceiveData8(USART2);
if ((received_char == 'E') || (received_char == 'e')) {
LL_GPIO_TogglePin(LED_GPIO_Port, LED_Pin);
}
LL_USART_TransmitData8(USART2, received_char);
}
in main.h:
/* USER CODE BEGIN EFP */
void USART_CharReception_Callback(void);
/* USER CODE END EFP */
in stm32c0xx_it.c:
/* USER CODE BEGIN USART2_IRQn 0 */
USART_CharReception_Callback();
/* USER CODE END USART2_IRQn 0 */
in STM32C031C6TX_FLASH.ld:
*/Drivers/*(.text*)
*main.o(.text.MX_GPIO_Init)
*main.o(.text.MX_USART2_UART_Init)
*main.o(.text.USART_CharReception_Callback)
______
The STM32C0 series is our new general purpose 32-bit microcontrollers offering simplicity and affordability.
Designers will especially appreciate its pin-to-pin compatibility with the STM32 family and its comprehensive development ecosystem.
*Who should attend this course?*
- Engineers looking for a general purpose microcontroller for their embedded applications
- Engineers who wish to better understand the STM32C0's innovative architecture and embedded smart peripherals
- Engineers looking to design applications using a user-friendly development ecosystem
*Prerequisites:*
- NUCLEO-C031C6 board
- type A to type B micro USB cable
- Laptop PC running Windows® 7, 8, 10 or 11 with administrator rights and with preinstalled software from below link:
*Complete list of prerequisites is available within the below link:*
*Materials:*
Workshop presentations in pdf format are available here:
In case of any questions, suggestions, feel free to contact us at our forum at:
Please share with us your feedback on this MOOC using anonymous survey at:
*Code to be added:*
in main.c:
/* USER CODE BEGIN 2 */
LL_USART_EnableIT_RXNE(USART2);
LL_USART_EnableIT_ERROR(USART2);
...
/* USER CODE BEGIN 4 */
void USART_CharReception_Callback(void)
{
uint8_t received_char;
received_char = LL_USART_ReceiveData8(USART2);
if ((received_char == 'E') || (received_char == 'e')) {
LL_GPIO_TogglePin(LED_GPIO_Port, LED_Pin);
}
LL_USART_TransmitData8(USART2, received_char);
}
in main.h:
/* USER CODE BEGIN EFP */
void USART_CharReception_Callback(void);
/* USER CODE END EFP */
in stm32c0xx_it.c:
/* USER CODE BEGIN USART2_IRQn 0 */
USART_CharReception_Callback();
/* USER CODE END USART2_IRQn 0 */
in STM32C031C6TX_FLASH.ld:
*/Drivers/*(.text*)
*main.o(.text.MX_GPIO_Init)
*main.o(.text.MX_USART2_UART_Init)
*main.o(.text.USART_CharReception_Callback)
______
The STM32C0 series is our new general purpose 32-bit microcontrollers offering simplicity and affordability.
Designers will especially appreciate its pin-to-pin compatibility with the STM32 family and its comprehensive development ecosystem.
*Who should attend this course?*
- Engineers looking for a general purpose microcontroller for their embedded applications
- Engineers who wish to better understand the STM32C0's innovative architecture and embedded smart peripherals
- Engineers looking to design applications using a user-friendly development ecosystem
*Prerequisites:*
- NUCLEO-C031C6 board
- type A to type B micro USB cable
- Laptop PC running Windows® 7, 8, 10 or 11 with administrator rights and with preinstalled software from below link:
*Complete list of prerequisites is available within the below link:*
*Materials:*
Workshop presentations in pdf format are available here:
In case of any questions, suggestions, feel free to contact us at our forum at:
Please share with us your feedback on this MOOC using anonymous survey at: