Dear Sir/Madam,
Please feel free to advise how to obtain a snapshot via video capture on DM6437 EVM and then I can have the image for further processing.
Thanks & Regards
son1121
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Dear Sir/Madam,
Please feel free to advise how to obtain a snapshot via video capture on DM6437 EVM and then I can have the image for further processing.
Thanks & Regards
son1121
Do you mean a snapshot image in the DM6437 EVM's memory or a snapshot you send from the EVM to a host PC?
If you mean on the EVM itself than you may want to look at one of the simple video preview examples, like shown in this article. Essentially the capture driver gives you a continuous stream of 'snapshot' images that make up the video stream, so to capture one of those snapshots you simply have to keep that buffer in tact somewhere with your code. I am not sure if this answers your question, if not please post.
Dear Thompson Sir,
Many thanks for your reply and informations.
I really mean a snapshot image in the DM6437 EVM's memory(standalone use).
I have run and compiled the "Accessing_Pixels_In_A_Frame" code example in my experimental platform with DM6437 EVM. There is a remaining error I could not solve so far. It is shown as follows.
js: "C:/CCStudio_v3.3/bios_5_31_02/xdctools/include/utils.tci", line 484: exception from uncaught JavaScript throw: Error: Can't find import file: 'DM6437_common.tci' (not found along 'C:\dvsdk_1_01_00_15\examples\Accessing_Pixels_In_A_Frame/;.;../common;C:/CCStudio_v3.3/bios_5_31_02/packages;C:\CCStudio_v3.3\bios_5_31_02\xdctools/include;C:\CCStudio_v3.3\bios_5_31_02\xdctools/packages')
"./video_preview.tcf", line 18
Please feel free to advise again.
Thanks & Regards
Sorry about that, it looks like the name of the TCI file changed in the newer example releases so the code example will not work out of the box with the newer example packages, I just added the TCI file into the zip file so if you download it again you should be able to get that TCI file and rebuild properly, if that does not work, please let me know.
Dear Thompson Sir,
I have tried it again. There is still a linking error shown as follows. Please feel free free to advise again.
Thanks & Regards
[Linking...] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -@"Debug.lkf"
<Linking>
undefined first referenced
symbol in file
--------- ----------------
_I2C_INIT C:\\dvsdk_1_01_00_15\\examples\\Accessing_Pixels_In_A_Frame\\Debug\\video_previewcfg.obj
>> error: symbol referencing errors - './Debug/video_preview.out' not built
>> Compilation failure
Build Complete,
2 Errors, 0 Warnings, 0 Remarks.
Sorry for the delay, I was able to fix this and I posted an updated version that is now known to build properly in a default DVSDK 1.11.00.00 install, you should also have to do significantly less finding of missing headers and libraries if you are using DVSDK 1.11.00.00.
That particular I2C_INIT undefined problem stems from the PSP release changing the symbol label for the I2C driver's init function from I2C_INIT to i2c_init, the new version I posted simply remaps I2C_INIT to i2c_init with a function call. If you run into further issues, please let me know.
Many thanks for your reply.
One error is still left --- "video_preview.c", line 78: fatal error: could not open source file "cslr_sys.h". My version is dvsdk_1_01_00_15 and I can not find out this cslr_sys.h file. Please feel free to give your comments and advise where I can download the newer DVSDK 1.11.00.00.
Thanks & Regards
Dear Sir,
I refered to your reply of other posted message on TI E2E Community and then I knew that my DVSDK version was past. So I went to https://www-a.ti.com/downloads/sds_support/TargetContent/dvsdk/bios_dvsdk/index.html to download the latest DM6437_DVSDK_1_11_00_00 with bios_5_31_08. The build_Debug log is shown as follows.
Build Complete,
0 Errors, 1 Warnings, 1 Remarks.
Was the result right ? Was there somthing wrong with 1 remark left ?
After I performed Load Program (video_preview.out) on DM6437 EVM, it ran correctly. I have started to study the code for my application. I deeply appreciate your kind help.
Best & Regards
I am glad to hear that the application runs for you now, this is good news.
son1121 said:Was the result right ? Was there somthing wrong with 1 remark left ?
The remark I expected, it should be ""video_preview.c", line 80: remark: function declared implicitly" which is where the I2C_INIT function is defined to call i2c_init, you could change how it is declared to get rid of the remark if you prefer. I left it in there because it should not hurt anything and it may help to highlight what is going on in regards to that I2C init function.
Yours also shows a warning which I am not seeing, I have "0 Errors, 0 Warnings, 1 Remarks." on my build, if you post the warning I would be glad to take a look at it and comment further.
Dear Sir,
The warning is in the following.
[Linking...] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -@"Debug.lkf"
<Linking>
>> warning: creating output section $build.attributes without SECTIONS
specification
Please feel free to give comments.
Best & Regards
Dir Sir,
I also would like to have a snapshot button to grab a frame after preview. It is like a common function of digital still camera. Can I use button function by DM6437 GPIO ? Is there an example code of button function on DM6437 EVM ?
Please feel free to advise.
Best & Regards
son1121 said:Can I use button function by DM6437 GPIO ? Is there an example code of button function on DM6437 EVM ?
There is a GPIO example within C:\dvsdk_1_11_00_00\pspdrivers_1_10_00\packages\ti\sdo\pspdrivers\soc\dm6437\examples\gpio\src that may be of some help in this, it uses the register level CSL to configure GPIO and could be adapted into your design.
son1121 said:I have an another question whether I can call functions of dll(Dynamic-link library) file on CCStudio.
I am not sure what you are trying to do here, if you mean a dll file for a PC being used with CCS than no, as the dll would be built for x86 and not C64x+. There is not really any support for dynamic libraries with CCS that I have seen, it expects to generate a full binary with all libraries linked in statically.
Dear Sir,
After I tried gpio example code, I found that there is no dm643x.cmd file. The errors were shown as follows.
>> 022523: error: system error, can't open file
'C:\\dvsdk_1_11_00_00\\pspdrivers_1_10_00\\packages\\ti\\sdo\\pspdrivers\\soc\\dm6437\\examples\\gpio\\build\\dm643x.cmd' for input: No such file or directory
>> Compilation failure
Build Complete,
2 Errors, 0 Warnings, 0 Remarks.
Please feel free to advise again.
Thanks & Regards
The warning you mentioned previously relates to your linker command file, though if you are using the example project I had posted it should have that all taken care of, for now since it is just a warning I would let it go assuming the project builds and runs.
As to the current error on the gpio example...
son1121 said:>> 022523: error: system error, can't open file
'C:\\dvsdk_1_11_00_00\\pspdrivers_1_10_00\\packages\\ti\\sdo\\pspdrivers\\soc\\dm6437\\examples\\gpio\\build\\dm643x.cmd' for input: No such file or directory
>> Compilation failureBuild Complete,
2 Errors, 0 Warnings, 0 Remarks.
Try removing that file from the project and adding in gpio_interruptcfg.cmd (a bios generated file), it looks like the GPIO example is using BIOS to generate its linker command file instead. With that I am able to rebuild with a warning, it also runs though I have not actually tried toggling the GPIO yet.
Hello,
I am trying to achieve the same result with user son1121. I have DM6437 with DV_SDK_1_11 installed.
I located the original video_preview folder. In code composer studio 3.3 I click project->open and select video_preview.pjt.
Then when I rebuild it says
------------------------- video_preview.pjt - Debug -------------------------
Error, Don't know how to build file "C:\dvsdk_1_11_00_00\examples\video_preview\evmDM6437\video_preview.cfg"
[i2c_params.c] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -g -@"=C:/dvsdk_1_11_00_00/examples/video_preview/evmDM6437/xdcconfig/compiler.opt" -pdr -fr"C:/dvsdk_1_11_00_00/examples/video_preview/evmDM6437/Debug" -i"C:/dvsdk_1_11_00_00/examples/video_preview/evmDM6437" -i"." -i"/include" -d"CHIP_DM6437" -d"_NTSC" -d"DM6437_SOC_BUILD" -d"_DEBUG" -mv64+ -@"../../video_preview/evmDM6437/Debug.lkf" "i2c_params.c"
"i2c_params.c", line 17: fatal error: could not open source file "ti/sdo/pspdrivers/drivers/i2c/psp_i2c.h"
1 fatal error detected in the compilation of "i2c_params.c".
Compilation terminated.
>> Compilation failure
[video_preview.c] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -g -@"=C:/dvsdk_1_11_00_00/examples/video_preview/evmDM6437/xdcconfig/compiler.opt" -pdr -fr"C:/dvsdk_1_11_00_00/examples/video_preview/evmDM6437/Debug" -i"C:/dvsdk_1_11_00_00/examples/video_preview/evmDM6437" -i"." -i"/include" -d"CHIP_DM6437" -d"_NTSC" -d"DM6437_SOC_BUILD" -d"_DEBUG" -mv64+ -@"Debug.lkf" "video_preview.c"
"video_preview.c", line 29: fatal error: could not open source file "ti/sdo/pspdrivers/drivers/i2c/psp_i2c.h"
1 fatal error detected in the compilation of "video_preview.c".
Compilation terminated.
>> Compilation failure
[cfg.c] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -g -@"=C:/dvsdk_1_11_00_00/examples/video_preview/evmDM6437/xdcconfig/compiler.opt" -pdr -fr"C:/dvsdk_1_11_00_00/examples/video_preview/evmDM6437/Debug" -i"C:/dvsdk_1_11_00_00/examples/video_preview/evmDM6437" -i"." -i"/include" -d"CHIP_DM6437" -d"_NTSC" -d"DM6437_SOC_BUILD" -d"_DEBUG" -mv64+ -@"../Debug.lkf" "cfg.c"
Build Complete,
3 Errors, 0 Warnings, 0 Remarks.
Can you help me??