专栏底层软件[J6E IPC] soc使用sample ipc demo 时候,接受线程超时

[J6E IPC] soc使用sample ipc demo 时候,接受线程超时

已解决
卖报小郎君2024-08-19
201
29

1. 硬件获取渠道及型号:

SIP 板+自研板,J6E

2. 系统镜像版本:

地平线释放基线730

3. 问题模块:

IPC

4. 问题描述:

如何验证地平线 j6 soc 的sample ipc的instance3/4,使用地平线默认释放的mcu只能保证soc 发送正常,但接受超时

5. 示例代码:

test/samples/platform_samples/source/S83_Sample/S83E02_Communication/ipc_sample/

vdsp_fw/bsp_project/driver/mailbox/ipcfhal/hb_ipcf_hal.c

6. log文件(目前暂不支持附件上传,请通过百度网盘上传后贴链接):

root@hobot:~# /app/sample/S83_Sample/S83E02_Communication/ipc_sample/bin/libipcf_hal_sample

[INFO][hb_ipcf_hal.cpp:278] [channel] cpu2mcu_ins3ch0 [ins] 3 [id] 0 init success.

[INFO][hb_ipcf_hal.cpp:328] [channel] cpu2mcu_ins3ch0 [ins] 3 [id] 0 config success.

[INFO][hb_ipcf_hal.cpp:278] [channel] cpu2mcu_ins3ch1 [ins] 3 [id] 1 init success.

[INFO][hb_ipcf_hal.cpp:328] [channel] cpu2mcu_ins3ch1 [ins] 3 [id] 1 config success.

[INFO][hb_ipcf_hal.cpp:278] [channel] cpu2mcu_ins4ch0 [ins] 4 [id] 0 init success.

[INFO][hb_ipcf_hal.cpp:328] [channel] cpu2mcu_ins4ch0 [ins] 4 [id] 0 config success.

[INFO][hb_ipcf_hal.cpp:278] [channel] cpu2mcu_ins4ch1 [ins] 4 [id] 1 init success.

[INFO][hb_ipcf_hal.cpp:328] [channel] cpu2mcu_ins4ch1 [ins] 4 [id] 1 config success.

    Ins[3]Ch[0]   TxCnt[100]TxFailCnt[0] -------

    Ins[3]Ch[1]   TxCnt[100]TxFailCnt[0] -------

    Ins[4]Ch[0]   TxCnt[100]TxFailCnt[0] -------

    Ins[4]Ch[1]   TxCnt[100]TxFailCnt[0] -------


    Ins[3]Ch[0]   TxCnt[200]TxFailCnt[0] -------

    Ins[3]Ch[1]   TxCnt[200]TxFailCnt[0] -------

    Ins[4]Ch[0]   TxCnt[200]TxFailCnt[0] -------

    Ins[4]Ch[1]   TxCnt[200]TxFailCnt[0] -------

    Ins[3]Ch[0]   TxCnt[300]TxFailCnt[0] -------

