User Activity

i am using mxcube version 6.1.1 so i want to code  for udp ethernet ping working code for mx cube version 6.1.1. 
I WANT TO WRITE IN INTERNAL FLASH MEMORY IN WRITE [45] DATA WRITE BUT  ACTUAL  HAL_FLASH_Program(FLASH_TYPEPROGRAM_FLASHWORD, FLASH_ADDRESS, (uint32_t) WRITE )==HAL_OK){}ONLY WRITE A 32 BYTES AT A ONE TIME HOW TO MORE DATA WRITE IN INTERNAL FLASH MEM...
I AM USING IN USB_HS DEVICE MODE ,WHEN I CONNECT USB CABLE TO THE PC THEN I WANT  TO KNOWE WHERE IT IS DETECT AND AFTER THAT I REMOVE USB CABLE THEN WHRE IT IS DETECT GIVE ME ANY REGISTER OR CALL BACK FUNCTION ONLY TELL ME IN DEVICE MODE
I AM USING A ETHRNET ON STM32H734ZI  BUT ETHERNET CONTINUE WORKING FOUR DAY  ON MY DIVICE AFTER STOP MY DEVICE WORKING SO I CAN NOT FIND MY SOFISTICATED SOLUTION IN ETHERNET  PLEASE GIVE MI SOLUTION
when i connected usb connector in stm32h743zi,  that time what function working usb connector and if i remove usb connector then what function going to usb connector ,give me that function i remove usb
Kudos given to