S32K142 RAM Allocation

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K142 RAM Allocation

1,227件の閲覧回数
bjrajendra
Senior Contributor I

Hello all,

I'm using S32K142 device and implementing the following.

Basically I'm passing 32-byte array and sending those via can. But I observed that the data changed during the variable got changed during the process & understood that there might be an issue with the memory allocation.

I observed that the device has two sections and allocates data. I used the default setting.

Kindly suggest How to allocate into the both RAM sections.

Raju 

ラベル(1)
0 件の賞賛
3 返答(返信)

1,140件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

unfortunately I do not fully understand the question and the issue.

If you deals with filling message buffer data words then you can refer to 

Transmit FlexCAN S32K148 

If you want to have bigger payload in the CAN message (8 byte by default) then CAN FD feature have to be enabled and you need to choose payload size for message buffers using FDCTRL[MBDSRn] bit fields. Note for higher payloads the MBs address offset varies.

Refer to chapters 55.4.4 FlexCAN memory partition for CAN FD and 55.4.5 FlexCAN message buffer memory map of the RM.

BR, Petr

0 件の賞賛

1,140件の閲覧回数
bjrajendra
Senior Contributor I

Hi Petr,

Thanks for the response.

In fact, I'm passing a 32byte array over a pointer using a function as shown below.

void shareInfo(uint8_t *f_data)

Here the pointer f_data points to an 32-byte array. But during the transfer of the 32-byte data the array is getting modified because of the other function variables.

Kindly suggest some alternatives.

Raju

0 件の賞賛

1,140件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

I'am afraid that without more explanation, code or project I am not able to suggest more.

BR, Petr

0 件の賞賛