cancel
Showing results for 
Search instead for 
Did you mean: 

Porting of X-CUBE-CLD-GEN to NUCLEO-L4R5ZI

Posted on April 13, 2018 at 09:21

Hi Team,

I have downloaded the package X-CUBE-CLD-GEN, i want to port to

http://www.st.com/en/evaluation-tools/nucleo-l4r5zi.html

, i want to know what are the changes i need to do. 

I'm using Atollic IDE.

i want to understand how to integrate 

http://www.st.com/en/evaluation-tools/nucleo-l4r5zi.html

. Please let me know.

Thanks

Phani

#porting-aws #nucleo-l4r5zi #porting-stm32l4
1 ACCEPTED SOLUTION

Accepted Solutions
Guillaume K
ST Employee
Posted on April 16, 2018 at 15:26

Hello

There are several things to do to port Cloud applications to a new board.

you have to port the network API used by cloud software to the board you are targeting.

See the NET API files under Projects\Common\Shared\Src and Projects\Common\Shared\Inc

net.h, net.c, net_tcp_lwip.c, net_tcp_wifi.c, wifi_net.c, lwip_net.c, c2c_net.c ...

also you have to initialize correctly the net API in your application.

E.g call net_init() with the correct network interface init callback.

see platform_init() in cloud.c.

What network interface do you plan to use ?

What cloud application do you want to use ?

Guillaume.

View solution in original post

2 REPLIES 2
Guillaume K
ST Employee
Posted on April 16, 2018 at 15:26

Hello

There are several things to do to port Cloud applications to a new board.

you have to port the network API used by cloud software to the board you are targeting.

See the NET API files under Projects\Common\Shared\Src and Projects\Common\Shared\Inc

net.h, net.c, net_tcp_lwip.c, net_tcp_wifi.c, wifi_net.c, lwip_net.c, c2c_net.c ...

also you have to initialize correctly the net API in your application.

E.g call net_init() with the correct network interface init callback.

see platform_init() in cloud.c.

What network interface do you plan to use ?

What cloud application do you want to use ?

Guillaume.

Posted on April 16, 2018 at 16:01

Hello Guillaume,

Thanks for the response.

What i have done is i took the X-CUBE-CLD-GEN and compiled the package Generic-MQTT application to Nucleo144 L4R5ZI by just keeping the cloud_test() function with commenting all the peripheral interface. As i understand that L4 and L4+ chipset wise compatibility is there. Further more i have changed the startup_Xxx.s file to L4+. 

In place of peripheral i have customized to L4R5ZI and ported. 

As of now the board is stable. No issues.

Thanks