ok...
so first hardware: (was) Nucleo64 F302R8 ; but shit..small flash (didnt realize, when i ordered this. ) so need bigger,
for the design of : LISA (Loudpeaker Impulse Spectrum Analyzer ) , with FFT and a TFT display , mobile running from a LiPo cell.
ok, so first found a F303RET on aliexpress at 3.20 € , incl. postage. ok, removed F302 and now is: Nucleo64 F303RET ! 500KB flash, ok.
TFT (also from ali, about 7 € ) is 400 x 240 pix , with ST7793 controller ;
to get TFT running, the Mcufriend lib need mod, write timing was to fast ( 15ns write puls...TFT shows nothing.)
so with help from David, who made the lib, now good timing; TFT works also with overclocked 96MHz cpu clock (at 120MHz game over.)
this is the modified part, in mcufriend_shield.h :
Code: Select all
#elif defined(STM32F303xE)
#define WRITE_DELAY { WR_ACTIVE2; } //for alfsch1 was : 2 #define WRITE_DELAY { }
#define READ_DELAY { RD_ACTIVE8; } //thanks MasterT
#define GPIO_INIT() { RCC->AHBENR |= RCC_AHBENR_GPIOAEN | RCC_AHBENR_GPIOBEN | RCC_AHBENR_GPIOCEN; \
/* AFIO->MAPR |= AFIO_MAPR_SWJ_CFG_1; */ }
#define PIN_OUTPUT(port, pin) PIN_MODE2((port)->MODER, pin, 0x1) //thanks fpiSTM
now the next problem was: analog input from arduino (standard) was much too slow and only 10bit. i need more...much more.
so with help here from fpiSTM , i could get the F303 ADCs run at their native speed and 12bit , of course.
attached : program , at actual state (running, test graphics and simple ADC input + FFT spectrum test.)
+ touchlib , mod for HAL ADC using
+TFT lib, MCUFRIEND_kbv.cpp, mod is timing in mcufriend_shield.h
+ the mysterious opt file
-> in zip file, because forum refuses some files to upload, ie XX.ino seems not allowed (you should change this...

)
( protective film is still on screen )
