Hi Guys,
the flexcan_interrupt example does not work for me with MCUXpressoSDK 2.5.0 at all. I followed the the steps of the readme.txt but since I have only one TWR-K64F120M+TWR-SER set of boards, I used a FRDM-K64F + self-made PCA82C251 board. I copied the board related files ( pin_mux, board, clock_config ...) from the loopback example of frdm-k64f. Additionally I added the initialization of the pins PB18 & PB19 like it is done for TWR-K64F120M. I measured the signals of CANL and CANH and it seems ok. Any Ideas what could be going wrong here ?
It would be nice if someone which have two sets of TWR-K64F120M+TWR-SER could double check if it is working at his desk.
Hi Daniel,
thanks for checking on your desk. In the meantime I got it working as well. There were different problems together.
One of them which could be interesting for others was that the pin numbering of TWR-SER-SCH.pdf is:
and the readme.txt of flexcan_interrupt demo says something different:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PINS NAME TWR-SER1 CONNECTS TO TWR_SER2
CANL J7 PIN 1 J7 PIN 1
GND J7 PIN 2 J7 PIN 2
CANH J7 PIN 3 J7 PIN 3
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sure if you have two twr-k64 +twr-ser combos it will work since you are doing the same failure on both sides...
Best Regards,
Johannes
Thanks Johannes, strange that no one found this before. I will report this .
Regards
Daniel
Hi Johannes:
I did a quick check the flexcan_interrupt demo with two twr-k64 boards, it can work on my side.
I would suggest you see below two threads for CAN work with Frdm-k64 board.
https://community.nxp.com/thread/496759
https://community.nxp.com/thread/493034
Regards
Daniel
Hi Johannes
Clone the uTasker project from GitHub (free and open source) since it contains a FlexCAN solution for your HW which works correctly.
- http://www.utasker.com/docs/uTasker/uTaskerCAN.PDF
- https://www.youtube.com/watch?v=Ha8cv_XEvco
If you have professional requirements it has a turn-key CANopen solution in its supported version.
Regards
Mark
Complete K64 solutions, training and support:http://www.utasker.com/kinetis.html
Kinetis K64:
- http://www.utasker.com/kinetis/FRDM-K64F.html
- http://www.utasker.com/kinetis/TWR-K64F120M.html
- http://www.utasker.com/kinetis/TEENSY_3.5.html
- http://www.utasker.com/kinetis/Hexiwear-K64F.html