RT-Thread论坛
直播中

吕钢格

9年用户 1075经验值
私信 关注
[问答]

rtthread 报错”FPU active!” “SCB_CFSR_UFSR:0x100 UNALIGNED”怎么解决?

开发环境:
RT-Thread: v5.1.0
MCU: STM32F429

我在一个线程中向另一个线程发送消息队列,使用的是传结构体,然后就出现报错
FPU active!
usage fault:
SCB_CFSR_UFSR:0x100 UNALIGNED
代码如下

#define intercom_msg_data_size 63
typedef struct
{
    uint8_t cmd;
    uint8_t data[intercom_msg_data_size];
}Intercom_msg_t;
void Intercom_control(uint8_t cmd,uint8_t *data,uint8_t length)
{
    uint8_t i;
    Intercom_msg_t send_msg;
    rt_err_t ret=0;
    send_msg.cmd = cmd;
    for(i=0;imsg_queue_free = msg->next;
    rt_spin_unlock_irqrestore(&(mq->spinlock), level);
    /* the msg is the new tailer of list, the next shall be NULL */
    msg->next = RT_NULL;

更多回帖

发帖
×
20
完善资料,
赚取积分