USB Interface

Hi Team ,

I am using R7FS5D97C2A01CBG

SSP : 2.0.0

Please share some docs on USB Interface(output) for multiple threads, or provide instructions on how to obtain USB output.
If I use a single thread, I get output. If I use a multi-threaded approach, I get a USB Malfunction error.

  • Hi Prasad. What is the exact error code/message that you see? Please also share the details of your configuration settings.

    Regards,
    Jayesh

  • I am getting the error  "'SYNERGY_NOT_DEFINED' " , here i attached the screenshot of error message and configuration file also .

    i am using ssp 1.7.3 

      

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <synergyConfiguration version="4">
      <generalSettings>
        <option key="#Board#" value="board.custom"/>
        <option key="CPU" value="S5D9"/>
        <option key="#TargetName#" value="R7FS5D97C2A01CBG"/>
        <option key="#TargetARCHITECTURE#" value="cortex-m4"/>
        <option key="#RTOS#" value="Express Logic ThreadX"/>
        <option key="#pinconfiguration#" value="R7FS5D97C2A01CBG.pincfg"/>
        <option key="#SSPVersion#" value="1.7.3"/>
        <option key="#DefaultLinkerScript#" value="s5d9.ld"/>
        <option key="#SELECTED_TOOLCHAIN#" value="gcc-arm-embedded"/>
      </generalSettings>
      <synergyBspConfiguration>
        <config id="config.bsp.s5d9.R7FS5D97C2A01CBG">
          <property id="config.bsp.part_number" value="config.bsp.part_number.value"/>
          <property id="config.bsp.rom_size_bytes" value="config.bsp.rom_size_bytes.value"/>
          <property id="config.bsp.ram_size_bytes" value="config.bsp.ram_size_bytes.value"/>
          <property id="config.bsp.data_flash_size_bytes" value="config.bsp.data_flash_size_bytes.value"/>
          <property id="config.bsp.package_style" value="config.bsp.package_style.value"/>
          <property id="config.bsp.package_pins" value="config.bsp.package_pins.value"/>
        </config>
        <config id="config.bsp.s5d9">
          <property id="config.bsp.series" value="config.bsp.series.value"/>
        </config>
        <config id="config.bsp.s5d9.ssp">
          <property id="config.bsp.s5d9.ssp.OFS0" value="config.bsp.s5d9.ssp.OFS0_Register.default"/>
          <property id="config.bsp.s5d9.ssp.OFS0.iwdt_start_mode" value="config.bsp.s5d9.ssp.OFS0.iwdt_start_mode.disabled"/>
          <property id="config.bsp.s5d9.ssp.OFS0.iwdt_timeout" value="config.bsp.s5d9.ssp.OFS0.iwdt_timeout.2048"/>
          <property id="config.bsp.s5d9.ssp.OFS0.iwdt_divisor" value="config.bsp.s5d9.ssp.OFS0.iwdt_divisor.128"/>
          <property id="config.bsp.s5d9.ssp.OFS0.iwdt_window_end" value="config.bsp.s5d9.ssp.OFS0.iwdt_window_end.0"/>
          <property id="config.bsp.s5d9.ssp.OFS0.iwdt_window_start" value="config.bsp.s5d9.ssp.OFS0.iwdt_window_start.100"/>
          <property id="config.bsp.s5d9.ssp.OFS0.iwdt_reset_interrupt" value="config.bsp.s5d9.ssp.OFS0.iwdt_reset_interrupt.Reset"/>
          <property id="config.bsp.s5d9.ssp.OFS0.iwdt_stop_control" value="config.bsp.s5d9.ssp.OFS0.iwdt_stop_control.stops"/>
          <property id="config.bsp.s5d9.ssp.OFS0.wdt_start_mode" value="config.bsp.s5d9.ssp.OFS0.wdt_start_mode.register"/>
          <property id="config.bsp.s5d9.ssp.OFS0.wdt_timeout" value="config.bsp.s5d9.ssp.OFS0.wdt_timeout.16384"/>
          <property id="config.bsp.s5d9.ssp.OFS0.wdt_divisor" value="config.bsp.s5d9.ssp.OFS0.wdt_divisor.128"/>
          <property id="config.bsp.s5d9.ssp.OFS0.wdt_window_end" value="config.bsp.s5d9.ssp.OFS0.wdt_window_end.0"/>
          <property id="config.bsp.s5d9.ssp.OFS0.wdt_window_start" value="config.bsp.s5d9.ssp.OFS0.wdt_window_start.100"/>
          <property id="config.bsp.s5d9.ssp.OFS0.wdt_reset_interrupt" value="config.bsp.s5d9.ssp.OFS0.wdt_reset_interrupt.Reset"/>
          <property id="config.bsp.s5d9.ssp.OFS0.wdt_stop_control" value="config.bsp.s5d9.ssp.OFS0.wdt_stop_control.stops"/>
          <property id="config.bsp.s5d9.ssp.OFS1" value="config.bsp.s5d9.ssp.OFS1_Register.default"/>
          <property id="config.bsp.s5d9.ssp.OFS1.voltage_detection0.start" value="config.bsp.s5d9.ssp.OFS1.voltage_detection0.start.disabled"/>
          <property id="config.bsp.s5d9.ssp.OFS1.voltage_detection0_level" value="config.bsp.s5d9.ssp.OFS1.voltage_detection0_level.280"/>
          <property id="config.bsp.s5d9.ssp.OFS1.hoco_osc" value="config.bsp.s5d9.ssp.OFS1.hoco_osc.disabled"/>
          <property id="config.bsp.s5d9.ssp.mpu_pc0_enable" value="config.bsp.s5d9.ssp.mpu_pc0_enable.disabled"/>
          <property id="config.bsp.s5d9.ssp.mpu_pc0_start" value="0xFFFFFFFC"/>
          <property id="config.bsp.s5d9.ssp.mpu_pc0_end" value="0xFFFFFFFF"/>
          <property id="config.bsp.s5d9.ssp.mpu_pc1_enable" value="config.bsp.s5d9.ssp.mpu_pc1_enable.disabled"/>
          <property id="config.bsp.s5d9.ssp.mpu_pc1_start" value="0xFFFFFFFC"/>
          <property id="config.bsp.s5d9.ssp.mpu_pc1_end" value="0xFFFFFFFF"/>
          <property id="config.bsp.s5d9.ssp.mpu_reg0_enable" value="config.bsp.s5d9.ssp.mpu_reg0_enable.disabled"/>
          <property id="config.bsp.s5d9.ssp.mpu_reg0_start" value="0x00FFFFFC"/>
          <property id="config.bsp.s5d9.ssp.mpu_reg0_end" value="0x00FFFFFF"/>
          <property id="config.bsp.s5d9.ssp.mpu_reg1_enable" value="config.bsp.s5d9.ssp.mpu_reg1_enable.disabled"/>
          <property id="config.bsp.s5d9.ssp.mpu_reg1_start" value="0x200FFFFC"/>
          <property id="config.bsp.s5d9.ssp.mpu_reg1_end" value="0x200FFFFF"/>
          <property id="config.bsp.s5d9.ssp.mpu_reg2_enable" value="config.bsp.s5d9.ssp.mpu_reg2_enable.disabled"/>
          <property id="config.bsp.s5d9.ssp.mpu_reg2_start" value="0x407FFFFC"/>
          <property id="config.bsp.s5d9.ssp.mpu_reg2_end" value="0x407FFFFF"/>
          <property id="config.bsp.s5d9.ssp.mpu_reg3_enable" value="config.bsp.s5d9.ssp.mpu_reg3_enable.disabled"/>
          <property id="config.bsp.s5d9.ssp.mpu_reg3_start" value="0x400DFFFC"/>
          <property id="config.bsp.s5d9.ssp.mpu_reg3_end" value="0x407FFFFF"/>
        </config>
        <config id="config.bsp.synergy">
          <property id="config.bsp.common.main" value="0x500"/>
          <property id="config.bsp.common.process" value="0x500"/>
          <property id="config.bsp.common.heap" value="0x60000"/>
          <property id="config.bsp.common.vcc" value="3300"/>
          <property id="config.bsp.common.avcc0" value="3300"/>
          <property id="config.bsp.common.checking" value="config.bsp.common.checking.enabled"/>
          <property id="config.bsp.common.assert" value="config.bsp.common.assert.none"/>
          <property id="config.bsp.common.error_log" value="config.bsp.common.error_log.none"/>
          <property id="config.bsp.common.id_mode" value="config.bsp.common.id_mode.unlocked"/>
          <property id="config.bsp.common.id_code" value="FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"/>
          <property id="config.bsp.common.id1" value=""/>
          <property id="config.bsp.common.id2" value=""/>
          <property id="config.bsp.common.id3" value=""/>
          <property id="config.bsp.common.id4" value=""/>
          <property id="config.bsp.common.id_fixed" value=""/>
        </config>
      </synergyBspConfiguration>
      <synergyClockConfiguration>
        <node id="board.clock.xtal.freq" mul="24000000" option="_edit"/>
        <node id="board.clock.usbmclk.freq" option="board.clock.usbmclk.freq"/>
        <node id="board.clock.pll.source" option="board.clock.pll.source.hoco"/>
        <node id="board.clock.hoco.freq" option="board.clock.hoco.freq.20m"/>
        <node id="board.clock.loco.freq" option="board.clock.loco.freq.32768"/>
        <node id="board.clock.moco.freq" option="board.clock.moco.freq.8m"/>
        <node id="board.clock.subclk.freq" option="board.clock.subclk.freq.32768"/>
        <node id="board.clock.pll.div" option="board.clock.pll.div.2"/>
        <node id="board.clock.pll.mul" option="board.clock.pll.mul.240"/>
        <node id="board.clock.pll.display" option="board.clock.pll.display.value"/>
        <node id="board.clock.clock.source" option="board.clock.clock.source.pll"/>
        <node id="board.clock.iclk.div" option="board.clock.iclk.div.2"/>
        <node id="board.clock.iclk.display" option="board.clock.iclk.display.value"/>
        <node id="board.clock.pclka.div" option="board.clock.pclka.div.2"/>
        <node id="board.clock.pclka.display" option="board.clock.pclka.display.value"/>
        <node id="board.clock.pclkb.div" option="board.clock.pclkb.div.4"/>
        <node id="board.clock.pclkb.display" option="board.clock.pclkb.display.value"/>
        <node id="board.clock.pclkc.div" option="board.clock.pclkc.div.4"/>
        <node id="board.clock.pclkc.display" option="board.clock.pclkc.display.value"/>
        <node id="board.clock.pclkd.div" option="board.clock.pclkd.div.2"/>
        <node id="board.clock.pclkd.display" option="board.clock.pclkd.display.value"/>
        <node id="board.clock.sdclkout.div" option="board.clock.sdclkout.div.1"/>
        <node id="board.clock.sdclkout.display" option="board.clock.sdclkout.display.value"/>
        <node id="board.clock.bclk.div" option="board.clock.bclk.div.2"/>
        <node id="board.clock.bclk.display" option="board.clock.bclk.display.value"/>
        <node id="board.clock.bclkout.div" option="board.clock.bclkout.div.2"/>
        <node id="board.clock.bclkout.display" option="board.clock.bclkout.display.value"/>
        <node id="board.clock.uclk.div" option="board.clock.uclk.div.5"/>
        <node id="board.clock.uclk.display" option="board.clock.uclk.display.value"/>
        <node id="board.clock.fclk.div" option="board.clock.fclk.div.4"/>
        <node id="board.clock.fclk.display" option="board.clock.fclk.display.value"/>
      </synergyClockConfiguration>
      <synergyComponentSelection>
        <component apiversion="" class="BSP" condition="" group="Board" subgroup="custom" variant="" vendor="Renesas" version="1.7.5">
          <description>CUSTOM Board Support Files</description>
          <originalPack>Renesas.Synergy_board_custom.1.7.5.pack</originalPack>
        </component>
        <component apiversion="" class="BSP" condition="" group="s5d9" subgroup="device" variant="R7FS5D97C2A01CBG" vendor="Renesas" version="1.7.5">
          <description>Board support package for R7FS5D97C2A01CBG</description>
          <originalPack>Renesas.Synergy_mcu_s5d9.1.7.5.pack</originalPack>
        </component>
        <component apiversion="" class="BSP" condition="" group="s5d9" subgroup="device" variant="" vendor="Renesas" version="1.7.5">
          <description>Board support package for S5D9</description>
          <originalPack>Renesas.Synergy_mcu_s5d9.1.7.5.pack</originalPack>
        </component>
        <component apiversion="" class="BSP" condition="" group="s5d9" subgroup="ssp" variant="" vendor="Renesas" version="1.7.5">
          <description>Board support package for S5D9</description>
          <originalPack>Renesas.Synergy_mcu_s5d9.1.7.5.pack</originalPack>
        </component>
        <component apiversion="" class="HAL Drivers" condition="" group="all" subgroup="r_cgc" variant="" vendor="Renesas" version="1.7.5">
          <description>Clock Generation Circuit: Provides=[CGC]</description>
          <originalPack>Renesas.Synergy.1.7.5.pack</originalPack>
        </component>
        <component apiversion="" class="HAL Drivers" condition="" group="all" subgroup="r_elc" variant="" vendor="Renesas" version="1.7.5">
          <description>Event Link Controller: Provides=[ELC]</description>
          <originalPack>Renesas.Synergy.1.7.5.pack</originalPack>
        </component>
        <component apiversion="" class="HAL Drivers" condition="" group="all" subgroup="r_fmi" variant="" vendor="Renesas" version="1.7.5">
          <description>Factory MCU Information Module: Provides=[FMI]</description>
          <originalPack>Renesas.Synergy.1.7.5.pack</originalPack>
        </component>
        <component apiversion="" class="HAL Drivers" condition="" group="all" subgroup="r_ioport" variant="" vendor="Renesas" version="1.7.5">
          <description>I/O Port: Provides=[IO Port]</description>
          <originalPack>Renesas.Synergy.1.7.5.pack</originalPack>
        </component>
        <component apiversion="" class="Framework Services" condition="" group="all" subgroup="sf_el_ux" variant="" vendor="Renesas" version="1.7.5">
          <description>Express Logic USBX Synergy Port: Provides=[USBX Driver] , Requires=[USBX ,Transfer]</description>
          <originalPack>Renesas.Synergy.1.7.5.pack</originalPack>
        </component>
        <component apiversion="" class="Express Logic" condition="" group="all" subgroup="tx" variant="" vendor="Renesas" version="1.7.5">
          <description>Express Logic ThreadX: Provides=[ThreadX]</description>
          <originalPack>Renesas.Synergy.1.7.5.pack</originalPack>
        </component>
        <component apiversion="" class="Express Logic" condition="" group="all" subgroup="ux" variant="" vendor="Renesas" version="1.7.5">
          <description>Express Logic USBX: Provides=[USBX] , Requires=[ThreadX ,USBX Driver]</description>
          <originalPack>Renesas.Synergy.1.7.5.pack</originalPack>
        </component>
        <component apiversion="" class="Express Logic" condition="" group="all" subgroup="ux_device_class_cdc_acm" variant="" vendor="Renesas" version="1.7.5">
          <description>Express Logic USBX Device Class CDC ACM: Provides=[USBX Device Class CDC ACM] , Requires=[ThreadX ,USBX]</description>
          <originalPack>Renesas.Synergy.1.7.5.pack</originalPack>
        </component>
        <component apiversion="" class="HAL Drivers" condition="" group="all" subgroup="r_crc" variant="" vendor="Renesas" version="1.7.5">
          <description>Cyclic Redundancy Check: Provides=[CRC]</description>
          <originalPack>Renesas.Synergy.1.7.5.pack</originalPack>
        </component>
        <component apiversion="" class="HAL Drivers" condition="" group="all" subgroup="r_dtc" variant="" vendor="Renesas" version="1.7.5">
          <description>Data Transfer Controller: Provides=[Transfer]</description>
          <originalPack>Renesas.Synergy.1.7.5.pack</originalPack>
        </component>
        <component apiversion="" class="HAL Drivers" condition="" group="all" subgroup="r_flash_hp" variant="" vendor="Renesas" version="1.7.5">
          <description>Flash Memory: Provides=[Flash]</description>
          <originalPack>Renesas.Synergy.1.7.5.pack</originalPack>
        </component>
        <component apiversion="" class="HAL Drivers" condition="" group="all" subgroup="r_rspi" variant="" vendor="Renesas" version="1.7.5">
          <description>RSPI: Provides=[SPI]</description>
          <originalPack>Renesas.Synergy.1.7.5.pack</originalPack>
        </component>
        <component apiversion="" class="Common" condition="" group="all" subgroup="ssp_common" variant="" vendor="Renesas" version="1.7.3">
          <description>SSP Common Code</description>
          <originalPack>Renesas.Synergy.1.7.3.pack</originalPack>
        </component>
        <component apiversion="" class="HAL Drivers" condition="" group="all" subgroup="r_sce" variant="" vendor="Renesas" version="1.7.3">
          <description>Secure Cryptography Engine: Provides=[TRNG, AES, HASH, RSA, DSA, TDES, ARC4, ECC, KEY_INSTALLATION]</description>
          <originalPack>Renesas.Synergy.1.7.3.pack</originalPack>
        </component>
      </synergyComponentSelection>
      <synergyIcuConfiguration/>
      <synergyMessagingConfiguration/>
      <synergyModuleConfiguration>
        <module id="module.driver.cgc_on_cgc.0">
          <property id="module.driver.cgc.name" value="g_cgc"/>
        </module>
        <module id="module.driver.elc_on_elc.0">
          <property id="module.driver.elc.name" value="g_elc"/>
        </module>
        <module id="module.driver.ioport_on_ioport.0">
          <property id="module.driver.ioport.name" value="g_ioport"/>
        </module>
        <module id="module.driver.fmi_on_fmi.0">
          <property id="module.driver.fmi.name" value="g_fmi"/>
        </module>
        <module id="module.el.ux_device_class_cdc_acm_v2.709114568">
          <property id="module.el.ux_device_class_cdc_acm_v2.name" value="g_ux_device_class_cdc_acm0"/>
          <property id="module.el.ux_device_class_cdc_acm_v2.pfunc_activate" value="ux_cdc_device0_instance_activate"/>
          <property id="module.el.ux_device_class_cdc_acm_v2.pfunc_deactivate" value="ux_cdc_device0_instance_deactivate"/>
          <property id="module.el.ux_device_class_cdc_acm_v2.init_function" value="ux_device_class_cdc_acm_init0"/>
          <property id="module.el.ux_device_class_cdc_acm_v2.init" value="module.el.ux_device_class_cdc_acm_v2.init.enable"/>
        </module>
        <module id="module.el.ux_device.2093491721">
          <property id="module.el.ux_device.idVendor" value="0x045B"/>
          <property id="module.el.ux_device.idProduct" value="0x0000"/>
          <property id="module.el.ux_device.bcdDevice" value="0x0000"/>
          <property id="module.el.ux_device.iManufacturer" value="0x00"/>
          <property id="module.el.ux_device.iProduct" value="0x00"/>
          <property id="module.el.ux_device.iSerialNumber" value="0x00"/>
          <property id="module.el.ux_device.bDeviceClass" value="module.el.ux_device.bDeviceClass.cdc"/>
          <property id="module.el.ux_device.iConfiguration" value="0x00"/>
          <property id="module.el.ux_device.wTotalLength" value="0x00"/>
          <property id="module.el.ux_device.bNumInterfaces" value="0x00"/>
          <property id="module.el.ux_device.bmAttributes_bit6" value="module.el.ux_device.bmAttributes_bit6.enable"/>
          <property id="module.el.ux_device.bmAttributes_bit5" value="module.el.ux_device.bmAttributes_bit5.disable"/>
          <property id="module.el.ux_device.bMaxPower" value="50"/>
          <property id="module.el.ux_device.language_code" value="0x0409"/>
          <property id="module.el.ux_device.string_descriptor.name" value="NULL"/>
          <property id="module.el.ux_device.string_descriptor.index" value="0"/>
          <property id="module.el.ux_device.language_descriptor.name" value="NULL"/>
          <property id="module.el.ux_device.language_descriptor.number" value="0"/>
          <property id="module.el.ux_device.init_function" value="ux_device_init0"/>
          <property id="module.el.ux_device.init" value="module.el.ux_device.init.enable"/>
        </module>
        <module id="module.el.ux_v2.1085970085">
          <property id="module.el.ux_v2.pool_memory_name" value="g_ux_pool_memory"/>
          <property id="module.el.ux_v2.pool_memory_size" value="32768"/>
          <property id="module.el.ux_v2.system_change_function" value="ux_host_usr_event_notification"/>
          <property id="module.el.ux_v2.slave_change_function" value="NULL"/>
          <property id="module.el.ux_v2.init_function" value="ux_common_init0"/>
          <property id="module.el.ux_v2.init" value="module.el.ux_v2.init.enable"/>
        </module>
        <module id="module.el.ux.interface_descriptor_cdcacm.cdc_acm.1429506623">
          <property id="module.el.ux.interface_descriptor_cdcacm.name" value="g_usb_interface_desc_cdcacm_0"/>
          <property id="module.el.ux.interface_descriptor_cdcacm.bInterfaceNumber_comm" value="0x00"/>
          <property id="module.el.ux.interface_descriptor_cdcacm.ep_interrupt" value="module.el.ux.interface_descriptor_cdcacm.ep_interrupt.ep3"/>
          <property id="module.el.ux.interface_descriptor_cdcacm.bInterval" value="0x0F"/>
          <property id="module.el.ux.interface_descriptor_cdcacm.bInterfaceNumber_data" value="0x01"/>
          <property id="module.el.ux.interface_descriptor_cdcacm.ep_bulk_out" value="module.el.ux.interface_descriptor_cdcacm.ep_bulk_out.ep1"/>
          <property id="module.el.ux.interface_descriptor_cdcacm.ep_bulk_in" value="module.el.ux.interface_descriptor_cdcacm.ep_bulk_in.ep2"/>
          <property id="module.el.ux.interface_descriptor_cdcacm.iInterface_comm" value="0x00"/>
          <property id="module.el.ux.interface_descriptor_cdcacm.iInterface_data" value="0x00"/>
        </module>
        <module id="module.framework.sf_el_ux_dcd_fs.1582637688">
          <property id="module.framework.sf_el_ux_dcd_fs.name" value="g_sf_el_ux_dcd_fs_0"/>
          <property id="module.framework.sf_el_ux_dcd_fs.hw_address" value="module.framework.sf_el_ux_dcd_fs.hw_address.fs"/>
        </module>
        <module id="module.driver.sce_aes.1969432822">
          <property id="module.driver.sce_aes.name" value="g_sce_aes_0"/>
          <property id="module.driver.sce_aes.key_length" value="module.driver.sce_aes.key_length.key256bit"/>
          <property id="module.driver.sce_aes.chaining_mode" value="module.driver.sce_aes.chaining_mode.ecb"/>
          <property id="module.driver.sce_aes.key_format" value="module.driver.sce_aes.key_format.plain_text"/>
        </module>
        <module id="module.driver.sce.422647496">
          <property id="module.driver.sce.name" value="g_sce"/>
          <property id="module.driver.sce.endian_flag" value="module.driver.sce.endian_flag.little_endian"/>
          <property id="module.driver.sce.intentional_blank_line_1" value=""/>
          <property id="module.driver.sce.crypto_module_list" value=""/>
          <property id="module.driver.sce.crypto_aes_plain_text_128_ecb" value="module.driver.sce.crypto_aes_plain_text_128_ecb.enable"/>
          <property id="module.driver.sce.crypto_aes_plain_text_128_cbc" value="module.driver.sce.crypto_aes_plain_text_128_cbc.enable"/>
          <property id="module.driver.sce.crypto_aes_plain_text_128_ctr" value="module.driver.sce.crypto_aes_plain_text_128_ctr.enable"/>
          <property id="module.driver.sce.crypto_aes_plain_text_128_gcm" value="module.driver.sce.crypto_aes_plain_text_128_gcm.enable"/>
          <property id="module.driver.sce.crypto_aes_plain_text_128_xts" value="module.driver.sce.crypto_aes_plain_text_128_xts.enable"/>
          <property id="module.driver.sce.crypto_aes_plain_text_192_ecb" value="module.driver.sce.crypto_aes_plain_text_192_ecb.enable"/>
          <property id="module.driver.sce.crypto_aes_plain_text_192_cbc" value="module.driver.sce.crypto_aes_plain_text_192_cbc.enable"/>
          <property id="module.driver.sce.crypto_aes_plain_text_192_ctr" value="module.driver.sce.crypto_aes_plain_text_192_ctr.enable"/>
          <property id="module.driver.sce.crypto_aes_plain_text_192_gcm" value="module.driver.sce.crypto_aes_plain_text_192_gcm.enable"/>
          <property id="module.driver.sce.crypto_aes_plain_text_256_ecb" value="module.driver.sce.crypto_aes_plain_text_256_ecb.enable"/>
          <property id="module.driver.sce.crypto_aes_plain_text_256_cbc" value="module.driver.sce.crypto_aes_plain_text_256_cbc.enable"/>
          <property id="module.driver.sce.crypto_aes_plain_text_256_ctr" value="module.driver.sce.crypto_aes_plain_text_256_ctr.enable"/>
          <property id="module.driver.sce.crypto_aes_plain_text_256_gcm" value="module.driver.sce.crypto_aes_plain_text_256_gcm.enable"/>
          <property id="module.driver.sce.crypto_aes_plain_text_256_xts" value="module.driver.sce.crypto_aes_plain_text_256_xts.enable"/>
          <property id="module.driver.sce.crypto_aes_wrapped_128_ecb" value="module.driver.sce.crypto_aes_wrapped_128_ecb.enable"/>
          <property id="module.driver.sce.crypto_aes_wrapped_128_cbc" value="module.driver.sce.crypto_aes_wrapped_128_cbc.enable"/>
          <property id="module.driver.sce.crypto_aes_wrapped_128_ctr" value="module.driver.sce.crypto_aes_wrapped_128_ctr.enable"/>
          <property id="module.driver.sce.crypto_aes_wrapped_128_gcm" value="module.driver.sce.crypto_aes_wrapped_128_gcm.enable"/>
          <property id="module.driver.sce.crypto_aes_wrapped_128_xts" value="module.driver.sce.crypto_aes_wrapped_128_xts.enable"/>
          <property id="module.driver.sce.crypto_aes_wrapped_192_ecb" value="module.driver.sce.crypto_aes_wrapped_192_ecb.enable"/>
          <property id="module.driver.sce.crypto_aes_wrapped_192_cbc" value="module.driver.sce.crypto_aes_wrapped_192_cbc.enable"/>
          <property id="module.driver.sce.crypto_aes_wrapped_192_ctr" value="module.driver.sce.crypto_aes_wrapped_192_ctr.enable"/>
          <property id="module.driver.sce.crypto_aes_wrapped_192_gcm" value="module.driver.sce.crypto_aes_wrapped_192_gcm.enable"/>
          <property id="module.driver.sce.crypto_aes_wrapped_256_ecb" value="module.driver.sce.crypto_aes_wrapped_256_ecb.enable"/>
          <property id="module.driver.sce.crypto_aes_wrapped_256_cbc" value="module.driver.sce.crypto_aes_wrapped_256_cbc.enable"/>
          <property id="module.driver.sce.crypto_aes_wrapped_256_ctr" value="module.driver.sce.crypto_aes_wrapped_256_ctr.enable"/>
          <property id="module.driver.sce.crypto_aes_wrapped_256_gcm" value="module.driver.sce.crypto_aes_wrapped_256_gcm.enable"/>
          <property id="module.driver.sce.crypto_aes_wrapped_256_xts" value="module.driver.sce.crypto_aes_wrapped_256_xts.enable"/>
          <property id="module.driver.sce.crypto_rsa_plain_text_1024" value="module.driver.sce.crypto_rsa_plain_text_1024.enable"/>
          <property id="module.driver.sce.crypto_rsa_plain_text_2048" value="module.driver.sce.crypto_rsa_plain_text_2048.enable"/>
          <property id="module.driver.sce.crypto_rsa_wrapped_1024" value="module.driver.sce.crypto_rsa_wrapped_1024.enable"/>
          <property id="module.driver.sce.crypto_rsa_wrapped_2048" value="module.driver.sce.crypto_rsa_wrapped_2048.enable"/>
          <property id="module.driver.sce.crypto_ecc_plain_text_192" value="module.driver.sce.crypto_ecc_plain_text_192.enable"/>
          <property id="module.driver.sce.crypto_ecc_plain_text_256" value="module.driver.sce.crypto_ecc_plain_text_256.enable"/>
          <property id="module.driver.sce.crypto_ecc_wrapped_192" value="module.driver.sce.crypto_ecc_wrapped_192.enable"/>
          <property id="module.driver.sce.crypto_ecc_wrapped_256" value="module.driver.sce.crypto_ecc_wrapped_256.enable"/>
          <property id="module.driver.sce.crypto_hash_sha1" value="module.driver.sce.crypto_hash_sha1.enable"/>
          <property id="module.driver.sce.crypto_hash_sha224" value="module.driver.sce.crypto_hash_sha224.enable"/>
          <property id="module.driver.sce.crypto_hash_sha256" value="module.driver.sce.crypto_hash_sha256.enable"/>
          <property id="module.driver.sce.crypto_hash_md5" value="module.driver.sce.crypto_hash_md5.enable"/>
          <property id="module.driver.sce.crypto_trng" value="module.driver.sce.crypto_trng.enable"/>
        </module>
        <module id="module.driver.spi_on_rspi.1245814049">
          <property id="module.driver.spi.name" value="g_spi0"/>
          <property id="module.driver.spi.channel" value="0"/>
          <property id="module.driver.spi.operating_mode" value="module.driver.spi.operating_mode.mode_master"/>
          <property id="module.driver.spi.clk_phase" value="module.driver.spi.clk_phase.clk_phase_edge_odd"/>
          <property id="module.driver.spi.clk_polarity" value="module.driver.spi.clk_polarity.clk_polarity_low"/>
          <property id="module.driver.spi.mode_fault" value="module.driver.spi.mode_fault.mode_fault_error_disable"/>
          <property id="module.driver.spi.bit_order" value="module.driver.spi.bit_order.bit_order_msb_first"/>
          <property id="module.driver.spi.bitrate" value="2000000"/>
          <property id="module.driver.spi.p_callback" value="spi_callback"/>
          <property id="module.driver.spi.rspi_clksyn" value="module.driver.spi.rspi_clksyn.spi_operation"/>
          <property id="module.driver.spi.sslp0" value="module.driver.spi.sslp0.low"/>
          <property id="module.driver.spi.looback1" value="module.driver.spi.looback1.normal"/>
          <property id="module.driver.spi.looback2" value="module.driver.spi.looback2.normal"/>
          <property id="module.driver.spi.mosi_idle_enable" value="module.driver.spi.mosi_idle_enable.enable"/>
          <property id="module.driver.spi.mosi_idle_value" value="module.driver.spi.mosi_idle_value.low"/>
          <property id="module.driver.spi.parity_enable" value="module.driver.spi.parity_enable.disable"/>
          <property id="module.driver.spi.parity_mode" value="module.driver.spi.parity_mode.odd"/>
          <property id="module.driver.spi.ssl_level_keep" value="module.driver.spi.ssl_level_keep.not_keep"/>
          <property id="module.driver.spi.clock_delay_enable" value="module.driver.spi.clock_delay_enable.disable"/>
          <property id="module.driver.spi.clock_delay_val" value="module.driver.spi.clock_delay_val.one"/>
          <property id="module.driver.spi.rspi_ssl_neg_delay_state" value="module.driver.spi.rspi_ssl_neg_delay_state.disable"/>
          <property id="module.driver.spi.rspi_ssl_neg_delay_count" value="module.driver.spi.rspi_ssl_neg_delay_count.one"/>
          <property id="module.driver.spi.rspi_next_access_delay_state" value="module.driver.spi.rspi_next_access_delay_state.disable"/>
          <property id="module.driver.spi.rspi_next_access_delay_count" value="module.driver.spi.rspi_next_access_delay_count.one"/>
          <property id="module.driver.spi.rxi_ipl" value="board.icu.common.irq.priority2"/>
          <property id="module.driver.spi.txi_ipl" value="board.icu.common.irq.priority2"/>
          <property id="module.driver.spi.tei_ipl" value="board.icu.common.irq.priority2"/>
          <property id="module.driver.spi.eri_ipl" value="board.icu.common.irq.priority2"/>
          <property id="module.driver.spi.byte_swap" value="module.driver.spi.byte_swap.disable"/>
        </module>
        <module id="module.driver.transfer_on_dtc.413920778">
          <property id="module.driver.transfer.name" value="g_transfer2"/>
          <property id="module.driver.transfer.mode" value="module.driver.transfer.mode.mode_normal"/>
          <property id="module.driver.transfer.size" value="module.driver.transfer.size.size_2_byte"/>
          <property id="module.driver.transfer.dest_addr_mode" value="module.driver.transfer.dest_addr_mode.addr_mode_fixed"/>
          <property id="module.driver.transfer.src_addr_mode" value="module.driver.transfer.src_addr_mode.addr_mode_fixed"/>
          <property id="module.driver.transfer.repeat_area" value="module.driver.transfer.repeat_area.repeat_area_source"/>
          <property id="module.driver.transfer.interrupt" value="module.driver.transfer.interrupt.interrupt_end"/>
          <property id="module.driver.transfer.p_dest" value="NULL"/>
          <property id="module.driver.transfer.p_src" value="NULL"/>
          <property id="module.driver.transfer.length" value="0"/>
          <property id="module.driver.transfer.num_blocks" value="0"/>
          <property id="module.driver.transfer.activation_source" value="module.driver.transfer.event.event_elc_software_event_0"/>
          <property id="module.driver.transfer.auto_enable" value="module.driver.transfer.auto_enable.true"/>
          <property id="module.driver.transfer.p_callback" value="NULL"/>
          <property id="module.driver.transfer.irq_ipl" value="board.icu.common.irq.disabled"/>
        </module>
        <module id="module.driver.transfer_on_dtc.1350159323">
          <property id="module.driver.transfer.name" value="g_transfer3"/>
          <property id="module.driver.transfer.mode" value="module.driver.transfer.mode.mode_normal"/>
          <property id="module.driver.transfer.size" value="module.driver.transfer.size.size_2_byte"/>
          <property id="module.driver.transfer.dest_addr_mode" value="module.driver.transfer.dest_addr_mode.addr_mode_fixed"/>
          <property id="module.driver.transfer.src_addr_mode" value="module.driver.transfer.src_addr_mode.addr_mode_fixed"/>
          <property id="module.driver.transfer.repeat_area" value="module.driver.transfer.repeat_area.repeat_area_source"/>
          <property id="module.driver.transfer.interrupt" value="module.driver.transfer.interrupt.interrupt_end"/>
          <property id="module.driver.transfer.p_dest" value="NULL"/>
          <property id="module.driver.transfer.p_src" value="NULL"/>
          <property id="module.driver.transfer.length" value="0"/>
          <property id="module.driver.transfer.num_blocks" value="0"/>
          <property id="module.driver.transfer.activation_source" value="module.driver.transfer.event.event_elc_software_event_0"/>
          <property id="module.driver.transfer.auto_enable" value="module.driver.transfer.auto_enable.true"/>
          <property id="module.driver.transfer.p_callback" value="NULL"/>
          <property id="module.driver.transfer.irq_ipl" value="board.icu.common.irq.disabled"/>
        </module>
        <module id="module.driver.flash_on_flash_hp.1470709209">
          <property id="module.driver.flash.name" value="g_flash0"/>
          <property id="module.driver.flash.data_flash_bgo" value="module.driver.flash.data_flash_bgo.enabled"/>
          <property id="module.driver.flash.p_callback" value="BGO_Callback"/>
          <property id="module.driver.flash.irq_ipl" value="board.icu.common.irq.priority4"/>
          <property id="module.driver.flash.err_irq_ipl" value="board.icu.common.irq.priority4"/>
        </module>
        <module id="module.driver.crc_on_crc.808368932">
          <property id="module.driver.crc.name" value="g_crc0"/>
          <property id="module.driver.crc.crc_polynomial" value="module.driver.crc.crc_polynomial.gps_crc_ccitt"/>
          <property id="module.driver.crc.crc_bit_order" value="module.driver.crc.crc_bit_order.lms_msb"/>
          <property id="module.driver.crc.snoop_fifo_mode" value="module.driver.crc.snoop_fifo_mode.false"/>
        </module>
        <module id="module.el.ux_device_class_cdc_acm_v2.193204365">
          <property id="module.el.ux_device_class_cdc_acm_v2.name" value="g_ux_device_class_cdc_acm1"/>
          <property id="module.el.ux_device_class_cdc_acm_v2.pfunc_activate" value="ux_cdc_device1_instance_activate"/>
          <property id="module.el.ux_device_class_cdc_acm_v2.pfunc_deactivate" value="ux_cdc_device1_instance_deactivate"/>
          <property id="module.el.ux_device_class_cdc_acm_v2.init_function" value="ux_device_class_cdc_acm_init1"/>
          <property id="module.el.ux_device_class_cdc_acm_v2.init" value="module.el.ux_device_class_cdc_acm_v2.init.enable"/>
        </module>
        <context id="_hal.0">
          <stack module="module.driver.cgc_on_cgc.0"/>
          <stack module="module.driver.fmi_on_fmi.0"/>
          <stack module="module.driver.elc_on_elc.0"/>
          <stack module="module.driver.ioport_on_ioport.0"/>
        </context>
        <context id="rtos.threadx.thread.839205707">
          <property id="_symbol" value="USB_read_thread"/>
          <property id="rtos.threadx.thread.name" value="USB Read Thread"/>
          <property id="rtos.threadx.thread.stack" value="0x8000"/>
          <property id="rtos.threadx.thread.priority" value="1"/>
          <property id="rtos.threadx.thread.autostart" value="rtos.threadx.thread.autostart.enabled"/>
          <property id="rtos.threadx.thread.timeslice" value="1"/>
          <stack module="module.el.ux_device_class_cdc_acm_v2.709114568">
            <stack module="module.el.ux_device.2093491721" requires="module.el.ux_device_class_cdc_acm_v2.requires.ux_device">
              <stack module="module.framework.sf_el_ux_dcd_fs.1582637688" requires="module.el.ux_device.requires.sf_el_ux_dcd"/>
              <stack module="module.el.ux_v2.1085970085" requires="module.el.ux_device.requires.ux_v2"/>
            </stack>
            <stack module="module.el.ux.interface_descriptor_cdcacm.cdc_acm.1429506623" requires="module.el.ux_device_class_cdc_acm_v2.requires.interface_descriptor_cdcacm"/>
          </stack>
          <stack module="module.driver.sce_aes.1969432822">
            <stack module="module.driver.sce.422647496" requires="module.driver.sce"/>
          </stack>
          <stack module="module.driver.spi_on_rspi.1245814049">
            <stack module="module.driver.transfer_on_dtc.413920778" requires="module.driver.spi_on_rspi.requires.transfer_tx"/>
            <stack module="module.driver.transfer_on_dtc.1350159323" requires="module.driver.spi_on_rspi.requires.transfer_rx"/>
          </stack>
          <stack module="module.driver.flash_on_flash_hp.1470709209"/>
          <stack module="module.driver.crc_on_crc.808368932"/>
          <object id="rtos.threadx.object.flags.1795327097">
            <property id="rtos.threadx.object.flags.name" value="New Event Flags"/>
            <property id="rtos.threadx.object.flags.symbol" value="g_cdcacm_activate_event_flags0"/>
          </object>
        </context>
        <context id="rtos.threadx.thread.188106653">
          <property id="_symbol" value="rsa_create_key_thread"/>
          <property id="rtos.threadx.thread.name" value="RSA Create Key Thread"/>
          <property id="rtos.threadx.thread.stack" value="1024"/>
          <property id="rtos.threadx.thread.priority" value="10"/>
          <property id="rtos.threadx.thread.autostart" value="rtos.threadx.thread.autostart.enabled"/>
          <property id="rtos.threadx.thread.timeslice" value="1"/>
          <stack module="module.el.ux_device_class_cdc_acm_v2.193204365">
            <stack module="module.el.ux_device.2093491721" requires="module.el.ux_device_class_cdc_acm_v2.requires.ux_device">
              <stack module="module.framework.sf_el_ux_dcd_fs.1582637688" requires="module.el.ux_device.requires.sf_el_ux_dcd"/>
              <stack module="module.el.ux_v2.1085970085" requires="module.el.ux_device.requires.ux_v2"/>
            </stack>
          </stack>
        </context>
        <config id="config.el.ux_v2"/>
        <config id="config.el.ux_device">
          <property id="config.el.ux_device.composite" value="config.el.ux_device.composite.disable"/>
        </config>
        <config id="config.driver.flash_hp">
          <property id="config.driver.flash_hp.param_checking_enable" value="config.driver.flash_hp.param_checking_enable.enabled"/>
          <property id="config.driver.flash_hp.param_code_flash_programming_enable" value="config.driver.flash_hp.param_code_flash_programming_enable.enabled"/>
        </config>
        <config id="config.driver.cgc">
          <property id="config.driver.cgc.param_checking_enable" value="config.driver.cgc.param_checking_enable.bsp"/>
          <property id="config.driver.cgc.main_osc_wait" value="config.driver.cgc.main_osc_wait.wait_8163"/>
          <property id="config.driver.cgc.main_osc_clock_source" value="config.driver.cgc.main_osc_clock_source.crystal"/>
          <property id="config.driver.cgc.subclock_drive" value="config.driver.cgc.subclock_drive.standard"/>
          <property id="config.driver.cgc.subclock_at_reset_enable" value="config.driver.cgc.subclock_at_reset_enable.enabled"/>
          <property id="config.driver.cgc.low_voltage_mode" value="config.driver.cgc.low_voltage_mode.disabled"/>
        </config>
        <config id="config.driver.sce"/>
        <config id="config.driver.sce_trng"/>
        <config id="config.driver.sce_aes"/>
        <config id="config.driver.sce_hash"/>
        <config id="config.driver.sce_rsa"/>
        <config id="config.driver.sce_dsa"/>
        <config id="config.driver.sce_arc4"/>
        <config id="config.driver.sce_tdes"/>
        <config id="config.driver.sce_ecc"/>
        <config id="config.driver.sce_key_installation"/>
        <config id="config.driver.ioport">
          <property id="config.driver.ioport.checking" value="config.driver.ioport.checking.system"/>
        </config>
        <config id="config.threadx.thread"/>
        <config id="config.framework.sf_el_ux">
          <property id="config.framework.sf_el_ux.VBUSENpin_logic" value="config.framework.sf_el_ux.VBUSENpin_logic.active_high"/>
          <property id="config.framework.sf_el_ux.hs_irq_ipl" value="board.icu.common.irq.disabled"/>
          <property id="config.framework.sf_el_ux.fs_irq_ipl" value="board.icu.common.irq.disabled"/>
        </config>
        <config id="config.framework.sf_el_ux_hcd_hs">
          <property id="config.framework.sf_el_ux_hcd_hs.irq_ipl" value="board.icu.common.irq.disabled"/>
          <property id="config.framework.sf_el_ux_hcd_hs.fifo_size" value="config.framework.sf_el_ux_hcd_hs.fifo_size.normal"/>
          <property id="config.framework.sf_el_ux_hcd_hs.bulk_pipe_start_index" value="config.framework.sf_el_ux_hcd_hs.bulk_pipe_start_index.pipe1"/>
          <property id="config.framework.sf_el_ux_hcd_hs.VBUSENpin_logic" value="config.framework.sf_el_ux_hcd_hs.VBUSENpin_logic.active_high"/>
          <property id="config.framework.sf_el_ux_hcd_hs.hs_bit" value="config.framework.sf_el_ux_hcd_hs.hs_bit.bitset_high"/>
        </config>
        <config id="config.framework.sf_el_ux_hcd_fs">
          <property id="config.framework.sf_el_ux_hcd_fs.irq_ipl" value="board.icu.common.irq.disabled"/>
          <property id="config.framework.sf_el_ux_hcd_fs.VBUSENpin_logic" value="config.framework.sf_el_ux_hcd_fs.VBUSENpin_logic.active_high"/>
          <property id="config.framework.sf_el_ux_hcd_fs.VCC_LDO_Regulator" value="config.framework.sf_el_ux_hcd_fs.VCC_LDO_Regulator.disabled"/>
        </config>
        <config id="config.framework.sf_el_ux_dcd_hs">
          <property id="config.framework.sf_el_ux_dcd_hs.irq_ipl" value="board.icu.common.irq.disabled"/>
        </config>
        <config id="config.framework.sf_el_ux_dcd_fs">
          <property id="config.framework.sf_el_ux_dcd_fs.irq_ipl" value="board.icu.common.irq.priority4"/>
          <property id="config.framework.sf_el_ux_dcd_fs.VCC_LDO_Regulator" value="config.framework.sf_el_ux_dcd_fs.VCC_LDO_Regulator.enabled"/>
        </config>
        <config id="config.driver.fmi">
          <property id="config.driver.fmi.param_checking_enable" value="config.driver.fmi.param_checking_enable.bsp"/>
          <property id="config.driver.fmi.custom_base_address_symbol" value="g_fmi_data"/>
          <property id="config.driver.fmi.part_number_mask" value="0xFE00"/>
        </config>
        <config id="config.driver.elc">
          <property id="config.driver.elc.checking" value="config.driver.elc.checking.system"/>
        </config>
        <config id="config.driver.rspi">
          <property id="config.driver.rspi.param_checking_enable" value="config.driver.rspi.param_checking_enable.bsp"/>
        </config>
        <config id="config.driver.crc">
          <property id="config.driver.crc.checking" value="config.driver.crc.checking.system"/>
        </config>
        <config id="config.driver.dtc">
          <property id="config.driver.dtc.param_checking_enable" value="config.driver.dtc.param_checking_enable.bsp"/>
          <property id="config.driver.dtc.software_start" value="config.driver.dtc.software_start.disabled"/>
          <property id="config.driver.dtc.vector_table" value=".ssp_dtc_vector_table"/>
        </config>
      </synergyModuleConfiguration>
      <synergyPinConfiguration>
        <pincfg active="true" name="R7FS5D97C2A01CBG.pincfg" symbol="g_bsp_pin_cfg"/>
        <pincfg active="false" name="oldR7FS5D97C2A01CBG.pincfg" symbol=""/>
      </synergyPinConfiguration>
    </synergyConfiguration>
    

  • Hi Prasad. 

    You are facing this error due to an incorrect or missing lower-level stack configuration. Please double-check those to ensure correct operation.

    Here's a discussion that can help you pinpoint what could be the reason causing this: 
    https://community.renesas.com/mcu-mpu/embedded-system-platform/f/forum/8398/fat-on-usb-mass-storage/27032#27032

    Regards,
    Jayesh 

    If this response, or one provided by another user, answers your question, please verify the answer. Thank you!
    Renesas Engineering Community Moderators
    https://community.renesas.com/
    https://academy.renesas.com/
    en-support.renesas.com/.../