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.

TMS320F280025C: 在移植SYS/BIOS时 如何指定BIOS的时钟为SysTick?(除了BIOS.cpuFreq.lo = 100000000;外)

Part Number: TMS320F280025C
Other Parts Discussed in Thread: SYSBIOS

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
var Defaults = xdc.useModule('xdc.runtime.Defaults');
var Diags = xdc.useModule('xdc.runtime.Diags');
var Error = xdc.useModule('xdc.runtime.Error');
var Log = xdc.useModule('xdc.runtime.Log');
var LoggerBuf = xdc.useModule('xdc.runtime.LoggerBuf');
var Main = xdc.useModule('xdc.runtime.Main');
var Memory = xdc.useModule('xdc.runtime.Memory')
var SysMin = xdc.useModule('xdc.runtime.SysMin');
var System = xdc.useModule('xdc.runtime.System');
var Text = xdc.useModule('xdc.runtime.Text');
var BIOS = xdc.useModule('ti.sysbios.BIOS');
var Clock = xdc.useModule('ti.sysbios.knl.Clock');
var Swi = xdc.useModule('ti.sysbios.knl.Swi');
var Task = xdc.useModule('ti.sysbios.knl.Task');
var Semaphore = xdc.useModule('ti.sysbios.knl.Semaphore');
var Hwi = xdc.useModule('ti.sysbios.family.c28.Hwi');
BIOS.cpuFreq.lo = 100000000;
/*
* Uncomment this line to globally disable Asserts.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

这是我的cfg文件 配置以后虽然可以正常使用多线程 但是无法使用System_printf

  • 已经收到了您的案例,调查需要些时间,感谢您的耐心等待。

  • 您好

    SYS/BIOS 不再受支持、也从未在 F28002x 上受到正式支持、因此我只能提供有限的帮助。 一般而言、我们建议将 SYS/BIOS 用户迁移到 FreeRTOS。 不过、我可以指出一些我看到您上面的代码存在的潜在问题。 这里有一个常见问题解答、其中包含更详细的信息、但您需要注意不要在代码中配置 SYS/BIOS 拥有的资源。 例如、如果 SYS/BIOS 正在配置 SYSCLK、请确保从 Device_init ()中删除 SYSCLK 初始化、否则会禁止 SYS/BIOS 对其进行设置。 SYS/BIOS 将拥有 PIE 矢量表来管理其 Hwi、因此您不应该调用 Interrupt_initVectorTable()函数。 以下是 System_printf 故障排除的常见问题解答:e2e.ti.com/.../faq-where-is-the-output-of-system_printf-going