底层软件
征程6
评论1
0/1000
  • 费小财
    Lv.5

    你好,

    ipc的samplecode的的mcu你这边测试用的是什么的版本?

    2024-08-19
    0
    28
    • 卖报小郎君回复费小财:

      地平线,基线默认释放的mcu,刷写的是默认out下的MCU_J6M_SIP_Matrix_V1.1.img

      2024-08-19
      0
    • 费小财回复卖报小郎君:

      是这个的,不需要M核权限,直接编译就好

      2024-08-19
      0
    • 卖报小郎君回复费小财:

      我在A核的BSP 没有搜到 build_sample.py文件

      然后在M核的代码仓库里面看到了文件,执行

       python ./Build/Autosar/build_sample.py Ipc MatrixV1P1_MultiCore

      提示我please set env value for GHS_PATH,有3个问题想请教一下

      1.GHS 相关编译环境需要M核的同事帮忙支持一下吗

      2.最新bsp(730)相关m核 smaple demo 的编译指令还支持吗(见上面指令)

      3.地平线有预编译的M核 img 吗,用来验证相关IPC 通信

      2024-08-19
      0
    • 卖报小郎君回复费小财:

      哥,点错按钮了。。。搞成已经完成了。。。

      帮忙回答一下相关问题呗

      2024-08-19
      0
    • 费小财回复卖报小郎君:

      你好,

      需要mcu权限,要拉最新的代码并编译

      sample demo的指令还是支持的

      2024-08-19
      0
    • 卖报小郎君回复费小财:

      你好,

      现在最新的编译IPC 指令方便给一下吗(好让相关同事帮忙编译一下)

      地平线有prebuilt的img 吗,用来做sample code 的验证

      2024-08-19
      0
    • 费小财回复卖报小郎君:

      上周发版的时候 最新的编译命令还是这个:python build_sample.py Ipc MatrixV1P1_MultiCore

      2024-08-19
      0
    • 卖报小郎君回复费小财:

      mcu 的同事帮我编译失败了,方便看看吗

      xxxx build_sample.py:213: tax arning: invalid escape sequence

      ə+ output_dir

      GHS_PATH:C:\ghs\comp_202314\

      # building start

      COMMAND NÜMBER: 9999

      sconstruct path xxxMCU_AL\samples\Ipc\MatrixV1P1_MultiCore\intergration\SConstruct

      scons

      2024-08-19
      0
    • 卖报小郎君回复费小财:

      scons: Reading SConscript files ...

      scons: warning: No version of Visual Studio compilerfound - C/C++ compilers most likely not set correctly

      2024-08-19
      0
    • 费小财回复卖报小郎君:

      你的代码是最新的吗

      2024-08-19
      0
    • 卖报小郎君回复费小财:

      你们那边最新基线是啥版本呢?这边应该fork 过几次你们的基线,现在到了730

      2024-08-19
      0
    • 费小财回复卖报小郎君:

      你这个编译报错,有完整的日志么

      2024-08-19
      0
    • 费小财回复卖报小郎君:

      你这编译目录不对,到mcu/Build/Autosar目录下编译

      2024-08-19
      0
    • 卖报小郎君回复费小财:

      稍等,我让mcu 的同事看看这块

      2024-08-19
      0
    • 卖报小郎君回复费小财:

      xxxx \MCU_AL\Build\Autosar>python build_sample.py Ipc MatrixViP1_MultiCore

      2024-08-19
      0
    • 卖报小郎君回复卖报小郎君:

      报错已基本确认

      xxx\MCU_AL\Build\Autosar>python build_sample.py Ipc MatrixV1P1_MultiCore

      GHS_PATH:D:\ghs\comp_202314\

      # building start


      rm: cannot remove directory `xxx\\MCU_AL\\output\\dbg/J6M_MCU_Matrix_SIP_V1.1': Permission denied

      COMMAND NUMBER: 9999

      sconstruct path: xxx\MCU_AL\samples\Ipc\MatrixV1P1_MultiCore\intergration\SConstruct

      scons -j8 --site-dir=xxx\MCU_AL\Build\Autosar\site_scons --sconstruct=xxx\MCU_AL\samples\Ipc\MatrixV1P1_MultiCore\intergration\SConstruct USER_COMPILER_FLAGS=

      scons: Reading SConscript files ...


      scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly

      File "xxx\MCU_AL\samples\Ipc\MatrixV1P1_MultiCore\intergration\SConstruct", line 4, in

      Could not find file .\qualitytest\OS\ETAS-MulticoreOnClu01_RD\settings.py in current directory.

      NameError: name 'env' is not defined:

       File "xxx\MCU_AL\samples\Ipc\MatrixV1P1_MultiCore\intergration\SConstruct", line 74:

        scons_common.setuplogging(env)

      build fail.


      Fail

      2024-08-19
      0
    • 卖报小郎君回复卖报小郎君:

      Could not find file .\qualitytest\OS\ETAS-MulticoreOnClu01_RD\settings.py in current directory.

      2024-08-19
      0
    • 费小财回复卖报小郎君:

      rm: cannot remove directory `xxx\\MCU_AL\\output\\dbg/J6M_MCU_Matrix_SIP_V1.1': Permission denied

      你先把这个错误解决一下吧,一步步来,我们这边试过今天的版本是可以编译的

      2024-08-19
      0
    • 卖报小郎君回复费小财:

      好的

      2024-08-19
      0
    • 卖报小郎君回复费小财:

      xxx\MCU_AL\Build\Autosar>python build_sample.py Ipc MatrixV1P1_MultiCore

      GHS_PATH:D:\ghs\comp_202314\

      # building start

      COMMAND NUMBER: 9999

      sconstruct path: xxx\MCU_AL\samples\Ipc\MatrixV1P1_MultiCore\intergration\SConstruct

      scons -j8 --site-dir=xxx\MCU_AL\Build\Autosar\site_scons --sconstruct=xxx\MCU_AL\samples\Ipc\MatrixV1P1_MultiCore\intergration\SConstruct USER_COMPILER_FLAGS=

      scons: Reading SConscript files ...


      scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly

      File "xxx\MCU_AL\samples\Ipc\MatrixV1P1_MultiCore\intergration\SConstruct", line 4, in

      Could not find file .\qualitytest\OS\ETAS-MulticoreOnClu01_RD\settings.py in current directory.

      NameError: name 'env' is not defined:

       File "xxx\MCU_AL\samples\Ipc\MatrixV1P1_MultiCore\intergration\SConstruct", line 74:

        scons_common.setuplogging(env)

      build fail.


      Fail

      2024-08-19
      0
    • 卖报小郎君回复卖报小郎君:

      补充一点,在基于地平线释放的mcu sdk 里面,没有看到qualitytest 文件

      2024-08-19
      0
    • 卖报小郎君回复费小财:

      已经解决了

      rm: cannot remove directory `xxx\\MCU_AL\\output\\dbg/J6M_MCU_Matrix_SIP_V1.1': Permission denied

      麻烦在看下相关日志

      2024-08-19
      1
    • 卖报小郎君回复卖报小郎君:

      日志见上面回复消息

      2024-08-19
      1
    • 费小财回复卖报小郎君:

      编译需要这个问题,你看看能不能找对接的支持获取这个文件先

      2024-08-19
      0
    • 卖报小郎君回复费小财:

      已反馈

      2024-08-19
      0
    • 卖报小郎君回复卖报小郎君:

      IPC问题已经在地平线对接的支持下解决。

      已经成功在A核验证Sample IPC Demo

      2024-08-20
      0
    • 费小财回复卖报小郎君:

      好的,有问题再沟通

      2024-08-20
      0
    • 卖报小郎君回复费小财:

      嗯嗯,感谢大佬的支持

      2024-08-20
      0