cancel
Showing results for 
Search instead for 
Did you mean: 

USB Device CDC ACM

B.Kaya
Associate II

Hello,

I am working on USB device CDC ACM for STM32N655L0. 

I found an example about "Ux_Device_CDC_ACM" for NUCLEO-N657X0-Q. Can I use this example for my mcu? How can I find ioc configuration of this example?

I also tried to implement this example to my project but when I change some configuration from ioc, new code is not match with this example. On the other hand, I did everything as inside of example but I am getting error during clock initalization.

BKaya_0-1750430697260.png

Best Regards,
Basri KAYA




4 REPLIES 4
FBL
ST Employee

Hi @B.Kaya 

According to datasheet, the only difference should be = No neural ART option (artificial intelligence)

FBL_0-1750437000538.png

So the example firmware should be functional if you have the same hardware configuration as in nucleo board.

You can attach ioc file.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.


B.Kaya
Associate II

Hi,

Thanks for quick response.

I wanted to access to ioc file of Ux_Device_CDC_ACM example to check my configurations. If you can not share it, can you confirm that my configuration is same as example?

I will share it asap.

Best Regards.

B.Kaya
Associate II

Hello,

I followed example application but I am getting error and could not fix it. There is hard fault error after this step. 

BKaya_0-1750498115544.png

My hardware configuration is same with nucleo.

I have a few questions:
1) USPD files which is generated from ioc is not matching with in the example. They are very different and I guees that there is a version difference between them. Therefore, I changed them. Is this ok?

2) HAL_PCD_MspInit is not also same with my project. I did not understand that ST R&D is fixed it for example and should I change my function too?

Best Regards.

FBL
ST Employee

Hi @B.Kaya 

The issue appears to be related to your PCB design, as the HSE might not be directly connected as the USB clock source. Please verify your implementation against the N6 Nucleo schematics MB1940.

Regarding your question, you can use CubeMX to check the pinout compatibility with your MCU and determine if any hardware modifications are necessary.

Could you please provide more details on what exactly is missing in the HAL_PCD_MspInit() generated API?

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.