Giter Site home page Giter Site logo

stm32_tutorials's People

Contributors

dekunukem avatar robotgrrl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stm32_tutorials's Issues

fputc/printf() do not seem to work.

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?

void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)

Hi,

/**

  • @brief EXTI line detection callback.
  • @param GPIO_Pin Specifies the port pin connected to corresponding EXTI line.
  • @RetVal None
    /
    __weak void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
    {
    /
    Prevent unused argument(s) compilation warning */
    UNUSED(GPIO_Pin);

/* NOTE: This function should not be modified, when the callback is needed,
the HAL_GPIO_EXTI_Callback could be implemented in the user file
*/
}

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

Lesson 1: UART Transmit

i tried this lesson using stm32f446re and stm32cubeide the led blinks but the uart transmit isn't working

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.