TI中文支持网
TI专业的中文技术问题搜集分享网站

TMS320F280039C: MCAN发送打断点后,无法发送can信号

阅读(50)

Part Number:TMS320F280039C

在官方例子mcan_ex7_classic_transmit中,正常情况下能发送CAN信号,但打了断点后,can信号不能发送,看程序是一直在“while(MCAN_getTxBufReqPend(MCANA_DRIVER_BASE)){ }”这个循环中。请问这是什么问题?应该怎么解决?

Lydia:

您好,

感谢您对TI产品的关注!为更加有效地解决您的问题,我们建议您将问题发布在E2E英文技术论坛上(https://e2e.ti.com/p/addpost),将由资深的英文论坛工程师为您提供帮助。

TMS320F280049: 关于上电时序及上电期间各端口电压要求

user472571035阅读(54)

Part Number:TMS320F280049

1,我们在实际开发中遇到了芯片损坏问题:大概现象是:反复上下电十几次后出现ADC采样数据异常的问题,已经排除外围电路影响(在不贴装0049的情况下各AD信号电压都正常,贴装之后出现波动、漂高等现象),据此怀疑可能是供电回路或者上电时序存在问题导致0049芯片损坏;

2,在280049的datasheet中,7.9.1.4.2 Signal Pins Power Sequence章节:  Before powering the device,  no voltage larger than 0.3 V aboveVDDIO or 0.3 V below VSS should be applied to any digital pin… 此处的VDDIO指的是3.3V(假设我设计中的供电电压就是3.3V),还是该描述的上电过程中某一时刻的实际VDDIO电压?   ————-比如在上电过程中的某一时刻,VDDIO 和VDDA 电压才达到1.0V,但某个GPIO和ADC采样输入端口电压是3.3V,会导致7.9.1.4.2 章节中描述的损坏么?

Vivian Gao:

您好

感谢您对TI产品的关注!为更加有效地解决您的问题,我们建议您将问题发布在E2E英文技术论坛上(TI E2E support forums),将由资深的英文论坛工程师为您提供帮助

TMS320F280039C: 工程编译后出现warning

Haisong Zhang阅读(56)

Part Number:TMS320F280039C

hi,

我们的项目在编译后出现以下warning

#10247-D creating output section "FPUmathTables" without a SECTIONS specification

但是,在工程中没有找到"FPUmathTables",想问下,如何消除这个warning

另外一个warning,也请帮忙解决

#10247-D creating output section "sharemem" without a SECTIONS specification
下图是项目中加载library的截图

请尽快帮忙解决,

thanks~

Lydia:

您好,

感谢您对TI产品的关注!为更加有效地解决您的问题,我们建议您将问题发布在E2E英文技术论坛上(https://e2e.ti.com/p/addpost),将由资深的英文论坛工程师为您提供帮助。

,

Haisong Zhang:

Hi Lydia,

你帮忙转发到E2E英文技术论坛上吧

thanks~

,

Lydia:

您好,您有权限自己在英文论坛发帖,客户自己发帖会更及时沟通和针对性的处理问题,谢谢

TMS320F28035: dsp28035 能接收扩展帧,接收不了标准帧

user5860441阅读(72)

Part Number:TMS320F28035

请教一个问题,dsp28035 能接收扩展帧,接收不了标准帧?

目前,扩展帧能发送、能接收。

标准帧能发送,不能接收。

static void InitControl(Uint16 buadrate) // Initialize eCAN-A module
{
/* Create a shadow register structure for the CAN control registers. This is
needed, since only 32-bit access is allowed to these registers. 16-bit access
to these registers could potentially corrupt the register contents or return
false data. */

struct ECAN_REGS ECanaShadow;

EALLOW; // EALLOW enables access to protected bits

/* Configure eCAN RX and TX pins for CAN operation using eCAN regs*/

ECanaShadow.CANTIOC.all = ECanaRegs.CANTIOC.all;
ECanaShadow.CANTIOC.bit.TXFUNC = 1;//发送引脚功能
ECanaRegs.CANTIOC.all = ECanaShadow.CANTIOC.all;

ECanaShadow.CANRIOC.all = ECanaRegs.CANRIOC.all;
ECanaShadow.CANRIOC.bit.RXFUNC = 1;//接收引脚功能
ECanaRegs.CANRIOC.all = ECanaShadow.CANRIOC.all;

/* Configure eCAN for HECC mode – (reqd to access mailboxes 16 thru 31) */
// HECC mode also enables time-stamping feature

ECanaShadow.CANMC.all = ECanaRegs.CANMC.all;
ECanaShadow.CANMC.bit.SCB = 1;//ECAN模式 32个邮箱
ECanaRegs.CANMC.all = ECanaShadow.CANMC.all;

/* Initialize all bits of 'Message Control Register' to zero */
// Some bits of MSGCTRL register come up in an unknown state. For proper operation,
// all bits (including reserved bits) of MSGCTRL must be initialized to zero
ECanaMboxes.MBOX0.MSGCTRL.all = 0x00000000;
ECanaMboxes.MBOX1.MSGCTRL.all = 0x00000000;
ECanaMboxes.MBOX2.MSGCTRL.all = 0x00000000;
ECanaMboxes.MBOX3.MSGCTRL.all = 0x00000000;
ECanaMboxes.MBOX4.MSGCTRL.all = 0x00000000;
ECanaMboxes.MBOX5.MSGCTRL.all = 0x00000000;
ECanaMboxes.MBOX6.MSGCTRL.all = 0x00000000;
ECanaMboxes.MBOX7.MSGCTRL.all = 0x00000000;
ECanaMboxes.MBOX8.MSGCTRL.all = 0x00000000;
ECanaMboxes.MBOX9.MSGCTRL.all = 0x00000000;
ECanaMboxes.MBOX10.MSGCTRL.all = 0x00000000;
ECanaMboxes.MBOX11.MSGCTRL.all = 0x00000000;
ECanaMboxes.MBOX12.MSGCTRL.all = 0x00000000;
ECanaMboxes.MBOX13.MSGCTRL.all = 0x00000000;
ECanaMboxes.MBOX14.MSGCTRL.all = 0x00000000;
ECanaMboxes.MBOX15.MSGCTRL.all = 0x00000000;
ECanaMboxes.MBOX16.MSGCTRL.all = 0x00000000;
ECanaMboxes.MBOX17.MSGCTRL.all = 0x00000000;
ECanaMboxes.MBOX18.MSGCTRL.all = 0x00000000;
ECanaMboxes.MBOX19.MSGCTRL.all = 0x00000000;
ECanaMboxes.MBOX20.MSGCTRL.all = 0x00000000;
ECanaMboxes.MBOX21.MSGCTRL.all = 0x00000000;
ECanaMboxes.MBOX22.MSGCTRL.all = 0x00000000;
ECanaMboxes.MBOX23.MSGCTRL.all = 0x00000000;
ECanaMboxes.MBOX24.MSGCTRL.all = 0x00000000;
ECanaMboxes.MBOX25.MSGCTRL.all = 0x00000000;
ECanaMboxes.MBOX26.MSGCTRL.all = 0x00000000;
ECanaMboxes.MBOX27.MSGCTRL.all = 0x00000000;
ECanaMboxes.MBOX28.MSGCTRL.all = 0x00000000;
ECanaMboxes.MBOX29.MSGCTRL.all = 0x00000000;
ECanaMboxes.MBOX30.MSGCTRL.all = 0x00000000;
ECanaMboxes.MBOX31.MSGCTRL.all = 0x00000000;

// TAn, RMPn, GIFn bits are all zero upon reset and are cleared again
// as a matter of precaution.

ECanaRegs.CANTA.all = 0xFFFFFFFF; /* Clear all TAn bits *///重置CANTA或清除发送中断

ECanaRegs.CANRMP.all = 0xFFFFFFFF; /* Clear all RMPn bits *///清除接收邮箱消息挂起寄存器

ECanaRegs.CANGIF0.all = 0xFFFFFFFF; /* Clear all interrupt flag bits */
ECanaRegs.CANGIF1.all = 0xFFFFFFFF;

/* Configure bit timing parameters for eCANA*///请求Bit-Timing 、掩码寄存器等参数

ECanaShadow.CANMC.all = ECanaRegs.CANMC.all;
ECanaShadow.CANMC.bit.CCR = 1 ; // Set CCR = 1
ECanaRegs.CANMC.all = ECanaShadow.CANMC.all;

// Wait until the CPU has been granted permission to change the configuration registers
do
{
ECanaShadow.CANES.all = ECanaRegs.CANES.all;
} while(ECanaShadow.CANES.bit.CCE != 1 ); // Wait for CCE bit to be set..

ECanaShadow.CANBTC.all = 0;
/* The following block is only for 60 MHz SYSCLKOUT. */

if (buadrate == BUADRATE250K)
{
ECanaShadow.CANBTC.bit.BRPREG = 11;
}
else if (buadrate == BUADRATE500K)
{
ECanaShadow.CANBTC.bit.BRPREG = 5;
}
else if (buadrate == BUADRATE1000K)
{
ECanaShadow.CANBTC.bit.BRPREG = 2;
}
else
{
ECanaShadow.CANBTC.bit.BRPREG = 11;
}
ECanaShadow.CANBTC.bit.TSEG2REG = 1;
ECanaShadow.CANBTC.bit.TSEG1REG = 6;

ECanaShadow.CANBTC.bit.SAM = 1;
ECanaRegs.CANBTC.all = ECanaShadow.CANBTC.all;

ECanaShadow.CANMC.all = ECanaRegs.CANMC.all;
ECanaShadow.CANMC.bit.ABO = 1;//自动恢复总线
ECanaShadow.CANMC.bit.CCR = 0 ; // Set CCR = 0 配置完成后请求正常运行
ECanaRegs.CANMC.all = ECanaShadow.CANMC.all;

// Wait until the CPU no longer has permission to change the configuration registers
do
{
ECanaShadow.CANES.all = ECanaRegs.CANES.all;
} while(ECanaShadow.CANES.bit.CCE != 0 ); // Wait for CCE bit to be cleared..

/* Disable all Mailboxes */
ECanaRegs.CANME.all = 0; // Required before writing the MSGIDs

EDIS;
}

void InitMbox(void)
{
canMsgBufInit();
ECanaMboxes.MBOX0.MSGID.all = (Uint32)(canMsgTxBuf[0].id << 18);
ECanaMboxes.MBOX1.MSGID.all = (Uint32)(canMsgTxBuf[1].id << 18);
ECanaMboxes.MBOX2.MSGID.all = (Uint32)(canMsgTxBuf[2].id << 18);
// ECanaMboxes.MBOX3.MSGID.all = (Uint32)(canMsgTx[3].id | 0x80000000);
// ECanaMboxes.MBOX4.MSGID.all = (Uint32)(canMsgTx[4].id | 0x80000000);
// ECanaMboxes.MBOX5.MSGID.all = (Uint32)canMsgTx[5].id << 18;
// ECanaMboxes.MBOX6.MSGID.all = (Uint32)canMsgTx[6].id << 18;
// ECanaMboxes.MBOX7.MSGID.all = (Uint32)canMsgTx[7].id << 18;
// ECanaMboxes.MBOX8.MSGID.all = (Uint32)canMsgTx[8].id << 18;
// ECanaMboxes.MBOX9.MSGID.all = (Uint32)canMsgTx[9].id << 18;
// ECanaMboxes.MBOX10.MSGID.all = (Uint32)canMsgTx[10].id << 18;
// ECanaMboxes.MBOX11.MSGID.all = (Uint32)canMsgTx[11].id << 18;
// ECanaMboxes.MBOX12.MSGID.all = (Uint32)canMsgTx[12].id << 18;
// ECanaMboxes.MBOX13.MSGID.all = (Uint32)canMsgTx[13].id << 18;
// ECanaMboxes.MBOX14.MSGID.all = (Uint32)canMsgTx[14].id << 18;
// ECanaMboxes.MBOX15.MSGID.all = (Uint32)canMsgTx[15].id << 18;

// Write to the MSGID field of RECEIVE mailboxes MBOX16 – 31
ECanaMboxes.MBOX16.MSGID.all = (Uint32)(canMsgRxBuf[0].id << 18);
ECanaMboxes.MBOX17.MSGID.all = (Uint32)(canMsgRxBuf[1].id | 0x80000000);
// ECanaMboxes.MBOX18.MSGID.all = (Uint32)(canMsgRx[2].id | 0x80000000);
// ECanaMboxes.MBOX19.MSGID.all = (Uint32)(canMsgRx[3].id | 0x80000000);
// ECanaMboxes.MBOX20.MSGID.all = (Uint32)(canMsgRx[4].id | 0x80000000);
// ECanaMboxes.MBOX21.MSGID.all = (Uint32)(canMsgRx[5].id | 0x80000000);
// ECanaMboxes.MBOX22.MSGID.all = (Uint32)(canMsgRx[6].id | 0x80000000);
// ECanaMboxes.MBOX23.MSGID.all = (Uint32)(canMsgRx[7].id | 0x80000000);
// ECanaMboxes.MBOX24.MSGID.all = 0x9555AAA8;
// ECanaMboxes.MBOX25.MSGID.all = 0x9555AAA9;
// ECanaMboxes.MBOX26.MSGID.all = 0x9555AAAA;
// ECanaMboxes.MBOX27.MSGID.all = 0x9555AAAB;
// ECanaMboxes.MBOX28.MSGID.all = 0x9555AAAC;
// ECanaMboxes.MBOX29.MSGID.all = 0x9555AAAD;
// ECanaMboxes.MBOX30.MSGID.all = 0x9555AAAE;
// ECanaMboxes.MBOX31.MSGID.all = 0x9555AAAF;

// Configure Mailboxes 0-15 as Tx, 16-31 as Rx
// Since this write is to the entire register (instead of a bit
// field) a shadow register is not required.
ECanaRegs.CANMD.all = 0xFFFF0000;//指定mbox 0-15为发送, 16-31为接收

// Enable all Mailboxes 使能所有邮箱*/
// Since this write is to the entire register (instead of a bit
// field) a shadow register is not required.
ECanaRegs.CANME.all = 0xFFFFFFFF;

// Specify that 8 bits will be sent/received
ECanaMboxes.MBOX0.MSGCTRL.bit.DLC = 8;
ECanaMboxes.MBOX1.MSGCTRL.bit.DLC = 8;
ECanaMboxes.MBOX2.MSGCTRL.bit.DLC = 8;
ECanaMboxes.MBOX3.MSGCTRL.bit.DLC = 8;
ECanaMboxes.MBOX4.MSGCTRL.bit.DLC = 8;
ECanaMboxes.MBOX5.MSGCTRL.bit.DLC = 8;
ECanaMboxes.MBOX6.MSGCTRL.bit.DLC = 8;
ECanaMboxes.MBOX7.MSGCTRL.bit.DLC = 8;
ECanaMboxes.MBOX8.MSGCTRL.bit.DLC = 8;
ECanaMboxes.MBOX9.MSGCTRL.bit.DLC = 8;
ECanaMboxes.MBOX10.MSGCTRL.bit.DLC = 8;
ECanaMboxes.MBOX11.MSGCTRL.bit.DLC = 8;
ECanaMboxes.MBOX12.MSGCTRL.bit.DLC = 8;
ECanaMboxes.MBOX13.MSGCTRL.bit.DLC = 8;
ECanaMboxes.MBOX14.MSGCTRL.bit.DLC = 8;
ECanaMboxes.MBOX15.MSGCTRL.bit.DLC = 8;

ECanaMboxes.MBOX16.MSGCTRL.bit.DLC = 8;
ECanaMboxes.MBOX17.MSGCTRL.bit.DLC = 8;
ECanaMboxes.MBOX18.MSGCTRL.bit.DLC = 8;
ECanaMboxes.MBOX19.MSGCTRL.bit.DLC = 8;
ECanaMboxes.MBOX20.MSGCTRL.bit.DLC = 8;
ECanaMboxes.MBOX21.MSGCTRL.bit.DLC = 8;
ECanaMboxes.MBOX22.MSGCTRL.bit.DLC = 8;
ECanaMboxes.MBOX23.MSGCTRL.bit.DLC = 8;
ECanaMboxes.MBOX24.MSGCTRL.bit.DLC = 8;
ECanaMboxes.MBOX25.MSGCTRL.bit.DLC = 8;
ECanaMboxes.MBOX26.MSGCTRL.bit.DLC = 8;
ECanaMboxes.MBOX27.MSGCTRL.bit.DLC = 8;
ECanaMboxes.MBOX28.MSGCTRL.bit.DLC = 8;
ECanaMboxes.MBOX29.MSGCTRL.bit.DLC = 8;
ECanaMboxes.MBOX30.MSGCTRL.bit.DLC = 8;
ECanaMboxes.MBOX31.MSGCTRL.bit.DLC = 8;

// Since this write is to the entire register (instead of a bit
// field) a shadow register is not required.
EALLOW;
ECanaRegs.CANMIM.all = 0;//禁能中断
EDIS;

// Configure the eCAN for self test mode
// Enable the enhanced features of the eCAN.
// EALLOW;
// ECanaShadow.CANMC.all = ECanaRegs.CANMC.all;
// ECanaShadow.CANMC.bit.STM = 1; // Configure CAN for self-test mode
// ECanaRegs.CANMC.all = ECanaShadow.CANMC.all;
// EDIS;
}

user5860441:

void canMsgBufInit(void){ //发送邮箱初始化 canMsgTxBuf[0].id = 0x1; canMsgTxBuf[0].MsgData.dataH.all = 0; canMsgTxBuf[0].MsgData.dataL.all = 0; canMsgTxBuf[1].id = 0x11; canMsgTxBuf[1].MsgData.dataH.all = 0; canMsgTxBuf[1].MsgData.dataL.all = 0;

canMsgTxBuf[2].id = 0x713; canMsgTxBuf[2].MsgData.dataH.all = 0; canMsgTxBuf[2].MsgData.dataL.all = 0;

//接收邮箱初始化 canMsgRxBuf[0].id = 0x121; canMsgRxBuf[0].flag = 0; canMsgRxBuf[0].MsgData.dataH.all = 0x12345678; canMsgRxBuf[0].MsgData.dataL.all = 0x56781234;

canMsgRxBuf[1].id = 0x122; canMsgRxBuf[1].flag = 0; canMsgRxBuf[1].MsgData.dataH.all = 0x1234ABCD; canMsgRxBuf[1].MsgData.dataL.all = 0x56789AEF;}

TMS320F280049: ADC参考电压设计

Liwen Jia阅读(64)

Part Number:TMS320F280049

您好,我目前在绘制280049的最小控制板,采用的是280049PZS型号。针对ADC的参考电压问题,我看手册上有说可以采用内部参考电压和外部参考电压两种,但是手册中只给出了外部参考电压的电路图,如下图所示。而内部参考电压模式的VREFHIA/B/C如何连接并未给出详细说明。同时,手册上讲说内部参考电压有两种模式,具体是怎么设置也不太清楚。希望能给出相应的解答,非常感谢!

Daniel:

您好

https://www.ti.com/lit/ds/symlink/tms320f280049.pdf

第76页7.9.1.4.3.2 Internal VREG/VDD Mode Sequence有相关模式以及参数的详细说明。

TMS320F28377D: 28377D

Ding Kang阅读(309)

Part Number:TMS320F28377D

Im doing migrate  freertos  OS  into 28377D. When i compile the project. I found some mistakes  as follow as the picture

when i  change the output format 

mistakes had gone. some warnings had appeared 

I do not know how to eliminate these warnings

Daniel:

您好

根据您描述的情况建议检查您的头文件以及相关库文件来处理您的问题。

https://dev.ti.com/tirex/explore/node?node=A__AEIJm0rwIeU.2P1OBWwlaA__C2000WARE__1kRFgrO__LATEST

这是官方的相关库文件,请您参考。

TMS320F280049C

阅读(78)

,使用f280049c,CMPSS模块的CBC控制 是否可以实现峰值电流控制方式,若能实现,输入到比较器模块的正输入的电压频率最高可以为多少?(即实现下图功能)

Daniel:

您好

https://dev.ti.com/tirex/explore/node?node=A__AH1vVl37aMzVUrm.2sZ7PA__C2000WARE__1kRFgrO__LATEST

请您参考这个官方相关代码。

TMS320F2800154-Q1: JTAG烧录时序图

qi changjiang阅读(56)

Part Number:TMS320F2800154-Q1

请求TMS320F2800154-Q1的JTAG烧录时序图

Vivian Gao:

您好

我们为您进行了查询,目前提供的C2000系列的手册里面没有时序图。

https://www.ti.com.cn/cn/lit/an/zhcac06c/zhcac06c.pdf

您到英文论坛发帖问问产品线有没有这个资源,因为我看MSP430系列芯片是提供了这个时序图的。

https://www.ti.com.cn/cn/lit/ug/zhcu029aj/zhcu029aj.pdf

英文技术论坛 https://e2e.ti.com/ 

英文论坛提问链接:https://e2e.ti.com/p/addpost

LAUNCHXL-F280049C:GPIO PIN NUMBER ARRAYS

jungho hyun阅读(57)

Part Number:LAUNCHXL-F280049COther Parts Discussed in Thread: AFE031

안녕하세요 

LAUNCHXL-F280049C 키트를 구매한 사람입니다.

AFE031 IC를 구동해보려는데 BOOST 키트를 현재 가지고 있고

AFE_InitGpio(void) 안에 GPIO 핀배정하는 핀번호에 대해 문의드립니다.

LAUNCHXL-F280049C 키트에 사용된 MCU는 100핀짜리이고, 34,4,5 번핀은 VDD /혹은 GND 인데 이것을 GPIO 핀으로 설정가능한가요?

제가 보기에는 저 핀은 MCU의 핀번호가 아니라

다시 핀배열에 맞게 다른 값으로 바뀌는 것 같은데요

회신부탁드립니다.

Alice:

Hello ,

       This is Chinese E2E forum. 

       Please post your issue in English on English E2E linked below, thank you.

       TI E2E support forums

TMS320F28388S: 28388芯片使用FAST库

ZHAO ZHIQIANG阅读(66)

Part Number:TMS320F28388S

28388S可以用FAST无感算法库吗?有没有28388芯片的开发板

Vivian Gao:

您好

不可以,您选择有下方手册19页中提到的系列。

https://www.ti.com/lit/ug/spruhj1i/spruhj1i.pdf

TMS320F28388S的开发板看下方产品页的硬件开发部分。

TMS320F28388S 数据表、产品信息和支持 | 德州仪器 TI.com.cn

,

ZHAO ZHIQIANG:

这个说的是嵌入ROM的FAST算法,我看现在有软件库形式的FAST,那么28388S能不能使用软件库形式的

,

Vivian Gao:

您好

不能,之前有过回复。

TMS320F28379D: TMS320F28379D上面能否部署TI官方的电机库——instaSPIN-FOC and instaSPIN-MOTION-TI中文支持网

,

ZHAO ZHIQIANG:

但是我查看了有人提问28379D能不能 用,那个英文论坛的回复说所有带FPU和TMU的新C2000芯片都可以以软件库的形式调用FAST,那岂不是28388S也可以吗

(1) C2000WARE-MOTORCONTROL-SDK: Instaspin FOC Inquiry – C2000 microcontrollers forum – C2000︎ microcontrollers – TI E2E support forums

,

Vivian Gao:

您好

我之前也在其他帖子回复过,您可以进行尝试,但是我们没有查到相关示例。

C2000WARE-MOTORCONTROL-SDK: Instaspin FOC Inquiry – C2000 microcontrollers forum – C2000Tm︎ microcontrollers – TI E2E support forums

,

ZHAO ZHIQIANG:

您能不能帮忙问一下到底能不能以软件lib的形式使用FAST无感算法,如果可以的话,咱们有没有官方的28388的开发板,

(我注册那个英文论坛咨询没能通过,辛苦您帮忙问一下,谢谢啦)

,

Vivian Gao:

您好 

如果您有公司邮箱,请用公司邮箱注册TI账号,如果公司邮箱注册TI账号有问题,请致电TI客服中心。

© 2024 TI中文支持网   网站地图 鲁ICP备2022002796号-1