MIMXRT1170-EVKB CAN and FreeMaster examples not working

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MIMXRT1170-EVKB CAN and FreeMaster examples not working

668 Views
Robinson2715
Contributor II
Dear NXP Community
 
I am trying to use the MIMXRT1170-EVKB board with the MBDT developed by Simulink. I am having several issues while using the board with the provided examples of the NXP MBDT:
  •  The CANFD example "evkmimxrt1170_fcan_transfer" does not seem to send any information to the CAN network. When I flash the board with the example , the onboard LED never blinks which means that no CAN message is being sent out. I have connected a Vector CAN device to the board with a 120 ohm resistor in between. I have configured only the basic things: baud rate. 
  • In the same example I am trying to use FreeMASTER. The first time I run it, it seemed to briefly work. But from the second time onwards, I get an error in FreeMASTER "Can not detect the board information". I have tried similar examaples of FreeMASTER with the same result.

Some additional information: 

  • I have tried some of the SDK examples provided in the MCU software and they worked. Specifically, I tried the hello world from the multi-core implementation. 
  • I have tried some of the GPIO from Simulink examples and they seem to work properly. Specifically, the "evkmimxrt1170_gpio_interrupt" .
  • When I connect the board, the virtual mass storage device is missing. Therefore, when I flash the board from Simulink, I used MCU link instead of OpenSDA. I provided as configuration file the one called "MIMXRT1170_SFDP_QSPI.cfx".
  • I am using Windows 10, Matlab 2019B.

 

Any clue what I am doing wrong?

0 Kudos
Reply
1 Reply

472 Views
Robinson2715
Contributor II
I have an update on this

After some unsuccessful attempts to make it work on my side, I got feedback from NXP that the default configuration for this board is wrong, because it was made for the EVK version. So I needed to change the settings of the CAN block:

- disabling the 'loop back self test mode',

- changing the numbers in "propagation segment, phase segment 1, phase segment 2 and re-sync jump width" to 7,2,2,3 respectively.

- remove the J102 and J103 on the EVKB.

This indeed fixed the CAN Tx. However, to test the CAN Rx, I try to receive a message, and sending it back with a different ID, it does not work. I tried to put the RX block in a triggered subsystem, write to a memory location. Then, from in another triggered subsystem read from the memory location send over CAN the message. I only read random number on the other side. Any clue what could be wrong?

With FlexMaster the problem remains. I open it from the example, go to communication wizzard, select "use direct connection to on-board USB port", select the COM port of the board (which I see in the screen), select the boud rate to which I configured the device and I get "No board detected on any of Specified UART communication port". Any clue on this?



Additional information:

I am using Matlab R2019a, Windows 10.

MBDT V1.3

SDK EVKB V2.15.1

On the board I can successfully run the basic I/O examples.
0 Kudos
Reply