Not able to send continuous message in FLEXCAN(Block Size = 0)

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

Not able to send continuous message in FLEXCAN(Block Size = 0)

834 Views
gokulavarma_gan
Contributor II

I am working on S32K144 micro. I have initialized Flexcan with 500 Baud Rate. While Downloading data with Block size = 0 , it is giving download error. whenever i am changing Block size = 1, it is working fine.

I would like to know why it is not working in Block Size = 0, If it should work in Block size = 0 , what changes needs to be done.

I am FIFO method in Flexcan whereas DMA is disabled.

Can you please provide a solution for the FLEXCAN to work in BLock Size = 0

0 Kudos
2 Replies

650 Views
petervlna
NXP TechSupport
NXP TechSupport

Hi,

Could you explain me what is the blocksize? Is this a output of some tool?

Could you share more details on this issue?

regards,

Peter

0 Kudos

650 Views
gokulavarma_gan
Contributor II

hi,

Blocksize here refers to the number of frames sent in between the Flow control frames.

Blocksize is hardcoded inside the software. Based on the Blocksize it will transfer the data.

For Example:

1. If the Blocksize is one

During Transfer data request, the Boot loader will send first 8 bytes and waits for the flow control frame. If it receives the flow control frame then it sends the next 8 bytes of data.

2. If the Blocksize is two

It will send two 8 bytes of data and waits for flow control frame, if the Flow control frame is received it will send the next two 8 bytes of data.

0 Kudos