Teensy 3.6 and MK66FX1M0VMD18 support?

ChibiOS public support forum for topics related to the Freescale Kinetis family of micro-controllers.

Moderator: utzig

walkerstop
Posts: 9
Joined: Fri Apr 27, 2018 2:35 am
Been thanked: 1 time

Teensy 3.6 and MK66FX1M0VMD18 support?

Postby walkerstop » Fri Apr 27, 2018 2:51 am

Hello everyone, I am trying to get this MCU / board working under ChibiOS.

Some basic things are working now like pin control, but USB communication between the Teensy and my PC is broken.

Here is what the messages look like on the Ubuntu PC I am connecting via USB to this board:

Code: Select all

[795986.548379] usb 4-3: new full-speed USB device number 23 using ohci-pci
[795986.700300] usb 4-3: device descriptor read/64, error -62
[795986.992387] usb 4-3: device descriptor read/64, error -62
[795987.276293] usb 4-3: new full-speed USB device number 24 using ohci-pci
[795987.436337] usb 4-3: device descriptor read/64, error -62
[795987.724336] usb 4-3: device descriptor read/64, error -62
[795988.012357] usb 4-3: new full-speed USB device number 25 using ohci-pci
[795988.428354] usb 4-3: device not accepting address 25, error -62
[795988.576271] usb 4-3: new full-speed USB device number 26 using ohci-pci
[795988.996313] usb 4-3: device not accepting address 26, error -62
[795988.996374] usb usb4-port3: unable to enumerate USB device


Looking at the USB driver running on the MCU, I can see that it is sending data, and it seems to receive as well, the interrupt handler is getting called, but USB0->ERRSTAT is always set. Seems but 0 of USB0->ERRSTAT gets set, which according to the datasheet, means USB PID verification failed. Based on my very limited understanding of USB communication, I think this is something like a checksum, so it might mean that the data coming into the MCU is somehow corrupted.

Does anyone have any pointers for how I could debug this further, or what kind of mistake I might have made in the HALs to lead to this problem?

I can share the code I have so far if that helps! In fact here is what I have so far:
https://github.com/walkerstop/ChibiOS-Contrib

Any help you can provide is greatly appreciated. Also, if anybody is ALREADY porting ChibiOS to this MCU or board, please let me know, I would hate to duplicate the same effort :)

D\0\0gan
Posts: 1
Joined: Fri Apr 27, 2018 2:51 pm

Re: Teensy 3.6 and MK66FX1M0VMD18 support?

Postby D\0\0gan » Fri Apr 27, 2018 3:07 pm

Hi walkerstop,

I just wanted to reach out to say that I JUST started working with ChibiOS on the Teensy 3.6.

I am using this library with the arduino environment (THANKS Greiman!!!):
https://github.com/greiman/ChRt

Like I said, I just started, and I am working my way through Giovanni's documentation:
http://www.chibios.org/dokuwiki/doku.ph ... book:start

I haven't experienced any USB issues yet. I am actually watching my teensy print to the serial monitor right now. I have 5 threads one for each easily accessible UART on the T36, and I have them all talking to each other. So far I2c is working no problem, SPI is working no problem, and I did some very basic SD card writes and reads. I ran into a problem when using the SD card, but it's just because I have never used an RTOS before and I decided I would read up on Chibi before I moved forward. I've really enjoyed Giovanni's documentation, I feel like I've learned a lot (I have no formal computer science education... Just google).

This probably isn't very helpful information, but I wanted to let you know that it's working great for me using Greiman's code.


Return to “Kinetis Support”

Who is online

Users browsing this forum: No registered users and 1 guest