Git Product home page Git Product logo

arduino_core_stm32f4's Introduction

Hi there ๐Ÿ‘‹

zephyr-technical-contributor

๐Ÿ“ˆ GitHub Stats

fpistm's GitHub Stats

arduino_core_stm32f4's People

Contributors

fpistm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arduino_core_stm32f4's Issues

I2C only works for I2C_1 on PB8/9 (wire.cpp and twi.c)

Low priority - code works OK for I2C_1 on PB8/9 only.
I2C_2/I2C_3 not accessible via wire.

I2C init data is hardwired into twi.c (see twi.c : 148)
->No matter what the options are set in PeripheralPins.h, the code will initialise to SCL/SDA on PB8/9

Wire.cpp only allows I2C1 (see wire.cpp : 300)
-> only one I2C is instanced in twi.h (@ line 54)

Code needs rewriting to use PeripheralPins structures to update the g_i2c_init_info[NB_I2C_INSTANCES] data before i2c_custom_init() is called from wire.cpp:61

ADC Libraries

Frederic,

I've been testing the advanced ADC\DAC modes (beyond single conversion, polling) using the templates from STM32Cube_FW_F4_V1.15.0\Projects\STM324x9I_EVAL\Examples\ADC\ and \DAC\

When using these other analog routines, HAL_ADC_MspInit() etc need to be customised for each configuration.

Now I'm trying out the dual-interleaved mode, it has become clear that the code in analog.c is just an initial test.

As HAL_ADC_MspInit() needs to be customised for each configuration, I'm looking at hiding the MSP_Init functions in analog.c at the system level and moving the code up to a library. The Init functions can then be customised for each mode.

When I tried this, other functions break - like dac_stop() and pwm_stop(). I think I'll be able to leave them in analog.c

Give me a few days and I'll have something workable.

Single-Polling and Single-interrupt are working already, using pretty much standard code from the Cube libraries, next up is dual-interleaved

Richard

TFT sketch build failed

SCLK is defined in variant.h and named also a parameter in the lib:
local/data/work/stm32/stm32duino/arduino-1.8.1/hardware/STM/stm32f4/libraries/TFT/src/utility/Adafruit_ST7735.h:101:64: note: in expansion of macro 'SCLK'
Adafruit_ST7735(uint8_t CS, uint8_t RS, uint8_t SID, uint8_t SCLK,

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.