Error in USB initialization PN7462.

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

Error in USB initialization PN7462.

998 次查看
nda
Contributor III

Hello. I found an error in init of USB of pn7462. I am working with library ver5.12, but it also exist in last version (5.22). In function VCom_Init(void) (cdc_main.c) there are such strings:

      /* enable USB interrrupts */
      phHal_Nvic_EnableInterrupt(PHHAL_NVIC_HIF); // that is incorrect. 

it should be like in phhalHif_Usb_Init:

      phHal_Nvic_EnableInterrupt( 1<<PHHAL_NVIC_HIF );

PHHAL_NVIC_HIF - is the number of interrupt and string phHal_Nvic_EnableInterrupt(PHHAL_NVIC_HIF) switches different interrupts on.

May be this will help to somebody.

0 项奖励
回复
1 回复

933 次查看
nxf58474
NXP Employee
NXP Employee

Hi nda@entpro.ru,

 

Hope you are doing well.  I'll check it with the developers, thank you for your observation and help.

 

Regards,

Ricardo

0 项奖励
回复