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.

怎样在应用程序中修改DM368寄存器的值?



最近在一个应用程序中想修改寄存器的值,也就是想在用户空间直接读写寄存器的值。我使用了mmap内存映射方法,发现可以修改VPSS_CLK_CTL和VPBE_CLK_CTLK的值,但是在修改诸如像OSD_MODE等有OSD_前缀的寄存器,以及像VENC_VMODE有VENC_前缀的寄存器时,会报出错误:segmentation default,然后程序就运行终止了。有哪位前辈能给我说一下这个问题怎么解决,或者说一下怎样在应用程序中修改诸如OSD_***和VENC_***这种类型的寄存器的值而不会报错。希望有人能给我指点一下,感激不尽!