Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页
    1. Home
    2. Popular
    Log in to post
    • All categories
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • All Time
    • Day
    • Week
    • Month

    • 公告
    • 芯片
    •          T Series
    •          A Series
    •          V Series
    •          MR Series
    •          H/F/TV Series
    •          Wireless & Analog Series
    • Special
    •          创龙科技专区
    •          飞凌嵌入式专区
    •          爱搞机专区
    • Technical topics
    •          RTOS
    •          Linux
    •          GUI
    • Others
    •          代码下载问题专区
    •          编译和烧写问题专区
    •          其它全志芯片讨论区
    •          灌水区
    • R

      求助,这个编译错误怎么解决?
      编译和烧写问题专区 • Posted at • ROSHEN_007

      0 Votes
      9 Replies
      2451 Views

      R Replied at

      已搞定,单核编译就可以了。。。

      9
    • W

      100s的tina系统,怎么增加一颗ids表未支持的32M norflash?
      Linux • Posted at • wyljkl

      0 Votes
      9 Replies
      3665 Views

      W Replied at

      @yelong98 全志客户服务平台,你开案了就能在那里面直接下载,没有的话你得找代理了

      9
    • G

      有没有大佬知道这个f1c100s和stm32去通信,配置好烧到板子上串口走不下去了
      Linux • Posted at • 张三

      0 Votes
      9 Replies
      2639 Views

      G Replied at

      @awwwwa 好的感谢

      9
    • C

      全志 DDR初始化 v3s
      其它全志芯片讨论区 • v3s dram • Posted at • casdfxx

      0 Votes
      9 Replies
      4529 Views

      C Replied at

      使用fel,下面的代码可以调通dram:

      sunxi-fel writel 0x1C2015C 0x0 sunxi-fel writel 0x1C200FC 0x0 sunxi-fel writel 0x1C20060 0x1000000 sunxi-fel writel 0x1C202C0 0x1000000 sunxi-fel writel 0x1C20020 0x1000 10 sunxi-fel writel 0x1C20100 0x0 1000 sunxi-fel writel 0x1C20020 0x80101D00 5500 sunxi-fel writel 0x1C200F4 0x10000 sunxi-fel writel 0x1C202C0 0x1004000 sunxi-fel writel 0x1C20060 0x1004000 sunxi-fel writel 0x1C2015C 0x80000000 sunxi-fel writel 0x1C200FC 0x80000000 sunxi-fel writel 0x1C200F4 0x80000000 10 sunxi-fel writel 0x1C6300C 0xC00E 500 sunxi-fel writel 0x1C62000 0x4219E4 sunxi-fel writel 0x1C63030 0x263 sunxi-fel writel 0x1C63034 0x4 sunxi-fel writel 0x1C63038 0 sunxi-fel writel 0x1C6303C 0 sunxi-fel writel 0x1C63058 0x8091B09 sunxi-fel writel 0x1C6305C 0x2020C sunxi-fel writel 0x1C63060 0x3030307 sunxi-fel writel 0x1C63064 0x200C sunxi-fel writel 0x1C63068 0x4010203 sunxi-fel writel 0x1C6306C 0x5050403 sunxi-fel writel 0x1C63078 0x90006610 sunxi-fel writel 0x1C63080 0x2010101 sunxi-fel writel 0x1C63050 0xB523281 sunxi-fel writel 0x1C63054 0x16911941 sunxi-fel writel 0x1C63090 0x2B003C sunxi-fel writel 0x1C62090 0x10190 sunxi-fel writel 0x1C62098 0x1 sunxi-fel writel 0x1C62010 0x200000D sunxi-fel writel 0x1C62014 0x800100 sunxi-fel writel 0x1C62018 0x6000009 sunxi-fel writel 0x1C6201C 0x1000400 sunxi-fel writel 0x1C62020 0x200000D sunxi-fel writel 0x1C62024 0x600100 sunxi-fel writel 0x1C62028 0x100000D sunxi-fel writel 0x1C6202C 0x200080 sunxi-fel writel 0x1C62030 0x7000009 sunxi-fel writel 0x1C62034 0x1000640 sunxi-fel writel 0x1C62038 0x100000D sunxi-fel writel 0x1C6203C 0x200080 sunxi-fel writel 0x1C62040 0x1000009 sunxi-fel writel 0x1C62044 0x400080 sunxi-fel writel 0x1C62048 0x100000D sunxi-fel writel 0x1C6204C 0x400080 sunxi-fel writel 0x1C62050 0x100000D sunxi-fel writel 0x1C62054 0x400080 sunxi-fel writel 0x1C62058 0x4000009 sunxi-fel writel 0x1C6205C 0x400100 sunxi-fel writel 0x1C62060 0x2000030D sunxi-fel writel 0x1C62064 0x4001800 sunxi-fel writel 0x1C62068 0x4000009 sunxi-fel writel 0x1C6206C 0x400120 sunxi-fel writel 0x1C63100 0x4005400 sunxi-fel writel 0x1C63104 0x4680C620 sunxi-fel writel 0x1C62800 0x94BE6FA3 100 sunxi-fel writel 0x1C63888 0x80500010 sunxi-fel writel 0x1C62800 0x0 100 sunxi-fel writel 0x1C63344 0x7C0002A1 sunxi-fel writel 0x1C633C4 0x7C0002A1 sunxi-fel writel 0x1C63444 0x20 sunxi-fel writel 0x1C634C4 0x20 sunxi-fel writel 0x1C63208 0x34A sunxi-fel writel 0x1C63108 0x2CC0 sunxi-fel writel 0x1C63100 0x4000400 sunxi-fel writel 0x1C63108 0x26C0 sunxi-fel writel 0x1C630C0 0x81003087 sunxi-fel writel 0x1C63310 0x10 sunxi-fel writel 0x1C63314 0x10 sunxi-fel writel 0x1C63318 0x10 l sunxi-fel writel 0x1C6331C 0x10 sunxi-fel writel 0x1C63320 0x10 sunxi-fel writel 0x1C63324 0x10 sunxi-fel writel 0x1C63328 0x10 sunxi-fel writel 0x1C6332C 0x10 sunxi-fel writel 0x1C63330 0x10 sunxi-fel writel 0x1C63390 0xE sunxi-fel writel 0x1C63394 0xE sunxi-fel writel 0x1C63398 0xE sunxi-fel writel 0x1C6339C 0xE sunxi-fel writel 0x1C633A0 0xE sunxi-fel writel 0x1C633A4 0xE sunxi-fel writel 0x1C633A8 0xE sunxi-fel writel 0x1C633AC 0xE sunxi-fel writel 0x1C633B0 0xE sunxi-fel writel 0x1C63410 0x10 sunxi-fel writel 0x1C63414 0x10 sunxi-fel writel 0x1C63418 0x10 sunxi-fel writel 0x1C6341C 0x10 sunxi-fel writel 0x1C63420 0x10 sunxi-fel writel 0x1C63424 0x10 sunxi-fel writel 0x1C63428 0x10 sunxi-fel writel 0x1C6342C 0x10 sunxi-fel writel 0x1C63430 0x10 sunxi-fel writel 0x1C63490 0xE sunxi-fel writel 0x1C63494 0xE sunxi-fel writel 0x1C63498 0xE sunxi-fel writel 0x1C6349C 0xE sunxi-fel writel 0x1C634A0 0xE sunxi-fel writel 0x1C634A4 0xE sunxi-fel writel 0x1C634A8 0xE sunxi-fel writel 0x1C634AC 0xE sunxi-fel writel 0x1C634B0 0xE sunxi-fel writel 0x1C63100 0x400 sunxi-fel writel 0x1C63334 0x400 sunxi-fel writel 0x1C63338 0x400 sunxi-fel writel 0x1C633B4 0x400 sunxi-fel writel 0x1C633B8 0x400 sunxi-fel writel 0x1C63434 0xA00 sunxi-fel writel 0x1C63438 0xA00 sunxi-fel writel 0x1C634B4 0x600 sunxi-fel writel 0x1C634B8 0x600 sunxi-fel writel 0x1C63100 0x4000400 1 50 sunxi-fel writel 0x1C63150 0xA0A0A0A sunxi-fel writel 0x1C63140 0xBBBBBB sunxi-fel writel 0x1C63000 0x8000000 sunxi-fel writel 0x1C63000 0x3 sunxi-fel writel 0x1C63150 0xA0A0A0A sunxi-fel writel 0x1C63000 0x8000000 sunxi-fel writel 0x1C63000 0x3 sunxi-fel writel 0x1C63140 0xBBBBBB sunxi-fel writel 0x1C63000 0x8000000 sunxi-fel writel 0x1C63000 0x3 sunxi-fel writel 0x1C63150 0xA0A0A0A sunxi-fel writel 0x1C63000 0x8000000 sunxi-fel writel 0x1C63000 0x3 sunxi-fel writel 0x1C63140 0x999999 sunxi-fel writel 0x1C63000 0x8000000 sunxi-fel writel 0x1C63000 0x3 sunxi-fel writel 0x1C63150 0xE0E0E0E sunxi-fel writel 0x1C63000 0x8000000 sunxi-fel writel 0x1C63000 0x3 sunxi-fel writel 0x1C63140 0x333333 sunxi-fel writel 0x1C63000 0x8000000 sunxi-fel writel 0x1C63000 0x3 sunxi-fel writel 0x1C63150 0x7070707 sunxi-fel writel 0x1C63000 0x8000000 sunxi-fel writel 0x1C63000 0x3 sunxi-fel writel 0x1C63148 0xA0A0A0A sunxi-fel writel 0x1C6314C 0x7070E0E sunxi-fel writel 0x1C63000 0x571 sunxi-fel writel 0x1C6308C 0x80200010 10 sunxi-fel writel 0x1C6308C 0x200010 10 sunxi-fel writel 0x1C6310C 0xAA0060 sunxi-fel writel 0x1C63140 0x80333333 sunxi-fel writel 0x1C62094 0xFFFFFFFF sunxi-fel writel 0x1C63120 0x201 1 sunxi-fel writel 0x1C6307C 0x4000400 sunxi-fel writel 0x1C63108 0x6C0 sunxi-fel writel 0x1C620D0 0x80103040 10 sunxi-fel writel 0x1C62000 0x4216F0 sunxi-fel writel 0x40000000 0x0 sunxi-fel writel 0x40400000 0xAA55AA55 sunxi-fel writel 0x40000000 0x0 sunxi-fel writel 0x40800000 0xAA55AA55 sunxi-fel writel 0x40000000 0x0 sunxi-fel writel 0x41000000 0xAA55AA55 sunxi-fel writel 0x1C62000 0x421AC0 sunxi-fel writel 0x40000000 0x0 sunxi-fel writel 0x40000200 0xAA55AA55 sunxi-fel writel 0x40000000 0x0 sunxi-fel writel 0x40000400 0xAA55AA55 sunxi-fel writel 0x40000000 0 sunxi-fel writel 0x40000800 0xAA55AA55 sunxi-fel writel 0x1C62000 0x4218C0
      9
    • X

      请教如何排查 linux kernel 启动卡主的问题
      Linux • Posted at • 默

      2 Votes
      9 Replies
      3988 Views

      P Replied at

      @awwwwa 你好,请问打开了UART0的DMA之后卡在这个地方是为啥呀7c855583-631f-4643-8d8d-f0835404c26b-1704969112860.png

      9
    • O

      R128S2 Ubuntu20.04 编译系统错误
      A Series • Posted at • oneofzero

      0 Votes
      9 Replies
      2889 Views

      O Replied at

      @awwwwa
      找到了。

      9
    • D

      T113-S3平台,使用can通信,TX发送数据出现大量错误码
      其它全志芯片讨论区 • Posted at • duanzhh

      2 Votes
      9 Replies
      4178 Views

      D Replied at

      @awwwwa 嗯嗯,好的,感谢大佬!

      9
    • W

      R128能从SD启动吗?
      A Series • Posted at • wj8331585

      0 Votes
      9 Replies
      3427 Views

      A Replied at

      @wj8331585 1.0正式版发布,目前都是内测版SDK

      9
    • T

      adb传输失败,文件系统变成只读的
      MR Series • Posted at • towel_roll

      0 Votes
      9 Replies
      2521 Views

      T Replied at

      @daizebin 好,我试试,是D1S 的

      9
    • Z

      T507 twi 加密芯片atsha204
      Linux • Posted at • Z_z

      2 Votes
      9 Replies
      4281 Views

      J Replied at

      @z15242116489 dts节点要放对应的i2c下面,你放dtsi是没法识别到设备的。
      最新社区内核代码github有
      https://github.com/torvalds/linux

      9
    • G

      f1c100s可以改成rgb565,是不是只需要修改设备树就可以了?
      Linux • Posted at • 张三

      0 Votes
      9 Replies
      3495 Views

      A Replied at

      @gaowei15537316965 在 f1c100s可以改成rgb565,是不是只需要修改设备树就可以了? 中说:

      rgb888

      由于我通过 VGA DAC 将设备连接到 VGA 显示器,因此我使用 dumb_vga_dac 驱动程序。
      该驱动程序允许您选择多种模式。 这就是为什么我“即时”切换模式。

      您正在使用驱动程序 "panel-simple"。 该驱动程序仅允许一种模式。

      对于 16 位,最有可能需要指定格式:

      .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,

      但不是
      .bus_format = MEDIA_BUS_FMT_RGB565_1X16,

      无论如何,在 sun4i_tcon.c 驱动程序中,sun4i_get_pixel_depth 函数提到了格式

      MEDIA_BUS_FMT_RGB666_1X7X3_SPWG

      需要尝试一下。

      9
    • S

      t113-上 一个核跑linux,另一个核跑rtos,官方有提供实例或者有参考文档吗
      其它全志芯片讨论区 • Posted at • sofia

      0 Votes
      9 Replies
      3224 Views

      Z Replied at

      @xiaogcc23333 https://www.cnblogs.com/rogerlee1986/p/17342479.html可以参考一下,但是不同cpu的TSC时钟源估计不一样。
      我放弃全志方案了,公司项目有时间要求,换x86平台搭xenomai轻松多了,实时性也强很多

      9
    • L

      大佬我又来了,Wi-Fi问题求助
      MR Series • Posted at • leomini5

      0 Votes
      9 Replies
      3747 Views

      L Replied at

      @nideyida 主要是用的人太少了,现在虽然价格便宜性能好,但是要想全用起来要掉层皮的……好难啊,这芯片有ledc控制器,但是没有一个好用的上层驱动库,不像esp32 的Arduino框架下那个fastled那么好用,要是能移植一个进来就好了

      9
    • M

      T113-i SD DMA 传输不工作
      创龙科技专区 • Posted at • mouse

      0 Votes
      9 Replies
      4250 Views

      M Replied at

      @yuzukitsuru T113-i SD 采用你嵌入的DMA控制器功能,出问题的reg 值,有DES不可用标志
      de3ebb72-8d20-456f-989b-d037539249d9-企业微信截图_17053914188222.png

      9
    • S

      TLT113-MiniEVM 启动引导失败:E/TC:0 0 check_hardware_info:90 hardware check error1
      创龙科技专区 • Posted at • scanli

      0 Votes
      9 Replies
      3738 Views

      Q Replied at

      楼主请问一下你这个问题解决了吗?

      9
    • B

      基于D1s开发的游戏掌机
      MR Series • Posted at • jasonhu

      6 Votes
      9 Replies
      2163 Views

      B Replied at

      @shin1998 留坑,哈哈哈

      9
    • E

      D1的工具链在哪里下载?
      MR Series • Posted at • Enzo_

      0 Votes
      8 Replies
      2616 Views

      Kirin Replied at

      工具链已随SDK释放,详见:
      https://bbs.allwinnertech.com/topic/42/免签nda直接下-d1-tina-sdk-v1-0正式释放-深入了解risc-v的每一个dna

      8
    • whycan

      如果不按文档走,迟早要翻车,这不melis就翻了
      RTOS • Posted at • whycan晕哥

      0 Votes
      8 Replies
      4061 Views

      whycan Replied at

      @whycan 在 如果不按文档走,迟早要翻车,这不melis就翻了 中说:

      2021-05-18_083444.png 2021-05-18_085122.png

      按套路走,搞定。
      msys卡壳了,

      不知道 cygwin 是如何解决这个 8192超长命令行问题的?

      8
    • luojia65

      【深度讨论】目前D1芯片引导启动流程过长的问题,以及对RISC-V下引导程序环境的思考
      MR Series • Posted at • luojia65

      3 Votes
      8 Replies
      3518 Views

      Z Replied at

      @luojia65 没太理解你说的几个代码就跳转的流程,但dram初始化代码,存储驱动代码得有,这些都得加载到sram或dram上运行。

      8
    • baiwen

      【实践操作】自己从头构建riscv 64 ubuntu等发行版系统!
      MR Series • Posted at • 100ask

      3 Votes
      8 Replies
      5440 Views

      Y Replied at

      3.Vmware ubuntu-16.04挂载arm架构ubuntu文件系统

      8
    • X

      R329的DSP开发如何申请?
      A Series • Posted at • xacnma

      1 Votes
      8 Replies
      3727 Views

      R Replied at

      @xiaowenge 你是全志原厂的么 ,原厂才5个啊😁 全志都有candece的ip授权 搞几个xplorer工具授权应该很简单呐🤥

      8
    • tigger

      好消息,JLC可以贴D1s芯片了,支持快递寄件,只是。。。
      MR Series • Posted at • tigger

      0 Votes
      8 Replies
      2785 Views

      M Replied at

      @kirin 也不垫个板子,芯片基本要废

      8
    • whycan

      用这个外壳给 D1s 做一个 WIFI + TV OUT 的 DLNA 盒子如何?
      MR Series • Posted at • whycan晕哥

      0 Votes
      8 Replies
      2777 Views

      whycan Replied at

      有点尴尬, tina 还不支持 tv out 😠

      8
    • T

      D1s裸奔驱动LCD,并运行xboot的各种风骚APP
      MR Series • Posted at • tripod9

      0 Votes
      8 Replies
      4824 Views

      T Replied at

      https://www.zhihu.com/column/c_1382754923101081600

      8
    • M

      全志SecureBoot无法正常启用
      其它全志芯片讨论区 • Posted at • mengxp

      0 Votes
      8 Replies
      3288 Views

      A Replied at

      @a1314258
      同样的方法使用在r329的key_burn.c
      编译成功了,无语

      8
    • q1215200171

      R329语音识别视频教程,从编译到部署,完全可用
      A Series • Posted at • budbool

      2 Votes
      8 Replies
      3420 Views

      q1215200171 Replied at

      @hu_710774265 其实我也没有😀 只能到sipeed那买 https://item.taobao.com/item.htm?spm=a230r.1.14.24.5d6170a1IJNADK&id=652879327858&ns=1&abbucket=20#detail

      8
    • S

      有D1S/F133连接以太网的参考吗
      MR Series • Posted at • Vogelweide

      0 Votes
      8 Replies
      3503 Views

      YuzukiTsuru Replied at

      参考一下这个,千兆网:
      Yuzuki RV Router RISC-V 旁路由
      https://bbs.aw-ol.com/topic/1583/share/3

      8
    • Randolph

      麻雀使用ADB的问题
      MR Series • Posted at • Randolph

      0 Votes
      8 Replies
      3013 Views

      Randolph Replied at

      @randolph 放个效果😬

      8
    • whycan

      D1s + Toshiba LTPS 3.5寸 RGB888屏 安排上了
      MR Series • Posted at • whycan晕哥

      0 Votes
      8 Replies
      3047 Views

      xiaowenge Replied at

      @whycan 在 D1s + Toshiba LTPS 3.5寸 RGB888屏 安排上了 中说:

      @whycan

      D1s 已经成功初始化,并用RGB HV信号点亮了屏幕,效果杠杠的。

      调个屏幕尺寸看看显示效果

      8
    • H

      哪吒板上用display显示yuv格式数据直接蓝屏
      MR Series • Posted at • Honey130602

      0 Votes
      8 Replies
      3078 Views

      H Replied at

      不错参考yuview里面的示例程序,在F1c200s上实现了直接读取AHD解码芯片出来1920*1080的NV21数据并在LCD上实时显示。

      8
    • YuzukiTsuru

      【开源】YuzukiRuler 随身Linux小尺子
      其它全志芯片讨论区 • Posted at • 柚木 鉉

      1 Votes
      8 Replies
      3553 Views

      I Replied at

      大佬,为啥SDK开发说明没有了,不知道怎么玩呜呜呜

      8
    • O

      运行hello_word遇到GLIBC_2.29 not defined in file libc.so.6改怎么办
      MR Series • Posted at • oiouou123

      0 Votes
      8 Replies
      3369 Views

      xiaowenge Replied at

      @oiouou123 恭喜跑通hellow world!下一步 改变世界!

      8
    • tigger

      D1 / D1s 可以用的 5.5元的 1280*400 长条形MIPI屏, 未验证
      MR Series • Posted at • tigger

      0 Votes
      8 Replies
      4000 Views

      L Replied at

      @yuzukitsuru @tigger 大佬你们点亮了吗?

      8
    • tigger

      A100 + 8723DS 安卓上面点击开WIFI, 发现并没有开起来,控制台提示这个错误信息
      其它全志芯片讨论区 • Posted at • tigger

      0 Votes
      8 Replies
      3033 Views

      tigger Replied at

      8f086275-d8f8-4ded-abb7-d80abe078fef-image.png

      终于搞定: https://www.voycn.com/article/quanzhia33-android44-rtl8723ds-wifibtqudongdiaoshi

      8
    • L

      小白求助,hdmi相关
      MR Series • Posted at • lumen

      0 Votes
      8 Replies
      3134 Views

      L Replied at

      @randolph OK,最近几天事有点多,忙完就整一个😁

      8
    • tigger

      突然发现 D1 / D1s 不支持 GD5F1GQ4UAYIG
      MR Series • Posted at • tigger

      0 Votes
      8 Replies
      3471 Views

      L Replied at

      我用GigaDevice的也遇到了同样的问题,请问解决了吗

      8
    • YuzukiTsuru

      Nezha D1s 教程:使用PhoenixSuit刷写系统
      MR Series • Posted at • 柚木 鉉

      0 Votes
      8 Replies
      3251 Views

      YuzukiTsuru Replied at

      @juggernaut 不能,可以用dfu刷写

      8
    • tigger

      请问烧录软件 phoenixsuit 可以读出A133平板电脑的eMMC固件吗?
      其它全志芯片讨论区 • phoenixsuit • Posted at • tigger

      0 Votes
      8 Replies
      2667 Views

      BedRock Replied at

      太骚了,厂商直呼内行

      8
    • D

      我怀疑我的板子坏了
      MR Series • Posted at • Dingisoul

      0 Votes
      8 Replies
      2496 Views

      D Replied at

      @whycan 感谢,我使用万用表测试一下

      8
    • L

      设备树board.dts问题咨询
      MR Series • Posted at • lumen

      0 Votes
      8 Replies
      3284 Views

      DAIZEBIN Replied at

      @whycan 了解了,感谢晕哥👍

      8
    • L

      T113-S3 CAN模块使用的全部信息
      其它全志芯片讨论区 • t113 can • Posted at • L13819506056

      2 Votes
      8 Replies
      7553 Views

      A Replied at

      @l13819506056 你好 我在《T113-S3_Datasheet_V1.5.pdf》与 《T113-S3_User_Manual_V1.2.pdf》找不到相关的CAN 寄存器说明,请问你是哪里查到的啊?

      8
    • A

      希望全志的大神出一个D1s tina APP怎么引用其他库文件的教程
      MR Series • Posted at • astonzorro

      0 Votes
      8 Replies
      3168 Views

      xiaowenge Replied at

      @gsd_zcm 在 希望全志的大神出一个D1s tina APP怎么引用其他库文件的教程 中说:

      @chengwei_peng 谢谢前辈,讲解的好详细,按照前辈的方法,代码可以正常编译了,下面是我的makefile,可能有些地方不够好,伙伴们可以参考下。

      注释好详细,感谢分享!

      8
    • mangogeek

      完工!MQ-V,基于V853的AI模组,有猫耳朵
      V Series • Posted at • mangogeek

      1 Votes
      8 Replies
      3753 Views

      YuzukiTsuru Replied at

      @mangogeek 华秋太草了

      8
    • weipengyao

      T113跟D1s应该怎么选?
      其它全志芯片讨论区 • Posted at • 痞老板

      0 Votes
      8 Replies
      5505 Views

      J Replied at

      @mangogeek 像d1s那样,搞多点资料,才能让菜鸡好上手t133🤤

      8
    • whycan

      很好奇闲鱼上面这个 【双AC108】模块是用来干嘛的,买了三个研究一下。
      其它全志芯片讨论区 • Posted at • whycan晕哥

      0 Votes
      8 Replies
      2890 Views

      whycan Replied at

      @whycan
      果然是四路麦克风阵列,并且没有喇叭接口:

      http://www.x-powers.com/en.php/Info/product_detail/article_id/41

      8
    • xiaowenge

      全志V853 摄像头初体验
      V Series • Posted at • DOT小文哥

      1 Votes
      8 Replies
      4721 Views

      doniyor_khalilov99 Replied at

      @xiaowenge 在我的SDK中还没有eyeseempp。

      8
    • J

      t133替换开机logo打包提示boot-resource分区内存不足
      其它全志芯片讨论区 • Posted at • Jacky502

      0 Votes
      8 Replies
      3581 Views

      W Replied at

      @yuzukitsuru 在 t133替换开机logo打包提示boot-resource分区内存不足 中说:

      @wyljkl 开机logo是保存在boot-resource分区内的,在Linux系统中挂载这个分区,替换开机logo即可

      你好,为什么挂载不了这个分区,不知道问题出在哪里:
      ae800ad0-999c-436c-a549-7974d283c331-image.png

      8
    • F

      D1H SD卡启动不了
      MR Series • Posted at • frank_yuan

      0 Votes
      8 Replies
      2965 Views

      W Replied at

      @frank_yuan 刷启动卡

      8
    • whycan

      LVGL|lvgl教程之巧用图层(layer)编写模态对话框 (转载)
      GUI • Posted at • whycan晕哥

      3 Votes
      8 Replies
      3544 Views

      gharibi Replied at

      我看過你的很多帖子。 信息非常豐富且鼓舞人心。 首先,如果文字不清楚,我很抱歉,因為我使用的是電子翻譯。

      眾所周知,芯片危機和市場供應的不確定性迫使許多開發商轉向替代解決方案。 對我來說,我相信全志可以做出一個很好的選擇,即使它也很難進入市場,但與其他芯片相比,它仍然更容易採購。

      我正在看哪吒板子上使用的D1-H。 D1-H SOC 的規格非常適合我的項目,但我只是不知道從哪里以及如何開始。 我想知道是否可以在沒有 Linux 的情況下將 D1-H 與 FreeRTOS + LVGL 一起使用。

      另外,如果這裡有人提供使用全志SOC芯片的開發和諮詢服務,我很樂意與他們討論我的項目。

      謝謝你!

      8
    • A

      D1上ST7701S RGB显示绿屏问题
      MR Series • Posted at • alvinlbl

      0 Votes
      8 Replies
      3040 Views

      YuzukiTsuru Replied at

      @ming899 uboot的屏幕 LCD_WRITE_COMMAND 初始化里加一个delay

      //three line 9bit mode static void LCD_WRITE_DATA(u32 value) { u32 i; TL032FWV01_spi_cs_0; TL032FWV01_spi_sdi_1; TL032FWV01_spi_scl_0; sunxi_lcd_delay_us(10); TL032FWV01_spi_scl_1; for (i = 0; i < 8; i++) { sunxi_lcd_delay_us(10); if (value & 0x80) TL032FWV01_spi_sdi_1; else TL032FWV01_spi_sdi_0; value <<= 1; TL032FWV01_spi_scl_0; sunxi_lcd_delay_us(10); TL032FWV01_spi_scl_1; } sunxi_lcd_delay_us(10); TL032FWV01_spi_cs_1; } static void LCD_WRITE_COMMAND(u32 value) { u32 i; sunxi_lcd_delay_ms(10); // 延时一下 TL032FWV01_spi_cs_0; TL032FWV01_spi_sdi_0; TL032FWV01_spi_scl_0; sunxi_lcd_delay_us(10); TL032FWV01_spi_scl_1; for (i = 0; i < 8; i++) { sunxi_lcd_delay_us(10); if (value & 0x80) TL032FWV01_spi_sdi_1; else TL032FWV01_spi_sdi_0; TL032FWV01_spi_scl_0; sunxi_lcd_delay_us(10); TL032FWV01_spi_scl_1; value <<= 1; } sunxi_lcd_delay_us(10); TL032FWV01_spi_cs_1; }
      8
    • J

      请教一下各位大佬,T113 如何进入FEL BOOT?
      T Series • Posted at • jr_online

      0 Votes
      8 Replies
      3627 Views

      N Replied at

      @whycan 请问 EMMC FEL如何进入呢

      8
    • baiwen

      LVGL+NES模拟器
      MR Series • Posted at • 100ask

      3 Votes
      8 Replies
      3512 Views

      B Replied at

      @allwinnertech

      a3f3d476-24df-4a25-a60d-84208aa3edc3-2022年7月27日-lv_100ask_nes_simple_test_pc.gif

      项目仓库:
      https://github.com/100askTeam/lv_lib_100ask/tree/master/src/lv_100ask_nes
      https://gitee.com/weidongshan/lv_lib_100ask/blob/master/src/lv_100ask_nes

      8
    • S

      4.3寸RGB换成7寸RGB
      Linux • Posted at • shz18877605430

      0 Votes
      8 Replies
      3058 Views

      S Replied at

      @shz18877605430 晕哥,不是说要更改uboot得.config吗?但是我没找到改分辨率得地方,现在还是用480*272得分辨率,uboot往内核传参的地方没找到。

      8
    • xiaowenge

      【V853 Tina5.0】一个老坑:如果make -j32编译报错那就make -j1单线程编译试试,说不定就编过了
      V Series • Posted at • DOT小文哥

      0 Votes
      8 Replies
      3543 Views

      T Replied at

      @yuzukitsuru 甚至是buildroot的通病了,不止openwrt🙄

      8
    • S

      LVGL8打开G2D报错
      GUI • Posted at • SpiderZman

      0 Votes
      8 Replies
      4109 Views

      H Replied at

      @spiderzman linux4.9的要怎么改

      8
    • A

      【V853开发板试用】火影忍者结印手势识别器——人人都是copy ninja
      V Series • Posted at • A.I.Unicorn

      2 Votes
      8 Replies
      4350 Views

      M Replied at

      顶顶顶DINGDINGDING

      8
    • jinxiangwzh

      tina linux怎么把摄像头的接口由mipi改为hispi
      其它全志芯片讨论区 • Posted at • jinxiangwzh

      0 Votes
      8 Replies
      2584 Views

      Y Replied at

      设置对应的含义为:

      > status是vin驱动的总开关,对应的是media设备,使用vin时必须设为okay; > csi_top是vin模块的时钟,实际使用时可以根据sensor的帧率和分辨率来设置; > csi_isp是isp模块时钟,实际使用时可以根据sensor的帧率和分辨率来设置; > work_mode: 0:online mode 1:offline mode, 根据使用需求配置; > flash0_type: 0:FLASH_RELATING, 1:FLASH_EN_INDEPEND, 2:FLASH_POWER > flash0_en: flash enable gpio, type = 0 of 1 > flash0_mode: flash mode gpio, type = 0 of 1 > flash0_flvdd: flash module io power handle string, pmu power supply, type = 2 > flash0_flvdd_vol: flash module io power voltage, pmu power supply, type = 2 > status: 是否使用flash, disable代表关,okay代表开 > actuator0_name: vcm name > actuator0_slave: vcm iic slave address > actuator0_af_pwdn: vcm power down gpio > actuator0_afvdd: vcm power handle string, pmu power supply > actuator0_afvdd_vol: vcm power voltage, pmu power supply > status: vcm if used, disable代表关,okay代表开 > device_type: sensor type > sensor0_mname: sensor name > sensor0_twi_cci_id:sensor所使用的twi或者cci的id。 > sensor0_twi_addr:sensor的twi地址 > sensor0_mclk_id:sensor所使用的mclk的id。 > sensor0_pos:sensor的位置,前置还是后置,主要用在平板上。 > sensor0_isp_used: not use isp 1:use isp > sensor0_fmt: 0:yuv 1:bayer raw rgb > sensor0_stby_mode: not shut down power at standby 1:shut down power at standby > sensor0_vflip: flip in vertical direction 0:disable 1:enable > sensor0_hflip: flip in horizontal direction 0:disable 1:enable > sensor0_iovdd-supply: camera module io power handle string, pmu power supply > sensor0_iovdd_vol: camera module io power voltage, pmu power supply > sensor0_avdd-supply: camera module analog power handle string, pmu power supply > sensor0_avdd_vol: camera module analog power voltage, pmu power supply > sensor0_dvdd-supply: camera module core power handle string, pmu power supply > sensor0_dvdd_vol: camera module core power voltage, pmu power supply > sensor0_power_en: camera module power enable gpio > sensor0_reset: camera module reset gpio > sensor0_pwdn: camera module pwdn gpio > sensor0_sm_hs: camera module sm_hs gpio > sensor0_sm_vs: camera module sm_vs gpio > status: open or close sensor device > flash/actautor/sensor节点用于对应的外设的开关和配置。这些节点的配置一般需要参考对应方案的原理图和外设的data sheet来完成。 > vinc0_csi_sel:表示该pipeline上parser的id,必须配置,且为有效id。 > vinc0_mipi_sel:表示该pipeline上mipi(sublvds/hispi)的id,不使用时配置为0xff。 > vinc0_isp_sel:表示该pipeline上isp的id,必须配置,当isp为空时,这个isp只是表示路由不做isp的效果处理。 > vinc0_isp_tx_ch表示该pipeline上isp的ch,必须配置,默认为0。当sensor是bt656多通道或者WDR出RAW时,该ch可以配置0~3的值。 > vinc0_tdm_rx_sel: 表示该pipeline上tdm rx的ch,必须配置,默认为0。当不使用tdm功能时,配置为0xff; > vinc0_rear_sensor_sel表示该pipeline上使用的后置sensor的id。 > vinc0_front_sensor_sel 表示该pipeline上使用的前置sensor的id。 > vinc0_sensor_list表示是否使用sensor_list来时适配不同的模组,1表示使用,0表示不使用。 > work_mode: 0:online mode 1:offline mode, 根据使用需求配置;只有vinc0/4/8/12可以配置。 > status: vipp的使能开关,okay or disable。

      这里提供的是使用设备树方案的配置名称,对于使用 sys_config.fex 的方案可以对照这里的设备树检查,配置项差别不大。hispi与mipi软件上只需要修改sensor驱动,不需要修改 V4L2框架,更不需要读写寄存器。具体方法参考 《Linux_MIPI_CSI_开发指南.pdf》(需要FAE提供)。

      这里提供设备树的配置:

      &vind0 { csi_top = <336000000>; csi_isp = <300000000>; status = "okay"; tdm0:tdm@0 { work_mode = <0>; }; isp00:isp@0 { work_mode = <0>; }; scaler00:scaler@0 { work_mode = <0>; }; scaler10:scaler@4 { work_mode = <0>; }; scaler20:scaler@8 { work_mode = <0>; }; scaler30:scaler@12 { work_mode = <0>; }; actuator0:actuator@0 { device_type = "actuator0"; actuator0_name = "ad5820_act"; actuator0_slave = <0x18>; actuator0_af_pwdn = <>; actuator0_afvdd = "afvcc-csi"; actuator0_afvdd_vol = <2800000>; status = "disabled"; }; flash0:flash@0 { device_type = "flash0"; flash0_type = <2>; flash0_en = <>; flash0_mode = <>; flash0_flvdd = ""; flash0_flvdd_vol = <>; status = "disabled"; }; sensor0:sensor@0 { device_type = "sensor0"; sensor0_mname = "gc2053_mipi"; sensor0_twi_cci_id = <1>; sensor0_twi_addr = <0x6e>; sensor0_mclk_id = <0>; sensor0_pos = "rear"; sensor0_isp_used = <1>; sensor0_fmt = <1>; sensor0_stby_mode = <0>; sensor0_vflip = <0>; sensor0_hflip = <0>; sensor0_iovdd-supply = <&reg_aldo2>; sensor0_iovdd_vol = <1800000>; sensor0_avdd-supply = <&reg_bldo2>; sensor0_avdd_vol = <2800000>; sensor0_dvdd-supply = <&reg_dldo2>; sensor0_dvdd_vol = <1200000>; sensor0_power_en = <>; sensor0_reset = <&pio PA 18 1 0 1 0>; sensor0_pwdn = <&pio PA 19 1 0 1 0>; sensor0_sm_hs = <>; sensor0_sm_vs = <>; flash_handle = <&flash0>; act_handle = <&actuator0>; status = "okay"; }; sensor1:sensor@1 { device_type = "sensor1"; sensor1_mname = "imx386_mipi_2"; sensor1_twi_cci_id = <0>; sensor1_twi_addr = <0x20>; sensor1_mclk_id = <1>; sensor1_pos = "front"; sensor1_isp_used = <1>; sensor1_fmt = <1>; sensor1_stby_mode = <0>; sensor1_vflip = <0>; sensor1_hflip = <0>; sensor1_iovdd-supply = <&reg_aldo2>; sensor1_iovdd_vol = <1800000>; sensor1_avdd-supply = <&reg_bldo2>; sensor1_avdd_vol = <2800000>; sensor1_dvdd-supply = <&reg_dldo2>; sensor1_dvdd_vol = <1200000>; sensor1_power_en = <>; sensor1_reset = <&pio PA 20 1 0 1 0>; sensor1_pwdn = <&pio PA 21 1 0 1 0>; sensor1_sm_hs = <>; sensor1_sm_vs = <>; flash_handle = <>; act_handle = <>; status = "okay"; }; vinc00:vinc@0 { vinc0_csi_sel = <0>; vinc0_mipi_sel = <0>; vinc0_isp_sel = <0>; vinc0_isp_tx_ch = <0>; vinc0_tdm_rx_sel = <0>; vinc0_rear_sensor_sel = <0>; vinc0_front_sensor_sel = <0>; vinc0_sensor_list = <0>; work_mode = <0x0>; status = "okay"; }; vinc01:vinc@1 { vinc1_csi_sel = <2>; vinc1_mipi_sel = <0xff>; vinc1_isp_sel = <1>; vinc1_isp_tx_ch = <1>; vinc1_tdm_rx_sel = <1>; vinc1_rear_sensor_sel = <0>; vinc1_front_sensor_sel = <0>; vinc1_sensor_list = <0>; status = "disabled"; }; vinc02:vinc@2 { vinc2_csi_sel = <2>; vinc2_mipi_sel = <0xff>; vinc2_isp_sel = <2>; vinc2_isp_tx_ch = <2>; vinc2_tdm_rx_sel = <2>; vinc2_rear_sensor_sel = <0>; vinc2_front_sensor_sel = <0>; vinc2_sensor_list = <0>; status = "disabled"; }; vinc03:vinc@3 { vinc3_csi_sel = <0>; vinc3_mipi_sel = <0xff>; vinc3_isp_sel = <0>; vinc3_isp_tx_ch = <0>; vinc3_tdm_rx_sel = <0>; vinc3_rear_sensor_sel = <1>; vinc3_front_sensor_sel = <1>; vinc3_sensor_list = <0>; status = "disabled"; }; ………… };
      8
    • C

      新人新画的853板子,zero尺寸0.45/0.2孔
      V Series • Posted at • ckh123

      3 Votes
      8 Replies
      3942 Views

      L Replied at

      有大佬验证过了么?

      8
    • X

      编译报错
      MR Series • Posted at • x_17866824910

      0 Votes
      8 Replies
      2672 Views

      G Replied at

      请问你最终解决了这个问题了吗,是如何解决的,我也遇到了同样的问题

      8
    • A

      H616 PMU AXP313a Power setting error
      H/F/TV Series • Posted at • allwinner_lf

      0 Votes
      8 Replies
      2945 Views

      L Replied at

      @mangogeek 大佬能不能放一个boot0修改了的文件啊

      8
    • X

      烧写uboot
      MR Series • Posted at • x_17866824910

      0 Votes
      8 Replies
      2850 Views

      whycan Replied at

      @x_17866824910
      find target/ device/ -name defconfig

      8
    • R

      求助T113 Linux 合入CAN 补丁包,编译不通过
      MR Series • Posted at • ricky

      1 Votes
      8 Replies
      3829 Views

      Z Replied at

      @xiaowenge 是tina linux吗?

      8
    • A

      屏幕显示不正确之前4.3寸屏幕是可以的
      MR Series • Posted at • a614547915

      0 Votes
      8 Replies
      2461 Views

      A Replied at

      @evler 那就不清楚了 😥

      8
    • H

      请教spi1 st7789V怎么移植配置开机logo?
      Linux • Posted at • hy123456

      0 Votes
      8 Replies
      3299 Views

      H Replied at

      @allwinnertech 是的就是想在uboot 中配置好,但是没有成功。

      8
    • C

      模型怎么部署到v853板子里
      V Series • Posted at • caochenxin

      0 Votes
      8 Replies
      2944 Views

      L Replied at

      @tianjiangfuzi 那yolov5你编译成功没?

      8
    • W

      sdk下载
      MR Series • Posted at • WB15779898961

      0 Votes
      8 Replies
      3432 Views

      W Replied at

      @lgkgkfg 谢谢,设备树我已经会更新啦

      8
    • L

      请问一下V853的SDK中怎么配置网络啊。
      V Series • Posted at • lk664243752

      0 Votes
      8 Replies
      2496 Views

      L Replied at

      非常感谢,然后我找您的方法,ifconfig 发现eth0没有加载,然后我尝试抓了一下驱动的日志,发现抓不到 gmac的驱动日志,这说明网口真的坏了吗,还有论坛上的出厂测试固件好像和开发板开始自带的固件不一样吧,sdk的默认配置烧出来也跑不了摄像头的sample,tina5.0不带eyesee的组件还需要打npu的补丁?和eyesee的补丁?

      8
    • tianjiangfuzi

      NPU 量化模型速度问题
      V Series • Posted at • tianjiangfuzi

      0 Votes
      8 Replies
      2791 Views

      YuzukiTsuru Replied at

      @tianjiangfuzi 是的,nn只支持uint8, int8,float会被转换到pp计算。nbinfo是一个软件读取解析nb文件的,可以看到他在哪一个核心上运行

      8
    • baiwen

      V853我们来了!!!
      V Series • Posted at • 100ask

      4 Votes
      8 Replies
      3764 Views

      A Replied at

      Tina 4.0:
      tina_v851se-tinyvision_uart0.zip

      Tina 4.0 摄像头测试:
      e8ce3a5d-7cbf-40a3-b16a-1989ce206407-tina_v851se-tinyvision_uart0.zip

      Tina 5.0:
      v851se_linux_tinyvision_uart0_SDNand.zip

      Patch:
      e4350d20-eda5-4ff5-b708-5901f5469aa9-tinyvision_patch.tar.gz

      tinyvision_syterboot.zip

      tinyvision_e907_boot.zip

      71d8a58c-6fe2-4a93-96ee-b12bb883b2e1-摄像头测试固件.img

      d0ef81d9-3893-4c2c-8903-711cf397a3bb-tinyvision.tgz

      CONFIG_ARM=y CONFIG_ARCH_SUNXI=y CONFIG_MACH_SUN8IW21=y CONFIG_SUNXI_GPIO_V2=y #CONFIG_AXP_GPIO=y CONFIG_SYS_CONFIG_NAME="sun8iw21p1" CONFIG_DEFAULT_DEVICE_TREE="sun8iw21p1-soc-system" # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set CONFIG_CONSOLE_MUX=y CONFIG_SUNXI_NECESSARY_REPLACE_FDT=y CONFIG_RESERVE_FDT_SIZE=0x20000 CONFIG_PRE_CONSOLE_BUFFER=n # CONFIG_OF_BOARD=y CONFIG_OF_SEPARATE=y CONFIG_SYS_TEXT_BASE=0x42000000 CONFIG_SUNXI_FDT_ADDR=0x41800000 CONFIG_SUNXI_MALLOC_LEN=0x1400000 # Environment # CONFIG_ENV_IS_IN_SUNXI_FLASH=y # CONFIG_SYS_MAXARGS=64 # CONFIG_SUNXI_REDUNDAND_ENVIRONMENT=y # CONFIG_SYS_REDUNDAND_ENVIRONMENT=y # CONFIG_SUNXI_ENV_PARTITION="env" CONFIG_SUNXI_ENV_BACKUP=y # CONFIG_SUNXI_ENV_REDUNDAND_PARTITION="env-redund" # CONFIG_ENV_SIZE=0x20000 #system CONFIG_ARM_SMCCC=y CONFIG_SUNXI_DMA=y CONFIG_CLK_SUNXI=y #SPI CONFIG_SPI=y CONFIG_SUNXI_SPI=y CONFIG_SPI_USE_DMA=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_WINBOND=y CONFIG_SPI_FLASH_EON=y CONFIG_SPI_FLASH_GIGADEVICE=y CONFIG_SPI_FLASH_ISSI=y CONFIG_SPI_FLASH_MACRONIX=y CONFIG_SPI_FLASH_SPANSION=y CONFIG_SPI_FLASH_ATMEL=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_SPI_FLASH_SST=y CONFIG_SPI_FLASH_PUYA=y CONFIG_SPI_FLASH_FM=y CONFIG_SPI_FLASH_XT=y CONFIG_SPI_FLASH_ADESTO=y CONFIG_SPI_FLASH_XMC=y CONFIG_SPI_SAMP_DL_EN=y CONFIG_SF_DEFAULT_SPEED=50000000 # BIT(12) BIT(13) (SPI_RX_DUAL|SPI_RX_QUAD) CONFIG_SF_DEFAULT_MODE=0x3000 CONFIG_SPINOR_UBOOT_OFFSET=128 CONFIG_SPINOR_LOGICAL_OFFSET=2016 CONFIG_SPINOR_UBOOT_SECURE_OFFSET=128 CONFIG_SPINOR_LOGICAL_SECURE_OFFSET=2200 #axp CONFIG_SYS_I2C_SUNXI=y CONFIG_I2C4_ENABLE=y CONFIG_SYS_SUNXI_I2C4_SLAVE=0x34 CONFIG_SYS_SUNXI_I2C4_SPEED=400000 CONFIG_SUNXI_POWER=y CONFIG_SUNXI_PMU=y CONFIG_SUNXI_BMU=y CONFIG_AXP2101_POWER=y CONFIG_AXP2101_SUNXI_I2C_SLAVE=0x34 #key #CONFIG_SUNXI_PHY_KEY=y #CONFIG_SUNXI_LRADC_KEY=y #crypto driver CONFIG_SUNXI_CE_DRIVER=y CONFIG_SUNXI_CE_23=y #CONFIG_SF_DEFAULT_SPEED=50000000 # BIT(12) BIT(13) (SPI_RX_DUAL|SPI_RX_QUAD) #CONFIG_SF_DEFAULT_MODE=0x3000 # # PWM_SUNXI # CONFIG_PWM_SUNXI=y # CONFIG_PWM_SUNXI_NEW is not set #CONFIG_SPINOR_UBOOT_OFFSET=128 #CONFIG_SPINOR_LOGICAL_OFFSET=2016 # flash CONFIG_SUNXI_SDMMC=y CONFIG_MMC=y CONFIG_SUNXI_FLASH=y CONFIG_SUNXI_NAND=y CONFIG_SUNXI_UBIFS=y CONFIG_SUNXI_COMM_NAND_V1=y CONFIG_SUNXI_SPINOR=y #usb otg config CONFIG_SUNXI_USB=y CONFIG_SUNXI_EFEX=y CONFIG_SUNXI_BURN=y CONFIG_SUNXI_FASTBOOT=y #partition CONFIG_EFI_PARTITION=y #image CONFIG_ANDROID_BOOT_IMAGE=y #sprite CONFIG_SUNXI_SPRITE=y CONFIG_SUNXI_SECURE_STORAGE=y CONFIG_SUNXI_SPRITE_CARTOON=y #secure feature CONFIG_SUNXI_SECURE_BOOT=y CONFIG_SUNXI_IMAGE_VERIFIER=y CONFIG_SUNXI_KEYBOX=y CONFIG_SUNXI_DRM_SUPPORT=y CONFIG_SUNXI_EXTERN_SECURE_MM_LAYOUT=y CONFIG_SUNXI_HOMLET=y CONFIG_SUNXI_HDCP_HASH=y CONFIG_SUNXI_HDCP_IN_SECURESTORAGE=y #cmd CONFIG_CMD_SUNXI_TIMER=y CONFIG_CMD_SUNXI_SPRITE=y CONFIG_CMD_SUNXI_EFEX=y CONFIG_CMD_SUNXI_BURN=y CONFIG_CMD_GPT=y CONFIG_CMD_FAT=y CONFIG_CMD_FASTBOOT=y CONFIG_CMD_SUNXI_DMA=y CONFIG_CMD_SUNXI_CLK=y CONFIG_CMD_SUNXI_MEMTEST=y CONFIG_CMD_PART=y CONFIG_CMD_SUNXI_AUTO_FEL=n CONFIG_CMD_SUNXI_BOOTR=y #arisc #CONFIG_SUNXI_ARISC_EXIST=y # CONFIG_SUNXI_INITRD_ROUTINE is not set #dsp #CONFIG_XTENSA_DSP=y #riscv #CONFIG_RISCV_E907=y CONFIG_SUNXI_ARM_SOFT_FP=y CONFIG_USE_PRIVATE_LIBGCC=y # # BOOT GUI # CONFIG_BOOT_GUI=y # CONFIG_UPDATE_DISPLAY_MODE is not set # CONFIG_CONFIG_LCD_CHECK_SKIP_OPEN is not set # CONFIG_BOOT_GUI_DOUBLE_BUF is not set # CONFIG_BOOT_GUI_TEST is not set # # SUNXI LOGO DISPLAY # CONFIG_CMD_SUNXI_BMP=y # CONFIG_SUNXI_SPINOR_BMP is not set # CONFIG_ENABLE_ADVERT_PICTURE is not set # CONFIG_SUNXI_SPINOR_JPEG is not set # CONFIG_CMD_SUNXI_JPEG is not set CONFIG_DISP2_SUNXI=y # CONFIG_HDMI_DISP2_SUNXI is not set # CONFIG_HDMI2_DISP2_SUNXI is not set # CONFIG_VDPO_DISP2_SUNXI is not set # CONFIG_TV_DISP2_SUNXI is not set # CONFIG_EDP_DISP2_SUNXI is not set # CONFIG_EINK200_SUNXI is not set # # LCD panels select # # CONFIG_LCD_SUPPORT_GG1P4062UTSW is not set # CONFIG_LCD_SUPPORT_DX0960BE40A1 is not set # CONFIG_LCD_SUPPORT_TFT720X1280 is not set # CONFIG_LCD_SUPPORT_FD055HD003S is not set # CONFIG_LCD_SUPPORT_HE0801A068 is not set # CONFIG_LCD_SUPPORT_ILI9341 is not set # CONFIG_LCD_SUPPORT_LH219WQ1 is not set # CONFIG_LCD_SUPPORT_LS029B3SX02 is not set # CONFIG_LCD_SUPPORT_LT070ME05000 is not set # CONFIG_LCD_SUPPORT_S6D7AA0X01 is not set # CONFIG_LCD_SUPPORT_T27P06 is not set # CONFIG_LCD_SUPPORT_TFT720x1280 is not set # CONFIG_LCD_SUPPORT_WTQ05027D01 is not set # CONFIG_LCD_SUPPORT_H245QBN02 is not set # CONFIG_LCD_SUPPORT_ST7789V is not set # CONFIG_LCD_SUPPORT_ST7796S is not set # CONFIG_LCD_SUPPORT_ST7701S is not set # CONFIG_LCD_SUPPORT_T30P106 is not set # CONFIG_LCD_SUPPORT_TO20T20000 is not set # CONFIG_LCD_SUPPORT_FRD450H40014 is not set # CONFIG_LCD_SUPPORT_S2003T46G is not set # CONFIG_LCD_SUPPORT_WILLIAMLCD is not set # CONFIG_LCD_SUPPORT_LQ101R1SX03 is not set # CONFIG_LCD_SUPPORT_INET_DSI_PANEL is not set # CONFIG_LCD_SUPPORT_WTL096601G03 is not set # CONFIG_LCD_SUPPORT_BP101WX1 is not set # CONFIG_LCD_SUPPORT_M133X56 is not set # CONFIG_LCD_SUPPORT_K101IM2QA04 is not set # CONFIG_LCD_SUPPORT_K101IM2BYL02L is not set # CONFIG_LCD_SUPPORT_FX070 is not set # CONFIG_LCD_SUPPORT_M101B31 is not set # CONFIG_LCD_SUPPORT_CC08021801_310_800X1280 is not set # CONFIG_LCD_SUPPORT_KD101NA5 is not set # CONFIG_LCD_SUPPORT_KD070D57 is not set # CONFIG_LCD_SUPPORT_ZS080NI4003E7H3H_A is not set # CONFIG_LCD_SUPPORT_K080_IM2HYL802R_800X1280 is not set # CONFIG_LCD_SUPPORT_K101_IM2BYL02_L_800X1280 is not set # CONFIG_LCD_SUPPORT_JD9366AB_3 is not set # CONFIG_LCD_SUPPORT_TFT08006 is not set CONFIG_LCD_SUPPORT_ST7701S_G5=y CONFIG_LCD_SUPPORT_T050K589=y CONFIG_LCD_SUPPORT_JD9161Z_MIPI=y CONFIG_LCD_SUPPORT_ICN6202=y # # Display engine feature select # # CONFIG_DISP2_SUNXI_SUPPORT_SMBL is not set # CONFIG_DISP2_SUNXI_SUPPORT_ENAHNCE is not set # CONFIG_SUNXI_TV_FASTLOGO is not set # CONFIG_SUNXI_FASTLOGO_JPEG is not set
      8
    • N

      V853 buildroot系统,SPI通信超时
      V Series • Posted at • Negro

      2 Votes
      8 Replies
      3516 Views

      F Replied at

      来个教程啊来个教程啊

      8
    • L

      D1s neza V1.1的SDK
      MR Series • Posted at • litengos

      0 Votes
      8 Replies
      2876 Views

      Q Replied at

      @whycanservice 三剋有

      8
    • Z

      禁用spi0就进不了系统了 这个要怎么设置? 求帮忙
      MR Series • Posted at • zcxhappy

      0 Votes
      8 Replies
      3086 Views

      Z Replied at

      @lyscut 要在哪里设置呢?

      8
    • Q

      D1S驱动MIPI屏幕怎么设置?求大佬帮助
      MR Series • Posted at • q2022

      0 Votes
      8 Replies
      4119 Views

      X Replied at

      @xiaochusheng
      mipi点亮大佬方便指导下吗,q951196174

      8
    • J

      调试 t113_whycanpii-tina 方案的 mipi 显示问题
      其它全志芯片讨论区 • Posted at • Justyu666

      0 Votes
      8 Replies
      3595 Views

      whycan Replied at

      @justyu666
      可能C库不一致,上面SDK里面有一个是 glibc, 有一个是musl。

      8
    • F

      初入贵圈想用全志的方案开发一个简单的运动相机
      MR Series • Posted at • frankisme

      0 Votes
      8 Replies
      3427 Views

      B Replied at

      @frankisme V85X

      8
    • Z

      F133挂载点错误
      MR Series • Posted at • ZM12138

      0 Votes
      8 Replies
      3335 Views

      Z Replied at

      @whycan 这些我真的改了,现在搞不明白,目前mmc2和uart0不冲突,为什么mmc2 not
      found ,另外内核启动介质是在sys_config.fex里面配的吗?

      8
    • Y

      melis4.0如何适配新的LCD屏,请教大佬
      MR Series • Posted at • yuan123

      0 Votes
      8 Replies
      3943 Views

      S Replied at

      @yuan123 今天才看到,搞定了没,加我qq 491532763

      8
    • YuzukiTsuru

      V85x E907 小核开发与使用
      V Series • Posted at • 柚木 鉉

      15 Votes
      8 Replies
      4688 Views

      WhycanService Replied at

      @sofia 考虑被Linux接管了,具体查看寄存器情况

      8
    • W

      全志T113 不能同时开启4G和CAN网络
      Linux • Posted at • weichengjie

      0 Votes
      8 Replies
      3593 Views

      W Replied at

      @weichengjie T113 上同时开启CAN0,CAN1,及4G通信。都是正常的。原来使用CAN0就影响到4G模块的原因找到了。是在设备树文件上,USB的节点里有PB3的定义。去掉就正常。
      U.png

      8
    • gharibi

      D1-H 开发板哪吒开发板原理图和PCB在哪里可以下载?
      MR Series • Posted at • gharibi

      0 Votes
      8 Replies
      3217 Views

      xiaowenge Replied at

      立创EDA开源,可以直接在线看,在线修改,在线下单打板:https://oshwhub.com/kirin1874/d1-h-nezha-kai-fa-ban

      8
    • W

      请问一下,f133的Tina系统可以点1920x1080分辨率的mipi接口屏吗?
      MR Series • Posted at • wyljkl

      0 Votes
      8 Replies
      3074 Views

      H Replied at

      @wyljkl 您好请问,我这边是lvds转edp,用的ncs8801这个芯片初始化放在哪里去做,求帮助

      8
    • zznzzn

      支持DDR4的芯片(如H616)想用DDR3时引脚该怎么接
      其它全志芯片讨论区 • Posted at • zznzzn

      0 Votes
      8 Replies
      3146 Views

      M Replied at

      @bayche 在 支持DDR4的芯片(如H616)想用DDR3时引脚该怎么接 中说:

      方便接线内存重新排布的

      微信图片_20230406085013.jpg

      请问,关于DDR地址线(SA0~SA16)这一块引脚的复用配置,有文档说明吗

      8
    • L

      T113-s3外接以太网调试,简单的外围电路是否有问题
      其它全志芯片讨论区 • Posted at • lucky123456

      0 Votes
      8 Replies
      2476 Views

      L Replied at

      @whycan 可以了,会丢包,丢包可能是飞线的原因,之前同事没有把crs接到pe0,phy芯片的crs直接拉低了。用内部时钟和外部晶振都能起来了。感谢🙏

      8
    • H

      R528-s3点7.84" MIPI屏
      其它全志芯片讨论区 • Posted at • HQEmbed

      0 Votes
      8 Replies
      4553 Views

      H Replied at

      X宝:
      https://item.taobao.com/item.htm?spm=a21dvs.23580594.0.0.621e3d0dEqzx36&ft=t&id=717636922774

      8
    • zznzzn

      T113用gui-guider生成lvgl只显示一点内容
      GUI • Posted at • zznzzn

      0 Votes
      8 Replies
      3551 Views

      H Replied at

      @name_10____231
      好像是g2d有问题,在makefile中把g2d关了我就正常了
      710883ee-2446-423b-ab24-89a92685f9a5-image.png

      8
    • T

      没有gpiochipX文件
      MR Series • Posted at • t1290

      0 Votes
      8 Replies
      2554 Views

      T Replied at

      @whycan 还是没有gpiochipX,是这个样子吗b8bdee45-7d5b-4ef0-996b-5c268e843e4d-image.png

      8
    • L

      D1S移植SDL1.2.15版本
      爱搞机专区 • Posted at • lovexulu

      5 Votes
      8 Replies
      4364 Views

      D Replied at

      @dyufeimen 问题解决了,自我回复一下!缺少libasound是因为在package/multimedia/sdl路径下的Malefile中缺少依赖,增加DEPENDS:=+alsa-lib即可解决。
      当然也可以disable-alsa也可以解决此报错问题

      8
    • T

      V851SE 以太网MAC地址每次重启后会随机变化。
      V Series • Posted at • tanlining

      0 Votes
      8 Replies
      2637 Views

      whycan Replied at

      @tanlining
      感谢分享宝贵经验。

      8
    • J

      D1-H千兆网络丢包问题
      MR Series • Posted at • jxzhb

      0 Votes
      8 Replies
      3156 Views

      whycan Replied at

      @jxzhb 在 D1-H千兆网络丢包问题 中说:

      @axw_fae
      262c26d1-b244-490a-9d57-5c4e269a5285-image.png
      按这修改已经解决了

      感谢两位分享宝贵经验! @axw_fae @jxzhb

      8
    • hsinyuwang

      萌新自制GBA游戏机(第二弹)
      爱搞机专区 • Posted at • hsinyuwang

      1 Votes
      8 Replies
      3506 Views

      xiaowenge Replied at

      想买。。。求量产

      以及 有没有结构设计的大佬,求帮忙设计一个酷炫的外壳

      8
    • U

      华为/小米 智能插座
      灌水区 • Posted at • ubuntu

      0 Votes
      8 Replies
      2850 Views

      U Replied at

      @whycan 在 华为/小米 智能开关 中说:

      这两天研究了一下办公室的小米智能开关,不用楼主那样一个一个设置,只要开启一个定时任务就可以了:

      谢谢谢谢,这个功能真是测试神器!

      8
    • F

      D1芯片无法启动
      MR Series • Posted at • furyfangyu

      0 Votes
      8 Replies
      3614 Views

      K Replied at

      @furyfangyu 你好,我也遇到了你同样的问题,你说的是配置导致的,能详细指导下吗?
      我参考的以下资料:
      boot0:
      boot0.png

      uboot:
      uboot.png

      log:
      log.png

      8
    • H

      V853s如何实现UI图层和视频图层同时用
      V Series • Posted at • hzhy1234

      1 Votes
      8 Replies
      3043 Views

      T Replied at

      @whycan 晕哥你好,请问如何实现lvgl和底层视频带透明度的叠加,可以提供一点思路吗

      8
    • C

      T113 tina musl qt 虚拟键盘 cpu占用异常,尝试glibc编译qt无法运行,求大佬指点
      Linux • Posted at • cslg_wangjian

      0 Votes
      8 Replies
      2956 Views

      C Replied at

      cpu空闲占用高的情况换用glibc编译后也正常了,看来这个sdk里面的musl库还是有些bug的,也听大佬说改用官方最新版本的musl库可能也会好。glibc编译搞定了就不折腾这个musl了,感觉还是glibc靠谱吧。

      8
    • S

      求v853使用OpenCL对图片和视频编解码例子
      V Series • Posted at • sunxi

      0 Votes
      8 Replies
      2604 Views

      A Replied at

      @sunxi 是独立的视频引擎编码,不使用CPU也不使用NPU

      8
    • W

      关于V851S的LCD 5.5寸MIPI屏幕驱动分享
      V Series • Posted at • wellschan

      3 Votes
      8 Replies
      4687 Views

      T Replied at

      @wellschan 在 关于V851S的LCD 5.5寸MIPI屏幕驱动分享 中说:

      @zuoyi 你好,这个屏幕支持2 LANE的,可以在全志的设备树里面设置为2 LANE,同时驱动初始化代码里面将默认的命令:BA 33 81 05 F9 0E 0E 20 00 00 00 00 00 00 00 44 25 00 91 0A 00 00 02 4F C1 00 00 37
      改为:BA 31 81 05 F9 0E 0E 20 00 00 00 00 00 00 00 44 25 00 91 0A 00 00 02 4F C1 00 00 37

      可以查阅屏幕IC手册的命令:BA
      里面有表格介绍:
      d78eddc4-4dcc-4b87-8c15-eef378e1d30a-image.png

      你好,原来是3lane通信,现在修改成2lane通信,除了修改设备树3lane->2lane 和 BA寄存器,其他地方还用修改吗,比如时钟等等

      8
    • X

      请教,Linux Preempt-RT 开 iperf3 -s 后系统卡死应该如何调试
      Linux • Posted at • 默

      0 Votes
      8 Replies
      2853 Views

      X Replied at

      已放弃,勿回复。

      8
    • C

      R128 打包失败 merge_full_rtos_img_failed
      MR Series • Posted at • cai_yp

      1 Votes
      8 Replies
      4164 Views

      J Replied at

      我也遇到了这种情况,是没有安装busybox的原因,安装完就好了。

      8
    • L

      D1s DMA驱动Ledc 问题
      MR Series • Posted at • leomini5

      0 Votes
      8 Replies
      2982 Views

      A Replied at

      使用dma模式搬运数据,需要打上如下补丁:

      ledc在dma模式的代码存在问题,已修复该问题,ledc的dma通道之前也没有支持,需要添加上

      diff --git a/hal/source/dma/platform/dma-sun8iw20.h b/hal/source/dma/platform/dma-sun8iw20.h index 2140014..fc5c72e 100644 --- a/hal/source/dma/platform/dma-sun8iw20.h +++ b/hal/source/dma/platform/dma-sun8iw20.h @@ -136,6 +136,7 @@ #define DRQDST_OTG_EP3 32 #define DRQDST_OTG_EP4 33 #define DRQDST_OTG_EP5 34 +#define DRQDST_LEDC 42 #define DRQDST_TWI0_TX 43 #define DRQDST_TWI1_TX 44 #define DRQDST_TWI2_TX 45 diff --git a/hal/source/ledc/hal_ledc.c b/hal/source/ledc/hal_ledc.c index 5499452..ddf471f 100755 --- a/hal/source/ledc/hal_ledc.c +++ b/hal/source/ledc/hal_ledc.c @@ -20,9 +20,10 @@ #define led_err(fmt, args...) printf("%s()%d - "fmt, __func__, __LINE__, ##args) #define LEDC_PIN_SLEEP 0 +#define LEDC_DMA_BUF_SIZE 4096 struct ledc_config ledc_config = { - .led_count = 3, + .led_count = 1024, .reset_ns = 84, .t1h_ns = 800, .t1l_ns = 450, @@ -37,6 +38,7 @@ static unsigned long base_addr = LEDC_BASE; struct sunxi_dma_chan *dma_chan; struct sunxi_led *led; +static uint8_t already_init; static hal_irqreturn_t sunxi_ledc_irq_handler(void *dummy) { @@ -448,15 +450,16 @@ void hal_ledc_dma_callback(void *para) { - printf("dma callback\n"); + ledc_info("dma transfer end\n"); } -void hal_ledc_trans_data(struct ledc_config *ledc) +int hal_ledc_trans_data(struct ledc_config *ledc) { - int i; + int i, ret; unsigned long int size; unsigned int mask = 0; struct dma_slave_config slave_config; + unsigned int const *buf = ledc->data; mask = LEDC_TRANS_FINISH_INT_EN | LEDC_WAITDATA_TIMEOUT_INT_EN | LEDC_FIFO_OVERFLOW_INT_EN | LEDC_GLOBAL_INT_EN; @@ -480,23 +483,32 @@ ledc_reset_en(); size = ledc->length * 4; + if (size <= LEDC_DMA_BUF_SIZE) { + memcpy(ledc->align_dma_buf, buf, ledc->length); + buf = ledc->align_dma_buf; + } - hal_dcache_clean((unsigned long)ledc->data, sizeof(ledc->data)); + hal_dcache_clean((unsigned long)buf, size); slave_config.direction = DMA_MEM_TO_DEV; - slave_config.src_addr = (unsigned long)(ledc->data); + slave_config.src_addr = (unsigned long)buf; slave_config.dst_addr = (uint32_t)(base_addr + LEDC_DATA_REG); slave_config.src_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; slave_config.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; - slave_config.src_maxburst = DMA_SLAVE_BURST_16; - slave_config.dst_maxburst = DMA_SLAVE_BURST_16; + slave_config.src_maxburst = DMA_SLAVE_BURST_4; + slave_config.dst_maxburst = DMA_SLAVE_BURST_4; slave_config.slave_id = sunxi_slave_id(DRQDST_LEDC, DRQSRC_SDRAM); - hal_dma_slave_config(dma_chan, &slave_config); + ret = hal_dma_slave_config(dma_chan, &slave_config); + if (ret) { + led_err("dma slave config failed\n"); + return -1; + } - hal_dma_prep_device(dma_chan, slave_config.dst_addr, slave_config.src_addr, size, DMA_MEM_TO_DEV); - - //dma_chan->callback = ledc_dma_callback; - hal_dma_start(dma_chan); + ret = hal_dma_prep_device(dma_chan, slave_config.dst_addr, slave_config.src_addr, size, DMA_MEM_TO_DEV); + if (ret) { + led_err("dma prep device failed\n"); + return -1; + } hal_ledc_set_time(ledc); ledc_set_output_mode(ledc->output_mode); @@ -504,7 +516,15 @@ ledc_set_dma_mode(); ledc_enable_irq(mask); ledc_enable(); + + dma_chan->callback = hal_ledc_dma_callback; + ret = hal_dma_start(dma_chan); + if (ret) { + led_err("dma start trans failed\n"); + return -1; + } } + return 0; } void hal_ledc_clear_all_irq(void) @@ -598,6 +618,14 @@ int hal_ledc_init(void) { + if (already_init) { + already_init++; + ledc_info("ledc has been inited, return ok\n"); + return 0; + } + + int ret, i; + ledc_info("hal_led_init\n"); led = malloc(sizeof(struct sunxi_led)); @@ -611,25 +639,40 @@ led->config.data = malloc(sizeof(unsigned int) * led->config.led_count); if (NULL == led->config.data) { led_err("sunxi led config data malloc err\n"); - goto err1; + goto err0; } + for(i = 0;i < led->config.led_count;i++) + led->config.data[i] = 0; if (ledc_clk_init()) { led_err("ledc clk init failed \n"); + goto err1; } if (ledc_pinctrl_init()) { led_err("ledc pinctrl init failed \n"); + goto err2; } - hal_dma_chan_request(&dma_chan); + ret = hal_dma_chan_request(&dma_chan); + if (ret == HAL_DMA_CHAN_STATUS_BUSY) + { + led_err("request dma_chan failed\n"); + goto err3; + } + led->config.align_dma_buf = dma_alloc_coherent(LEDC_DMA_BUF_SIZE); + if (!led->config.align_dma_buf) + { + led_err("alloc dma memory failed\n"); + goto err4; + } if (hal_request_irq(SUNXI_IRQ_LEDC, sunxi_ledc_irq_handler, "ledc", led) < 0) { led_err("ledc request irq failed \n"); - goto errirq; + goto err5; } hal_enable_irq(SUNXI_IRQ_LEDC); @@ -638,13 +681,22 @@ pm_devops_register(&pm_ledc); #endif + already_init++; ledc_info("hal_led_init success\n"); return 0; -errirq: - free(led->config.data); +err5: + dma_free_coherent(led->config.align_dma_buf); +err4: + hal_dma_chan_free(dma_chan); +err3: + ledc_pinctrl_exit(); +err2: + ledc_clk_exit(); err1: + free(led->config.data); +err0: free(led); return -1; @@ -652,27 +704,35 @@ void hal_ledc_deinit(void) { + if (already_init > 0) { + if (--already_init == 0) { #ifdef CONFIG_COMPONENTS_PM - pm_devops_unregister(&pm_ledc); + pm_devops_unregister(&pm_ledc); #endif - hal_disable_irq(SUNXI_IRQ_LEDC); - hal_free_irq(SUNXI_IRQ_LEDC); - hal_dma_chan_free(dma_chan); - ledc_pinctrl_exit(); - ledc_clk_exit(); - free(led->config.data); - free(led); + hal_disable_irq(SUNXI_IRQ_LEDC); + hal_free_irq(SUNXI_IRQ_LEDC); + dma_free_coherent(led->config.align_dma_buf); + hal_dma_chan_free(dma_chan); + ledc_pinctrl_exit(); + ledc_clk_exit(); + free(led->config.data); + free(led); + } + } } int sunxi_set_all_led(unsigned int brightness) { - int i; + int i, ret; led->config.length = led->config.led_count; for(i = 0;i < led->config.led_count;i++) led->config.data[i] = brightness; - hal_ledc_trans_data(&led->config); + ret = hal_ledc_trans_data(&led->config); + if (ret) { + led_err("ledc trans data error\n"); + } return 0; } @@ -680,6 +740,7 @@ int sunxi_set_led_brightness(int led_num, unsigned int brightness) { u32 reg_val; + int i, ret; if (NULL == led) { led_err("err : ledc is not init\n"); @@ -691,10 +752,16 @@ return -1; } - led->config.length = 1; + led->config.length = led_num; led->config.data[led_num-1] = brightness; - hal_ledc_trans_data(&led->config); + for (i = 0; i < led_num; i++) + ledc_info("the %d led light is %u\n", i + 1, led->config.data[i]); + + ret = hal_ledc_trans_data(&led->config); + if (ret) { + led_err("ledc trans data error\n"); + } reg_val = hal_ledc_get_irq_status(); ledc_info("ledc interrupt status reg is %x", reg_val); diff --git a/hal/source/ledc/platform_ledc.h b/hal/source/ledc/platform_ledc.h index 39f6933..2fa9c38 100644 --- a/hal/source/ledc/platform_ledc.h +++ b/hal/source/ledc/platform_ledc.h @@ -33,8 +33,6 @@ #ifndef __PLATFORM_LEDC_H__ #define __PLATFORM_LEDC_H__ -#define DRQDST_LEDC 43 - #if defined(CONFIG_ARCH_SUN8IW18P1) #include "platform/ledc_sun8iw18.h" #endif diff --git a/hal/test/ledc/test_ledc.c b/hal/test/ledc/test_ledc.c index 1ade796..79694c0 100755 --- a/hal/test/ledc/test_ledc.c +++ b/hal/test/ledc/test_ledc.c @@ -20,6 +20,7 @@ int ledc_test(int argc, char **argv) { int brightness = 0; + int led_num; printf("========LEDC TEST========\n"); @@ -32,9 +33,14 @@ return 0; } - brightness = atoi(argv[2]); + led_num = atoi(argv[1]); + if (led_num < 1 || led_num > 1024) + { + printf("The led_num you entered should be between 1 and 1024\n"); + } + brightness = atoi(argv[3]); - switch(argv[1][0]) + switch(argv[2][0]) { case 'R' : brightness <<= 8; break; case 'G' : brightness <<= 16; break; @@ -43,7 +49,8 @@ return -1; } - sunxi_set_led_brightness(1, brightness); + sunxi_set_led_brightness(led_num, brightness); + printf("led is %d\n", led_num); printf("brightness is %d\n", brightness); return 0; diff --git a/include/hal/sunxi_hal_ledc.h b/include/hal/sunxi_hal_ledc.h index a386338..e5a70d1 100644 --- a/include/hal/sunxi_hal_ledc.h +++ b/include/hal/sunxi_hal_ledc.h @@ -43,6 +43,7 @@ unsigned long long wait_time1_ns; unsigned int wait_data_time_ns; char *output_mode; + unsigned int *align_dma_buf; unsigned int *data; unsigned int length; }; @@ -86,7 +87,7 @@ int hal_ledc_init(void); void hal_ledc_deinit(void); -void hal_ledc_trans_data(struct ledc_config *ledc); +int hal_ledc_trans_data(struct ledc_config *ledc); void hal_ledc_clear_all_irq(void); unsigned int hal_ledc_get_irq_status(void); void hal_ledc_dma_callback(void *para);

      DMA下 LED 颜色异常

      diff --git a/hal/source/ledc/hal_ledc.c b/hal/source/ledc/hal_ledc.c index ddf471f4..8d818662 100755 --- a/hal/source/ledc/hal_ledc.c +++ b/hal/source/ledc/hal_ledc.c @@ -308,11 +308,15 @@ static void ledc_set_wait_data_time_ns(unsigned int wait_data_time_ns) hal_writel(reg_val, base_addr + LEDC_DATA_FINISH_CNT_REG); } +/* + * set the num of leds on the led-strip + * max support up to 1024 leds + */ static void ledc_set_length(unsigned int length) { unsigned int reg_val; - if (length == 0) + if (length == 0 || length > 1024) return; reg_val = hal_readl(base_addr + LEDC_CTRL_REG); @@ -721,12 +725,22 @@ void hal_ledc_deinit(void) } } -int sunxi_set_all_led(unsigned int brightness) +/* + * set the brightness of all the leds in led-strip to a uniform value + * @length: the num of leds on led-strip + * @brightness: the brightness data + */ +int sunxi_set_all_led(unsigned int length, unsigned int brightness) { int i, ret; - led->config.length = led->config.led_count; - for(i = 0;i < led->config.led_count;i++) + if (length > led->config.led_count) { + led_err("%d: max support 1024 leds\n", length); + return -1; + } + + led->config.length = length; + for(i = 0;i < led->length;i++) led->config.data[i] = brightness; ret = hal_ledc_trans_data(&led->config); @@ -737,7 +751,13 @@ int sunxi_set_all_led(unsigned int brightness) return 0; } -int sunxi_set_led_brightness(int led_num, unsigned int brightness) +/* + * set the brightness of each led on the led strip + * @length: all the num of leds on the led strip + * @led_num: the specified led that you want to set + * @brightness: the led brightness data + */ +int sunxi_set_led_brightness(unsigned int length, unsigned int led_num, unsigned int brightness) { u32 reg_val; int i, ret; @@ -747,12 +767,13 @@ int sunxi_set_led_brightness(int led_num, unsigned int brightness) return -1; } - if (led_num > led->config.led_count) { + if (length > led->config.led_count || len_num > length) { led_err("has not the %d led\n", led_num); return -1; } - led->config.length = led_num; + led->config.length = length; + /* set the specified led brightness, others set default brightness: 0x0*/ led->config.data[led_num-1] = brightness; for (i = 0; i < led_num; i++)
      8
    • S

      【T113 S3】【spi驱动】【DMA 连续内存分配】【dma_alloc_coherent】【失败】
      其它全志芯片讨论区 • Posted at • shiguojie1989

      0 Votes
      8 Replies
      3426 Views

      S Replied at

      @awwwwa 老师你好,这个驱动还有个问题:中断只能响应40us以上的高电平才会执行中断,但是我的驱动里面中断函数里面是上升沿触发。我看教程是通过设备树来设置,是因为我是驱动程序里面设置,没有成功吗?还是有其他因素呢?
      中断注册部分代码是:

      ret = request_threaded_irq(fsfpgaindev.irq_num, irq_gpio_spi_handler,irq_gpio_spi_thread_func,IRQF_TRIGGER_RISING, "irq_gpio", &fsfpgaindev); if(0 > ret) { printk("request_irq error\r\n"); goto fail_irq; } else { printk("fsfpgain irq_num:%d\n",fsfpgaindev.irq_num); }
      8

    精华推荐

    • 【水经验混下载权限专用贴】如何升级LV2拉取SDK
    • T113/D1-H (MQ-Pro)驱动 OV5640 摄像头(内含驱动源码)
    • 全志在线开源芯片 新 SDK 平台下载方法汇总
    • 新 SDK 平台下载 D1-H/D1s SDK
    • 新 SDK 平台下载 V853 SDK
    • 新 SDK 平台下载 R329 SDK
    • 新 SDK 平台下载 MR813 SDK
    • 新 SDK 平台下载 XR806 SDK
    • D1s 哪吒开发板,电阻屏的配置方法
    • [哪吒开发板]Tina Linux SPI主从通信验证实录
    • T113-S3入门资料汇总(避坑指南)一
    • 【加精】D1 tina Docker 编译环境制作和使用
    • Tina Linux 存储介质切换:eMMC,SPI NAND,SPI NOR,SD Card,SD NAND
    • 【资料】V853&&V851 硬件参考设计
    • 【资料汇总】V853资料汇总
    换一批

    随便看看

    • linux 方案 tplayerdemo 播放会出现没有声音的情况
    • h618刷机用固件以后mac地址全部一样 付费解决
    • 在V853上进行Opencv库的编译步骤
    • openwrt 添加 Demo for v853 board 编译 camera 测试软件,出现libunwind库冲突
    • r818平台下 android sdk 烧录问题
    • melis2.0 烧入问题
    • 上FS35QA002后Uboot没有识别
    • V853 关于网络模型是多输入
    • D1S是否有调好的GC2145/OV2640摄像头驱动,手头摄像头想测试下
    • xr829模块wifi使用sdc1初始化报错
    • F1200s hciconfig等蓝牙工具无法使用
    • AloT未来发展可期,细分领域中,MCU需求方兴未艾
    • D1烧写usb断开
    • uboot命令行模式
    • 如何用D1 点亮 w2812b?
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 60
    • 61
    • 6 / 61

    精华推荐

    • 【水经验混下载权限专用贴】如何升级LV2拉取SDK
    • T113/D1-H (MQ-Pro)驱动 OV5640 摄像头(内含驱动源码)
    • 全志在线开源芯片 新 SDK 平台下载方法汇总
    • 新 SDK 平台下载 D1-H/D1s SDK
    • 新 SDK 平台下载 V853 SDK
    • 新 SDK 平台下载 R329 SDK
    • 新 SDK 平台下载 MR813 SDK
    • 新 SDK 平台下载 XR806 SDK
    • D1s 哪吒开发板,电阻屏的配置方法
    • [哪吒开发板]Tina Linux SPI主从通信验证实录
    • T113-S3入门资料汇总(避坑指南)一
    • 【加精】D1 tina Docker 编译环境制作和使用
    • Tina Linux 存储介质切换:eMMC,SPI NAND,SPI NOR,SD Card,SD NAND
    • 【资料】V853&&V851 硬件参考设计
    • 【资料汇总】V853资料汇总
    换一批

    随便看看

    • linux 方案 tplayerdemo 播放会出现没有声音的情况
    • h618刷机用固件以后mac地址全部一样 付费解决
    • 在V853上进行Opencv库的编译步骤
    • openwrt 添加 Demo for v853 board 编译 camera 测试软件,出现libunwind库冲突
    • r818平台下 android sdk 烧录问题
    • melis2.0 烧入问题
    • 上FS35QA002后Uboot没有识别
    • V853 关于网络模型是多输入
    • D1S是否有调好的GC2145/OV2640摄像头驱动,手头摄像头想测试下
    • xr829模块wifi使用sdc1初始化报错
    • F1200s hciconfig等蓝牙工具无法使用
    • AloT未来发展可期,细分领域中,MCU需求方兴未艾
    • D1烧写usb断开
    • uboot命令行模式
    • 如何用D1 点亮 w2812b?