Thread 中讨论的其他器件: CC2650
工具/软件:Code Composer Studio
您好!
我正在尝试对 CC2650 BoosterPack 进行编程(不带 launchpad)。 是否有任何用于对 cc2650moda 进行编程的示例代码? TI Resource Explorer 具有示例代码、但使用 launchpad。
提前感谢
Aditya Adiga
(不要发送与任何 LaunchPad 相关的源代码的 TI Resource Explorer 链接)
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.
工具/软件:Code Composer Studio
您好!
我正在尝试对 CC2650 BoosterPack 进行编程(不带 launchpad)。 是否有任何用于对 cc2650moda 进行编程的示例代码? TI Resource Explorer 具有示例代码、但使用 launchpad。
提前感谢
Aditya Adiga
(不要发送与任何 LaunchPad 相关的源代码的 TI Resource Explorer 链接)
您好、 Aditya、
如果您没有 Launchpad、则可以通过引导加载程序(UART 或 SPI)对 CC2650moda 进行编程。
请查看此应用报告:
http://www.ti.com/general/docs/litabsmultiplefilelist.tsp?literatureNumber=swra466
此致、
R.M.
您好!
要写入和读取寄存器、您可以使用 HWREG 宏(在 HW_Types.h 中找到):
//字(32位)对地址 x 的访问 //读取示例:my32BitVar = HWREG (base_addr + offset); //写入示例:HWREG (base_addr + offset)= my32BitVar; #define HWREG (x) \ (*((volatile unsigned long *)(x))) //对地址 x 的半字(16位)访问 //读取示例:my16BitVar = HWREGH (base_addr + offset); //写入示例:HWREGH (base_addr + offset)= my16BitVar; #define HWREGH (x) \ (*((volatile unsigned short *)(x))) //对地址 x 的字节(8位)访问 //读取示例:my8BitVar = HWREGB (base_addr + offset); //写入示例:HWREGB (base_addr + offset)= my8BitVar; #define HWREGB (x) \ (*((volatile unsigned char *)(x)))
此致、
R.M.