Hello Mark,
First of all, thank you for your readiness in helping me.
As I can see this is still an interesting topic as many has read this thread till now.
I`ve uploaded the bin file into my board but it didn´t work (the USB, I mean). As I mentioned above this is a hand-made PCB, so there must be a hardware fault after all.
I took the liberty to attach a link to the schematic for further help:
https://easyeda.com/editor#id=2b73a1a614f04f84b376c955610659c1
See, in the datasheet VREGIN goes up to 5.5V and works as an input but VOUT33 works as an output. So they are in different circuitry inside the MCU, right?
Although in page 75 of the same datasheet one can read “Connect VREGIN and VOUT33 together and tie to ground through a 10 kΩ resistor. Do not tie directly to ground, as this causes a latch-up risk.”
This is a bit of confusing. I my case it works only when I tie them to 3.3 VCC directly, as you can see in the page 1 of my schematic. I tested the 10 K Ohm resistor too with no avail. Well, in that page it is written “Unused analog interfaces” but USB is not analog, right?
Am I doing it right? I am not an expert in this issue, so in the final board I´ve put 0402 pads arranged in a way that I can choose what to do with soldering iron, for I am hoping that in a machine-made PCB with all neat tracks, length tuning etc. it will work.
For the software part, I forgot to mention that I am using KDS 3.2.0 and KSDK 1.3.0
In AN4905 I cannot find USB_CLK_RECOVER_CTRL[CLOCK_RECOVER_EN anywhere. So, could you direct me to where in the code is that MACRO? I´ve searched system_MK64F12.c, fsl_clock_MK64F12.c and headers alike.
Perhaps you could send me a PE project so I can open clockMan1:fsl_clock_manager and see what is actually happening. The examples in KSDK give me the “no rule to make target” error…
We are not going to commercialize this board, it is for our plant environment only and yes, it will work as a device. In this system there´s a lot of serial trafficking and 24 VCC I/O and they must be synchronized so triggers and timers go to a USB console to feed a log. I will have a chat with my boss about licensing it, anyway, thanks for your advice.
I know I´ve made a lot of “asks” on many different issues, just in the end of the year… sorry for the inconvenience for I am from 8 bit era and I put this as a personal goal.
So, then again, thanks in advance and Happy Holidays.
Marco