Code Monkey home page Code Monkey logo

stm32-mcu's Introduction

Application components for STMicro STM32 MCUs

Toolchain: Migrating from TrueSTUDIO+CubeMX to STM32CubeIDE

Common libraries

Application components

Dynamic NFC tags

printf issue

I managed to support printf on USART2.

Physical configuration:

STM32F407
               +------------+
            X 5V            |
GND     ----- GND  FTDI     |
PA3(RX) ----- TX  USB-UART  ===== USB ======> PC
PA2(TX) ----- RX  converter |
               +------------+

Include the following snippet in main.c to support printf:

int _write(int file, char *pbuf, int len)
{
  HAL_UART_Transmit(&huart2, (uint8_t *)pbuf, len, 1000);
  return len;
}

PWM test

PWM output (100Hz, 50% duty) to PA8:

waveform

Tips

References

STM32L476 Nucleo-64

STM32F4 Discovery board

stm32-mcu's People

Contributors

araobp 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

Watchers

 avatar  avatar  avatar  avatar

stm32-mcu's Issues

ST25 dynamic NFC tag: EEPROM wearing problems

The signage app needs some improvements to avoid the EEPROM wearing problems.

Currently, new URL is written on EEPROM every 10 seconds.

Improvements:

  • Write a base URL onto EEPROM for the first time.
  • webapp.js updates "ref" as a variable on STM32's SRAM, when a new POST request has been received from the signage SPA.
  • When the firmware on STM32 has detected GPO interrupt (RF Field Change event), the firmware writes a new URL onto EEPROM, and "ref" is appended to the base URL like "&ref=something".

The problem is that I have nearly lost my development environment since last week. Unfortunately, CubeIDE is very unstable, and my DELL PC is broken (its quality is no good)...

Dynamic NFC tag: "RF field change detected" event

Send the event to WebBluetooth via RN4020 to notify the HTML5 page that somebody is near the tag.

The event is consumed by the HTML5 page to rewind some video playback.

ST25's GPO is the source of the event.

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.