FreeRTOS module issue

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

FreeRTOS module issue

1,686 Views
guangwenli
Contributor I

 On the S32SDK_S32K1xx_RTM_3.0.0,Using the FreeRTOS module,

then can't use SPI fuunction :"LPSPI_DRV_MasterTransferBlocking(LPSPICOM1,senddata,readdata,4,100)" ,

and can't use   SBC_Init(&sbc_uja11691_InitConfig0,LPSPICOM2).

If use these funtion ,the system will enter pending.

Labels (1)
0 Kudos
Reply
4 Replies

1,227 Views
razva_tilimpea
NXP Employee
NXP Employee

Hi,

I think you have the same problem as on this thread: https://community.nxp.com/thread/497317

"As the driver uses FreeRTOS API, the driver must be initialized and used inside a FreeRTOS task after the scheduler is started."

Best regards,

Razvan

0 Kudos
Reply

1,227 Views
jorge_a_vazquez
NXP Employee
NXP Employee

Hi guangwen li

Sorry for the late reply, do you still face the issue? Could you share more information about your implementation or share the code that you are using?

There are two examples codes in the SDK, the sbc_uja1169 example and the LPSPI example. In your project, did you initialize the LPSPICOM2? I'm seeing that you are using LPSPICOM1 in your master transfer.

Looking for your reply.

Best regards

Jorge Alcala

0 Kudos
Reply

1,227 Views
guangwenli
Contributor I

Hi, jorge_a_vazquez:

Yes, my problem had not been solved.

In fact, this problem exists with SPI and freeRTOS.

Best Regards,

李光文

BMS AE

Mob: 13590406230

Email: guangwen.li@cecport.com<mailto:guangwen.li@cecport.com>

CECport | www.cecport.com<http://www.cecport.com/>;

发件人: jorge_a_vazquez

发送时间: 2019年8月1日 0:49

收件人: Guangwen.Li 李光文 <guangwen.li@cecport.com>

主题: Re: - Re: FreeRTOS module issue

NXP Community <https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg>

Re: FreeRTOS module issue

reply from Jorge Antonio Alcala Vazquez<https://community.nxp.com/people/jorge_a_vazquez?et=watches.email.thread> in S32 SDK - View the full discussion<https://community.nxp.com/message/1185461?commentID=1185461&et=watches.email.thread#comment-1185461>

0 Kudos
Reply

1,227 Views
razva_tilimpea
NXP Employee
NXP Employee

Hi guangwenli‌,

Did you updated the lpspi instances and are you sure that driver is initialized after the scheduler is started?

Best regards,

Razvan

0 Kudos
Reply