我遇到了一个不寻常的问题。 我正在尝试设置 AURIX TC397XE 的 OLDAEN 位,以防止在写入 OLDA 内存范围时生成陷阱。
为了实现这一目标,我创建了一个桥接控制寄存器的结构和一个联合结构。 然后,我将 DOM0_BRCON 指针定义为指向 BRCON 寄存器的地址。
在 osee_tc_core0_start 例程中,我调用了函数 osee_tc_set_olda_enable ()。 但是,我总是遇到陷阱,而且 OLDAEN 位没有设置。
我不确定我是否遗漏了什么,或者我的方法是否有任何错误。
typedef struct OsEE_tc_DOM_BRCON_bits_tag
{
unsigned int OLDAEN:1; /**< [0:0] Online Data Acquisition Enable - OLDAEN (rw) */
unsigned int reserved_1:5; /**< [5:1] internal Reserved */
unsigned int reserved_6:1; /**< [6:6] internal Reserved */
unsigned int reserved_7:2; /**< [8:7] internal Reserved */
unsigned int reserved_9:2; /**< [10:9] internal Reserved */
unsigned int reserved_11:2; /**<[12:11] internal Reserved */
unsigned int reserved_13:7; /**<[19:13] internal Reserved */
unsigned int reserved_20:12; /**<[31:20] internal Reserved */
} OsEE_tc_DOM_BRCON_bits;
typedef union
{
OsEE_reg reg; /* Register access */
OsEE_tc_DOM_BRCON_bits bits; /* Bitfield access */
} OsEE_tc_DOM_BRCON;
#define DOM0_BRCON (*(volatile OsEE_tc_DOM_BRCON*)0xF8700430u)
OSEE_STATIC_INLINE void OSEE_ALWAYS_INLINE /* static inline void __attribute__((always_inline)) */
osEE_tc_set_olda_enable()
{
DOM0_BRCON.bits.OLDAEN = 1U;
}
共1条
1/1 1 跳转至页
在AURIXTC397XE上设置OLDAENBit时遇到的问题求解
关键词: AURIX TC397XE OLDAEN bit
共1条
1/1 1 跳转至页
回复
我要赚赏金打赏帖 |
|
|---|---|
| 基于MCP23S17的输入输出功能模块控制被打赏¥20元 | |
| 【S32K3XX】SPD 软件包使用Link文件修改被打赏¥22元 | |
| Switch-Case局部变量定义问题被打赏¥23元 | |
| 基于米尔TIAM62L开发板的串口通信及应用被打赏¥20元 | |
| PCF8574功能模块及其使用被打赏¥20元 | |
| 传感器LSM6DSO及LIS3MDL的功能检测被打赏¥18元 | |
| LPS25HB气压传感器及其检测被打赏¥18元 | |
| HTS221温湿度传感器及其检测被打赏¥18元 | |
| 【S32K3XX】HSE FW 版本更新被打赏¥21元 | |
| 基于ArduinoUNO开发板的AT24C02读写测试被打赏¥16元 | |
我要赚赏金
