fpistm / arduino_core_stm32f4 Goto Github PK
View Code? Open in Web Editor NEW[Deprecated] STM32F4 support added to the Arduino_Core_STM32.
[Deprecated] STM32F4 support added to the Arduino_Core_STM32.
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
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
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,
Pulse range is not good => 254 - 850us. Should be 500 - 1700us.
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.