How to standalone running FlexCAN_Ip_Example_S32G399A_M7 on s32g3 target brd ?

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

How to standalone running FlexCAN_Ip_Example_S32G399A_M7 on s32g3 target brd ?

Jump to solution
1,085 Views
fengxianeric
Contributor IV

I compiled m7 core binary file FlexCAN_Ip_Example_S32G399A_M7.elf, but have no idea to run it as standalone service (to control sth).

BTW,  my purpose is that m7 image can be running as can message receiver end from A53 core command line app as sender.

0 Kudos
1 Solution
908 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

There is no guidelines nor documentation for this loading process to the M7 core.

If you are following the IPCF example and it is working, that is great. If not, the IVT creation and Blob image is the recommended process.

Please, let us know.

View solution in original post

0 Kudos
9 Replies
1,075 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Are you using S32DS? If so, you can debug the application with the provided S32Debugger configuration. If you are using tresos, there is a Lauterbach script that should be provided.

If you are trying to communicate both M7 and A53 core, we recommend the IPCF driver, since it is the main feature that it provides.

Please, let us know.

0 Kudos
1,059 Views
fengxianeric
Contributor IV

Thanks.

To run image by debugger I already gave a trial on it, but it is not my point because it is not the good way to demonstrate, I just want to let m7 core do command msg translater to control flexcan interface. thanks again

0 Kudos
1,046 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for your feedback.

FlexCAN example is provided as an internal-loop from NXP, there are no examples that use the external transceiver from within the FlexCAN module.

The examples that use the external transceiver are the ones provided under the LLCE package.

Please, let us know.

0 Kudos
972 Views
fengxianeric
Contributor IV

Thanks.

Yes I saw the llce project code, but still have no idea on how to make it run independently ?

0 Kudos
947 Views
fengxianeric
Contributor IV

I mean power-on running or commands activate it, not debugging method, thanks.

0 Kudos
958 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for your feedback.

When you say "no idea on how to make it run independently", what are you referring to?

The examples can be run from the M7 core, no problem from our side.

Please, let us know.

0 Kudos
940 Views
fengxianeric
Contributor IV

BTW, for current stage it is acceptable for us to invoke it with similar ipcf testing instance method (startm7).

0 Kudos
928 Views
fengxianeric
Contributor IV

Could you please correct me for my testing method ?  I learned this from ipcf sw stack. Thanks.

-------------------------------------------

=> dcache off
=> ping 192.168.1.38
Failed to get speed of XPCS for emac1_xpcsPFEng firmware file 'mmc@0:1:s32g_pfe_class.fw' loading failed: -2
eth_eqos Waiting for PHY auto negotiation to complete....... done
Using eth_eqos device
host 192.168.1.38 is alive
=> mw.q 0x34000000 0x0 0x100000
=> tftp 0x8000000 Can_Llce_DS_Can2Can_S32G399A_M7.bin
Using eth_eqos device
TFTP from server 192.168.1.38; our IP address is 192.168.1.100
Filename 'Can_Llce_DS_Can2Can_S32G399A_M7.bin'.

TFTP error: trying to overwrite reserved memory...
=> tftp 0x8000000 Can_Llce_DS_Can2Can_S32G399A_M7.bin
Using eth_eqos device
TFTP from server 192.168.1.38; our IP address is 192.168.1.100
Filename 'Can_Llce_DS_Can2Can_S32G399A_M7.bin'.

TFTP error: trying to overwrite reserved memory...
=> tftp 0x80000000 Can_Llce_DS_Can2Can_S32G399A_M7.bin
Using eth_eqos device
TFTP from server 192.168.1.38; our IP address is 192.168.1.100
Filename 'Can_Llce_DS_Can2Can_S32G399A_M7.bin'.
Load address: 0x80000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
###################################################
1.5 MiB/s
done
Bytes transferred = 5505032 (540008 hex)
=> cp.q 0x80000000 0x34300000 0x60000
=> startm7 0x34381000
Starting CM7_0 core at SRAM address 0x34381000 ... done.
=> NOTICE: Reset status: Power-On Reset

0 Kudos
909 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

There is no guidelines nor documentation for this loading process to the M7 core.

If you are following the IPCF example and it is working, that is great. If not, the IVT creation and Blob image is the recommended process.

Please, let us know.

0 Kudos