Hi Mark, !
I attached the files (also sources in Keil and IAR, and sources for SDK usb stack... As i mentioned, I changed a file there). I configured UART0 at PORTB16/PORTB17.
I also looked at your binary, but it doesn't work at all.... Meaning no USB device regignized... when I look with debugger then I see the following:
J-Link>halt
WARNING: Target system has been power-cycled
Info: TotalIRLen = 4, IRPrint = 0x01
Info: TotalIRLen = 4, IRPrint = 0x01
Info: Found Cortex-M4 r0p1, Little endian.
Info: FPUnit: 6 code (BP) slots and 2 literal slots
Info: TPIU fitted.
Info: ETM fitted.
Info: ETB present.
Info: CSTF present.
PC = 0000ADB4, CycleCnt = 00000021
R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000
R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000
R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000
R12= 00000000
SP(R13)= 2000FFF4, MSP= 2000FFF4, PSP= 00000000, R14(LR) = FFFFFFFF
XPSR = 61000000: APSR = nZCvq, EPSR = 01000000, IPSR = 000 (NoException)
CFBP = 00000000, CONTROL = 00, FAULTMASK = 00, BASEPRI = 00, PRIMASK = 00
FPU regs: FPU not enabled / not implemented on connected CPU.
J-Link>