Hi Raduan,
Please show us the schematic of your custom board. Does the circuit of your custom board same as FRDM-KL27Z or the "33.1.3.3 USB bus power supply"?

If your custom board same as FRDM-KL27Z, then you just need to switch from semihosting to UART, please refer: MCUXpresso IDE and Semihosting.
If you don't want to output the data through UART(using externa UART-2-USB adapter), only want to data output through USB0_DP and USB0_DM then you may need to migrate the I2C example to USBCDC example.
Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------