I am working on STM32 Development Board (STM32L476RG)

unable to dump the code on the STM32

Does that mean that the code will not upload due to an error? Please post the code and error, if so.

I2C output i was unable to see

Can you elaborate on that? How does one "see I2C"?

Please read the "how to use this forum-please read" stickies to see how to properly format and post code and error messages and some hints on what we need to help you. See #7 and 10 especially.