CubeIDE 썸네일형 리스트형 stm32cubeIDE 에서 build 하던거 vs code 에서 build/debug 하기 2 stm32 를 vs code에서 build/debug 하기 2가지를 해 보았읍니다. 필요 한거 쓰셔요. 1. stm32cubeIDE 에서 build 하던거 vs code 에서 build/debug 하기 https://bahk33.tistory.com/191 ( stm32cubeCLT , make.exe 를 설치 )2. stm32cubeIDE 에서 build 하던거 vs code 에서 build/debug 하기 2 - 본글 https://bahk33.tistory.com/192 ( stm32cubeCLT , make.exe 를 설치 안하고 하기 ) ==========================본글 순서 0. 개념1. 사전 작업 2. Compiler 경로 .. 더보기 stm32cubeIDE 에서 build 하던거 vs code 에서 build/debug 하기-1 stm32 를 vs code에서 build/debug 하기 2가지를 해 보았읍니다. 필요 한거 쓰셔요. 1. stm32cubeIDE 에서 build 하던거 vs code 에서 build/debug 하기-1 - 본글 https://bahk33.tistory.com/191 ( stm32cubeCLT , make.exe 를 설치 )2. stm32cubeIDE 에서 build 하던거 vs code 에서 build/debug 하기 2 https://bahk33.tistory.com/192 ( stm32cubeCLT , make.exe 를 설치 안하고 하기 ) ==========================본글 순서 0. 개념1. 사전 작업 2. stm32cubeCL.. 더보기 [CubeIDE] stm32 Uart Printf, sample source Uart 를 통해 printf() 를 쓰기 위해서는 아래 2가지 중 하나를 쓰면 됩니다.즉 __weak 로 설정된 __io_putchar 또는 _write 중 하나를 설정해 주면 됩니다.그리고 printf 를 쓰기 위해서#include 도 해 주어야 합니다.소스 중 적당한데 가져다 놓으셔요.. ==============================1. _write()#ifdef __cplusplusextern "C" int _write(int32_t file, uint8_t *ptr, int32_t len) {#elseint _write(int32_t file, uint8_t *ptr, int32_t len) {#endif if( HAL_UART_Transmit(&huart1, ptr, le.. 더보기 [CubeIDE] stm32 I2C 로 TLC59116 [LED Drv] 와 통신, sample source 이곳 저곳 기웃 거려 어찌 어찌 동작 하게 만들었읍니다. 설명은 나중에 하고 일단 소스와 관련 자료 먼저 올립니다. 더보기 [CubeIDE] stm32 Uart 살리기 LoopBack, sample source 이전 [CubeIDE] stm32 프로젝트 만들기 https://bahk33.tistory.com/45 New => STM32 Project - Target Selection 에서 MCU/MPU Selector 탭에서 Part Number 에 CubeIDE 를 " data-og-host="bahk33.tistory.com" data-og-source-url="https://bahk33.tistory.com/45" data-og-url="https://bahk33.tistory.com/45" data-og-image="https://scrap.kakaocdn.net/dn/biIwzr/hyTixKAb0v/jla7gOw8wRdVBeTYVswLMk/img.png?width=800&height=592&face=.. 더보기 [CubeIDE] stm32 프로젝트 만들기 1. 프로젝트 생성때 맨 처음 해야 할일 2가지 - SWD 설정 - 클럭 소스 및 동작 클럭을 설정 2. 프로젝트 만들기 - File => New => STM32 Project - Target Selection 에서 MCU/MPU Selector 탭에서 Part Number 에 CubeIDE 를 실행하고 MCU를 STM32F103C8xx( 여기서는 STM32F103C8T6 ) 를 선택 - [Next] 3.- Project 명 ( 여기서 는 AAClock_stm ) 적고 저장할 위치를 기본으로 하려면, Use default Location 에 체크 하고, 아니면, 따로 빈 디렉토리( 반드시 아무것도 안 들어 있어야 함) 을 하나 만들어 Location 에 넣고 [Finish] 를 누르면, Location .. 더보기 STM32 CubeIDE I2C sample source code ==============================1. \Inc\stm32f2xx_hal_conf.h 에 코멘트 처리 되있는거 풀어 주고----------------------------------------------------#define HAL_I2C_MODULE_ENABLED ----------------------------------------------------==============================2. gpio.c 에 다음 울 추가 ( i2c.c 에 있어 안해 줘도 되는)----------------------------------------------------// PB10 ------> I2C2_SCL// PB11 ------> I2C2_SDA.. 더보기 CubeIDE STM32 UART 수신 interrupt 처리 및 에러 처리, example source CubeIDE 에서 STM32 Uart 통신 관련 주요 부분.. main.c===========================================void MyTaskInit(){ Serial_Init();}void MyTask(){ Serial_get1(); // 처리 함수 Serial_get6();}int main(void){ /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init(); /* Configure the system clock */ SystemClock_Config(); /* Initialize all configured peripherals */ MX_.. 더보기 이전 1 다음