Page 1 of 2

STM32 TVOUT

Posted: Thu Dec 08, 2022 3:40 pm
by kevinmryan1903
Hi All,
I am attempting to run TVOUT (https://github.com/Tamakichi/ArduinoSTM32_TVout) & ((https://github.com/Tamakichi/Arduino-misakiUTF16) on an STM32 but I can't get it to compile. I get an error:


WARNING: library TNTSC claims to run on STM32F1 architecture(s) and may be incompatible with your current board which runs on stm32 architecture(s).
In file included from C:\Users\10123683\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.3.0\libraries\TNTSC\examples\MisakiFontOut\MisakiFontOut.ino:14:
C:\Users\10123683\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.3.0\libraries\TNTSC\src/TNTSC.h:46:29: error: 'SC_DEFAULT' was not declared in this scope; did you mean 'AR_DEFAULT'?
46 | void begin(uint8_t mode=SC_DEFAULT,uint8_t spino = 1, uint8_t* extram=NULL); // NTSCビデオ表示開始
| ^~~~~~~~~~
| AR_DEFAULT


I am currently using the "STMicroelectronics; stm32; 2.3.0" board manager.
I'm thinking the code does not work with this (official) board manager for STM32? Any ideas?

Thanks,
Kevin

Re: STM32 TVOUT

Posted: Thu Dec 08, 2022 4:20 pm
by GonzoG
It's for libMable/Roger's/Steve's core. Won't work on official STM32 core.
https://github.com/stevstrong/Arduino_STM32

Re: STM32 TVOUT

Posted: Thu Dec 08, 2022 5:06 pm
by kevinmryan1903
Thanks. Is there a ".json" file for this? (I'm having difficulty getting this to show up in the board manager)

Re: STM32 TVOUT

Posted: Thu Dec 08, 2022 5:36 pm
by GonzoG

Re: STM32 TVOUT

Posted: Thu Dec 08, 2022 6:57 pm
by kevinmryan1903
Thanks so much!!

Re: STM32 TVOUT

Posted: Fri Dec 09, 2022 2:45 pm
by kevinmryan1903
So I think I'm getting closer. But still having an error(below):

C:\Users\15183\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\libraries\TNTSC\src\TNTSC.cpp: In member function 'void TNTSC_class::begin(uint8_t, uint8_t, uint8_t*)':
C:\Users\15183\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\libraries\TNTSC\src\TNTSC.cpp:221:20: error: 'TIMER_OUTPUTCOMPARE' was not declared in this scope
Timer2.setMode(1,TIMER_OUTPUTCOMPARE);
exit status 1
Error compiling for board Generic STM32F103C series.

Any thoughts??

Re: STM32 TVOUT

Posted: Fri Dec 09, 2022 2:49 pm
by kevinmryan1903
When I'm trying "TVout; DemoNTSC" I'm getting error:

In file included from C:\Users\15183\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\libraries\arduino-tvout-master\examples\DemoNTSC\DemoNTSC.pde:1:0:
C:\Users\15183\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\libraries\arduino-tvout-master/TVout.h:35:20: fatal error: avr/io.h: No such file or directory
#include <avr/io.h>
^
compilation terminated.
exit status 1
Error compiling for board Generic STM32F103C series.

Re: STM32 TVOUT

Posted: Fri Dec 09, 2022 4:18 pm
by GonzoG
You haven't read installation instructions carefully...
Unzip to create the Arduino_STM32 folder.
Not Arduino_STM32-master

Re: STM32 TVOUT

Posted: Fri Dec 09, 2022 10:09 pm
by kevinmryan1903
I think that helped with one issue. But now getting error:

C:\Users\15183\Documents\Arduino\hardware\Arduino_STM32\STM32F1\libraries\TNTSC\src\TNTSC.cpp: In member function 'void TNTSC_class::begin(uint8_t, uint8_t, uint8_t*)':
C:\Users\15183\Documents\Arduino\hardware\Arduino_STM32\STM32F1\libraries\TNTSC\src\TNTSC.cpp:221:20: error: 'TIMER_OUTPUTCOMPARE' was not declared in this scope
Timer2.setMode(1,TIMER_OUTPUTCOMPARE);
^
exit status 1
Error compiling for board Generic STM32F103C series.

Re: STM32 TVOUT

Posted: Sat Dec 10, 2022 5:01 pm
by Bakisha
Place TNTSC library in library folder, so full path will be: C:\Users\15183\Documents\Arduino\libraries\TNTSC
NOT in core library folder ( C:\Users\15183\Documents\Arduino\hardware\Arduino_STM32\STM32F1\libraries\TNTSC )