dekunukem / stm32_tutorials Goto Github PK
View Code? Open in Web Editor NEWSTM32 tutorial with STM32Cube and Keil MDK-ARM
License: MIT License
STM32 tutorial with STM32Cube and Keil MDK-ARM
License: MIT License
I did exactly as described, while using a Nucleo F042k6.
My main while loop includes:
`HAL_Delay(500);
HAL_UART_Transmit(&huart2,(uint8_t*)"hello\r",7,10);
HAL_Delay(500);
char lol[32];
sprintf(lol, "lol %u \r", (unsigned int)10);
HAL_UART_Transmit(&huart2, (uint8_t*)lol, strlen(lol),5);
HAL_Delay(500);
printf("Hello from printf");
with the fputc copied and pasted from your example.
/* USER CODE BEGIN 0 */
int fputc(int ch, FILE *f)
{
HAL_UART_Transmit(&huart2, (unsigned char )&ch, 1, 100);
return ch;
}
/ USER CODE END 0 */
`
It all compiles fine. Uploads... no indication of a problem except printf simply does nothing.
The sprintf lol business was my old method of printing strings before I found your tutorial.
In the terminal, I get:
.lol 10 hello .lol 10 hello .lol 10 hello .lol 10 hello .lol 10 hello
Is this method tested? Any idea what's going wrong?
Hi,
/**
Great, let's write our own HAL_GPIO_EXTI_Callback then:
void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
{
printf("oh my\n");
}
In the above code, At which pin trigger the above code function should be call?
Thanks
i tried this lesson using stm32f446re and stm32cubeide the led blinks but the uart transmit isn't working
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.