Hi RX community, this is more an advice than a request for help. I have a custom board with an RX64M and USB Peripheral connection. I am using FIT modules r_usb_basic and r_usb_pcdc. I figured out how to configure the FIT modules, however, there is one point where I got stuck for a while. It seems the FIT modules do not have the option to set XTAL speeds other than 24 MHz in the config files. This of course works with the stock RX64M RSK where a 24 MHz XT is mounted. On my custom board, I have a 12 MHz XTAL, which is fine for using the USBA module, but a different configuration is needed. The RX64M datasheet calls this a "classic" configuration. This requires setting the USBA.PHYSET.HSEB bit to 1. By default, this bit is set to 0 in file r_usb_basic/src/HW/comm/r_usb_creg_access.c, function "usb_creg_clr_hseb()". If anyone from the FIT module developes hears me, I'd like to suggest for the next version of the r_usb_basic FIT module, to introduce a flag in r_usb_basic_config.h that can be used if an XTAL other than 24 MHz is used in a custom implementation. This flag should then control the setting of USBA.PHYSET.HSEB. Apart from that, the FIT modules have saved me quite some time with the implementation of the USB driver code. Thanks for that. Best regards, Severin
↧