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.

关于GateHwi和GateSwi

尊敬的工程师:

您好,如果需要在代码中使用GateHwi或者使用GateSwi,是不是在BIOS的配置里面必须选为对应选项,他的默认选项是GateMutex,是不是必须选为GateHwi才能使用GateHwi。如果选为GateMutex,是不是GateHwi就不起作用了(即使代码写了也不起作用),是这样吗,谢谢!

  • 一般都是可以在代码里动态配置的。
  • 王工,您好,那是不是说如果静态配置了之后,我们不能在程序中即使用GateHwi又去使用GateSwi,是这样吗,谢谢!

    祝您好心情!

  • 没有看到这样的限制。详细内容可参考Bios_User_Guide看一下:
    \bios_6_76_03_01\docs\Bios_User_Guide
  • 王工,您好,那为什么还会在BIOS那个图形里面有配置选项呢,我也认为可以同时使用,但是我不确信,所以还请您再帮我核实一下,非常感谢王工,祝您好心情!
  • 4.3.4 Configuring the SYS/BIOS Gate Type
    www.ti.com/.../spruex3v.pdf
    If NoLocking is used, the RTS lock is not plugged, and re-entrancy for the TI RTS library calls is not
    guaranteed. The application can plug the RTS locks directly if it wants.
    试试看选为NoLocking是否可以。可能静态配置之后被lock了,看配置框的属性为C Standard Library Lock.

    默认的RTS门类型取决于使能的线程类型的配置参数。如果BIOS.taskEnabled 为true,那么使用 GateMutex。如果BIOS.swiEnabled 为true 并且BIOS.taskEnabled为false,那 么使用GateSwi。如 果BIOS.swiEnabled和BIOS.taskEnabled都为false,那么 使用xdc.runtime.GateNull、。 如果BIOS.taskEnabled为false,用户不应该选择GateMutex(或其它任务级的门)。类似的,如 果 BIOS.taskEnabled和BIOS.swiEnabled为false,那么用户不应选择GateSwi或任务级的门