PWM PHASEDLY register not defined in i.MXRT 1011 or RT1021 DFP

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

PWM PHASEDLY register not defined in i.MXRT 1011 or RT1021 DFP

324 次查看
robin5408
Contributor I

I am using KEIL and trying to implement PWM1.SM0/1/2 with 120 phase shift, unfortunately, this register is not support yet. Can you help? 

 

I have tried to do some custimization, but failed in Keil with error:

"Cannot access Memory (@ 0x401cc058, Read, Acc Size: 4 Byte)"

 

In MIMXRT1011.h:

...
__I uint16_t CVAL5; /**< Capture Value 5 Register, array offset: 0x54, array step: 0x60 */
__I uint16_t CVAL5CYC; /**< Capture Value 5 Cycle Register, array offset: 0x56, array step: 0x60 */
// __IO uint16_t PHASEDLY;
uint8_t RESERVED_2[8];
} SM[4];
__IO uint16_t OUTEN; /**< Output Enable Register, offset: 0x180 */

...

} PWM_Type;

 

标签 (1)
0 项奖励
回复
1 回复

296 次查看
mjbcswitzerland
Specialist V

Hi

The only i.MX RT with this register that I have seen is the i.MX RT 1011, however I don't know whether it is really available since it might be an error in the manual (the manual is from 2019 and hasn't been updated since then - sometimes early manuals contain descriptions of modules used to base the peripherals on but have descriptions of things that have been removed from the module as integrated in the actual chip - and other i.MX RT parts have the same module and basically the same description in their user manual but with such references removed).

If the i.MX RT 1011 is a special case and this register exists try reading it as a 16 bit register and not as a 32 bit register (as the Keil debugger looks to be doing).
Also see whether there are any control bits in other registers that switch the clock through to this register so that it can be read before attempting to read it - I didn't see any, but sometimes extended versions of such modules need the extended part activated somewhere before use.

Regards

Mark (uTasker project lead)


i.MX RT 1010 EVK: https://www.utasker.com/iMX/RT1010.html
i.MX RT 1010 Mux spread-sheet: https://www.utasker.com/iMX/iMXRT1010/iMX_RT_1010.xls
i.MX RT 1011 developer's doc: https://www.utasker.com/docs/iMX/i.MX_RT_1011_uTasker.pdf

For our discounted i.MX and Kinetis production stock availability see https://www.utasker.com/Shop/semi.html

0 项奖励
回复