ARM GAS /tmp/cczQvVBm.s page 1 1 .cpu cortex-m3 2 .arch armv7-m 3 .fpu softvfp 4 .eabi_attribute 20, 1 5 .eabi_attribute 21, 1 6 .eabi_attribute 23, 3 7 .eabi_attribute 24, 1 8 .eabi_attribute 25, 1 9 .eabi_attribute 26, 1 10 .eabi_attribute 30, 1 11 .eabi_attribute 34, 1 12 .eabi_attribute 18, 4 13 .file "usb_device.c" 14 .text 15 .Ltext0: 16 .cfi_sections .debug_frame 17 .section .text.MX_USB_DEVICE_Init,"ax",%progbits 18 .align 1 19 .global MX_USB_DEVICE_Init 20 .syntax unified 21 .thumb 22 .thumb_func 24 MX_USB_DEVICE_Init: 25 .LFB655: 26 .file 1 "USB_DEVICE/App/usb_device.c" 1:USB_DEVICE/App/usb_device.c **** /* USER CODE BEGIN Header */ 2:USB_DEVICE/App/usb_device.c **** /** 3:USB_DEVICE/App/usb_device.c **** ****************************************************************************** 4:USB_DEVICE/App/usb_device.c **** * @file : usb_device.c 5:USB_DEVICE/App/usb_device.c **** * @version : v2.0_Cube 6:USB_DEVICE/App/usb_device.c **** * @brief : This file implements the USB Device 7:USB_DEVICE/App/usb_device.c **** ****************************************************************************** 8:USB_DEVICE/App/usb_device.c **** * @attention 9:USB_DEVICE/App/usb_device.c **** * 10:USB_DEVICE/App/usb_device.c **** * Copyright (c) 2024 STMicroelectronics. 11:USB_DEVICE/App/usb_device.c **** * All rights reserved. 12:USB_DEVICE/App/usb_device.c **** * 13:USB_DEVICE/App/usb_device.c **** * This software is licensed under terms that can be found in the LICENSE file 14:USB_DEVICE/App/usb_device.c **** * in the root directory of this software component. 15:USB_DEVICE/App/usb_device.c **** * If no LICENSE file comes with this software, it is provided AS-IS. 16:USB_DEVICE/App/usb_device.c **** * 17:USB_DEVICE/App/usb_device.c **** ****************************************************************************** 18:USB_DEVICE/App/usb_device.c **** */ 19:USB_DEVICE/App/usb_device.c **** /* USER CODE END Header */ 20:USB_DEVICE/App/usb_device.c **** 21:USB_DEVICE/App/usb_device.c **** /* Includes ------------------------------------------------------------------*/ 22:USB_DEVICE/App/usb_device.c **** 23:USB_DEVICE/App/usb_device.c **** #include "usb_device.h" 24:USB_DEVICE/App/usb_device.c **** #include "usbd_core.h" 25:USB_DEVICE/App/usb_device.c **** #include "usbd_desc.h" 26:USB_DEVICE/App/usb_device.c **** #include "usbd_cdc.h" 27:USB_DEVICE/App/usb_device.c **** #include "usbd_cdc_if.h" 28:USB_DEVICE/App/usb_device.c **** 29:USB_DEVICE/App/usb_device.c **** /* USER CODE BEGIN Includes */ 30:USB_DEVICE/App/usb_device.c **** 31:USB_DEVICE/App/usb_device.c **** /* USER CODE END Includes */ 32:USB_DEVICE/App/usb_device.c **** ARM GAS /tmp/cczQvVBm.s page 2 33:USB_DEVICE/App/usb_device.c **** /* USER CODE BEGIN PV */ 34:USB_DEVICE/App/usb_device.c **** /* Private variables ---------------------------------------------------------*/ 35:USB_DEVICE/App/usb_device.c **** 36:USB_DEVICE/App/usb_device.c **** /* USER CODE END PV */ 37:USB_DEVICE/App/usb_device.c **** 38:USB_DEVICE/App/usb_device.c **** /* USER CODE BEGIN PFP */ 39:USB_DEVICE/App/usb_device.c **** /* Private function prototypes -----------------------------------------------*/ 40:USB_DEVICE/App/usb_device.c **** 41:USB_DEVICE/App/usb_device.c **** /* USER CODE END PFP */ 42:USB_DEVICE/App/usb_device.c **** 43:USB_DEVICE/App/usb_device.c **** /* USB Device Core handle declaration. */ 44:USB_DEVICE/App/usb_device.c **** USBD_HandleTypeDef hUsbDeviceFS; 45:USB_DEVICE/App/usb_device.c **** 46:USB_DEVICE/App/usb_device.c **** /* 47:USB_DEVICE/App/usb_device.c **** * -- Insert your variables declaration here -- 48:USB_DEVICE/App/usb_device.c **** */ 49:USB_DEVICE/App/usb_device.c **** /* USER CODE BEGIN 0 */ 50:USB_DEVICE/App/usb_device.c **** 51:USB_DEVICE/App/usb_device.c **** /* USER CODE END 0 */ 52:USB_DEVICE/App/usb_device.c **** 53:USB_DEVICE/App/usb_device.c **** /* 54:USB_DEVICE/App/usb_device.c **** * -- Insert your external function declaration here -- 55:USB_DEVICE/App/usb_device.c **** */ 56:USB_DEVICE/App/usb_device.c **** /* USER CODE BEGIN 1 */ 57:USB_DEVICE/App/usb_device.c **** 58:USB_DEVICE/App/usb_device.c **** /* USER CODE END 1 */ 59:USB_DEVICE/App/usb_device.c **** 60:USB_DEVICE/App/usb_device.c **** /** 61:USB_DEVICE/App/usb_device.c **** * Init USB device Library, add supported class and start the library 62:USB_DEVICE/App/usb_device.c **** * @retval None 63:USB_DEVICE/App/usb_device.c **** */ 64:USB_DEVICE/App/usb_device.c **** void MX_USB_DEVICE_Init(void) 65:USB_DEVICE/App/usb_device.c **** { 27 .loc 1 65 1 view -0 28 .cfi_startproc 29 @ args = 0, pretend = 0, frame = 0 30 @ frame_needed = 0, uses_anonymous_args = 0 31 0000 08B5 push {r3, lr} 32 .LCFI0: 33 .cfi_def_cfa_offset 8 34 .cfi_offset 3, -8 35 .cfi_offset 14, -4 66:USB_DEVICE/App/usb_device.c **** /* USER CODE BEGIN USB_DEVICE_Init_PreTreatment */ 67:USB_DEVICE/App/usb_device.c **** 68:USB_DEVICE/App/usb_device.c **** /* USER CODE END USB_DEVICE_Init_PreTreatment */ 69:USB_DEVICE/App/usb_device.c **** 70:USB_DEVICE/App/usb_device.c **** /* Init Device Library, add supported class and start the library. */ 71:USB_DEVICE/App/usb_device.c **** if (USBD_Init(&hUsbDeviceFS, &FS_Desc, DEVICE_FS) != USBD_OK) 36 .loc 1 71 3 view .LVU1 37 .loc 1 71 7 is_stmt 0 view .LVU2 38 0002 0022 movs r2, #0 39 0004 0F49 ldr r1, .L11 40 0006 1048 ldr r0, .L11+4 41 0008 FFF7FEFF bl USBD_Init 42 .LVL0: 43 .loc 1 71 6 view .LVU3 44 000c 70B9 cbnz r0, .L7 ARM GAS /tmp/cczQvVBm.s page 3 45 .L2: 72:USB_DEVICE/App/usb_device.c **** { 73:USB_DEVICE/App/usb_device.c **** Error_Handler(); 74:USB_DEVICE/App/usb_device.c **** } 75:USB_DEVICE/App/usb_device.c **** if (USBD_RegisterClass(&hUsbDeviceFS, &USBD_CDC) != USBD_OK) 46 .loc 1 75 3 is_stmt 1 view .LVU4 47 .loc 1 75 7 is_stmt 0 view .LVU5 48 000e 0F49 ldr r1, .L11+8 49 0010 0D48 ldr r0, .L11+4 50 0012 FFF7FEFF bl USBD_RegisterClass 51 .LVL1: 52 .loc 1 75 6 view .LVU6 53 0016 60B9 cbnz r0, .L8 54 .L3: 76:USB_DEVICE/App/usb_device.c **** { 77:USB_DEVICE/App/usb_device.c **** Error_Handler(); 78:USB_DEVICE/App/usb_device.c **** } 79:USB_DEVICE/App/usb_device.c **** if (USBD_CDC_RegisterInterface(&hUsbDeviceFS, &USBD_Interface_fops_FS) != USBD_OK) 55 .loc 1 79 3 is_stmt 1 view .LVU7 56 .loc 1 79 7 is_stmt 0 view .LVU8 57 0018 0D49 ldr r1, .L11+12 58 001a 0B48 ldr r0, .L11+4 59 001c FFF7FEFF bl USBD_CDC_RegisterInterface 60 .LVL2: 61 .loc 1 79 6 view .LVU9 62 0020 50B9 cbnz r0, .L9 63 .L4: 80:USB_DEVICE/App/usb_device.c **** { 81:USB_DEVICE/App/usb_device.c **** Error_Handler(); 82:USB_DEVICE/App/usb_device.c **** } 83:USB_DEVICE/App/usb_device.c **** if (USBD_Start(&hUsbDeviceFS) != USBD_OK) 64 .loc 1 83 3 is_stmt 1 view .LVU10 65 .loc 1 83 7 is_stmt 0 view .LVU11 66 0022 0948 ldr r0, .L11+4 67 0024 FFF7FEFF bl USBD_Start 68 .LVL3: 69 .loc 1 83 6 view .LVU12 70 0028 48B9 cbnz r0, .L10 71 .L1: 84:USB_DEVICE/App/usb_device.c **** { 85:USB_DEVICE/App/usb_device.c **** Error_Handler(); 86:USB_DEVICE/App/usb_device.c **** } 87:USB_DEVICE/App/usb_device.c **** 88:USB_DEVICE/App/usb_device.c **** /* USER CODE BEGIN USB_DEVICE_Init_PostTreatment */ 89:USB_DEVICE/App/usb_device.c **** 90:USB_DEVICE/App/usb_device.c **** /* USER CODE END USB_DEVICE_Init_PostTreatment */ 91:USB_DEVICE/App/usb_device.c **** } 72 .loc 1 91 1 view .LVU13 73 002a 08BD pop {r3, pc} 74 .L7: 73:USB_DEVICE/App/usb_device.c **** } 75 .loc 1 73 5 is_stmt 1 view .LVU14 76 002c FFF7FEFF bl Error_Handler 77 .LVL4: 78 0030 EDE7 b .L2 79 .L8: 77:USB_DEVICE/App/usb_device.c **** } ARM GAS /tmp/cczQvVBm.s page 4 80 .loc 1 77 5 view .LVU15 81 0032 FFF7FEFF bl Error_Handler 82 .LVL5: 83 0036 EFE7 b .L3 84 .L9: 81:USB_DEVICE/App/usb_device.c **** } 85 .loc 1 81 5 view .LVU16 86 0038 FFF7FEFF bl Error_Handler 87 .LVL6: 88 003c F1E7 b .L4 89 .L10: 85:USB_DEVICE/App/usb_device.c **** } 90 .loc 1 85 5 view .LVU17 91 003e FFF7FEFF bl Error_Handler 92 .LVL7: 93 .loc 1 91 1 is_stmt 0 view .LVU18 94 0042 F2E7 b .L1 95 .L12: 96 .align 2 97 .L11: 98 0044 00000000 .word FS_Desc 99 0048 00000000 .word .LANCHOR0 100 004c 00000000 .word USBD_CDC 101 0050 00000000 .word USBD_Interface_fops_FS 102 .cfi_endproc 103 .LFE655: 105 .global hUsbDeviceFS 106 .section .bss.hUsbDeviceFS,"aw",%nobits 107 .align 2 108 .set .LANCHOR0,. + 0 111 hUsbDeviceFS: 112 0000 00000000 .space 708 112 00000000 112 00000000 112 00000000 112 00000000 113 .text 114 .Letext0: 115 .file 2 "/opt/gcc-arm/arm-none-eabi/include/machine/_default_types.h" 116 .file 3 "/opt/gcc-arm/arm-none-eabi/include/sys/_stdint.h" 117 .file 4 "Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_dma.h" 118 .file 5 "Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_tim.h" 119 .file 6 "Middlewares/ST/STM32_USB_Device_Library/Core/Inc/usbd_def.h" 120 .file 7 "Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc/usbd_cdc.h" 121 .file 8 "USB_DEVICE/App/usbd_desc.h" 122 .file 9 "USB_DEVICE/App/usbd_cdc_if.h" 123 .file 10 "Middlewares/ST/STM32_USB_Device_Library/Core/Inc/usbd_core.h" 124 .file 11 "Core/Inc/main.h" ARM GAS /tmp/cczQvVBm.s page 5 DEFINED SYMBOLS *ABS*:0000000000000000 usb_device.c /tmp/cczQvVBm.s:18 .text.MX_USB_DEVICE_Init:0000000000000000 $t /tmp/cczQvVBm.s:24 .text.MX_USB_DEVICE_Init:0000000000000000 MX_USB_DEVICE_Init /tmp/cczQvVBm.s:98 .text.MX_USB_DEVICE_Init:0000000000000044 $d /tmp/cczQvVBm.s:111 .bss.hUsbDeviceFS:0000000000000000 hUsbDeviceFS /tmp/cczQvVBm.s:107 .bss.hUsbDeviceFS:0000000000000000 $d UNDEFINED SYMBOLS USBD_Init USBD_RegisterClass USBD_CDC_RegisterInterface USBD_Start Error_Handler FS_Desc USBD_CDC USBD_Interface_fops_FS