2396020_en-US

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

2396020_en-US

2396020_en-US

LLCE example and U-boot

Hello.

I'm trying to make the LLCE examples work on the Goldbox.

I modified the CAN2CAN example a little bit, and it works if I debug it from S32DS.

If I try to run it from U-boot, however, it executes, but hangs U-boot itself.

These are the commands I'm running:

dcache off; mw.q 0x34000000 0x0 0x100000; dcache on

fatload mmc 0:2 ${loadaddr} /llce.elf

bootm7 ${loadaddr} VTABLE

I can see the CAN traffic on the bus, so the example is running, but U-boot hangs and is not able to accept commands anymore.

After some debugging, I was able to trace the problem to the PlatformInit() call, and in particular the code to set the clock.

If I remove that code, however, the example does not work anymore.

Do you have any suggestions?

Re: LLCE example and U-boot

Hello, @GioMusto 

Thanks for your reply.

Yes, it is for S32G2, not G3, but the method introduced is similar.

Since it is based on early version software packages, it could not be considered as a step by step guide when using recent version software combinations.


BR

Chenyin

Re: LLCE example and U-bootHi @chenyin_h, thanks for your reply.
I see the guide you posted is for the S32G2. Is it the same for S32G3, or are there some differences?

Do you have any suggestion on things to keep an eye on? Common problems, and so on.
Re: LLCE example and U-boot

Hello, @GioMusto 

Thanks for your post.

The issue you mentioned may be caused clock or other resource confliction between M and A side.

1. On S32G product, under default settings, the BSP running on A53 side is designed under the assumption that it has exclusive access to the system, and therefore does not consider potential conflicts introduced by other software components, while in your M core application, it may also touch critical resources like clock/memory, etc. You have to careful about every part of the code, to avoid any possible confliction/re-configuration for critical resources.

2. For running both M7 application and Linux BSP simultaneously, the recommended way is to firstly running a M7 bootloader to manage the resources, as introduced via AN13750 


BR

Chenyin


Tags (1)
No ratings
Version history
Last update:
6 hours ago
Updated by: