How to access/manipulate Always On (AON) GPIOs from the SPE/AON processor?

Hello,
That kernel panic log does not help more.
Let’s start from beginning.

  1. Flash the device with original BSP/SPE firmware. The device should be able to boot correctly.
  2. You can re-compile your own kernel and boot the device with updated kernel image. Make sure it works well.
  3. Compile the SPE firmware package, without any change. Replace the spe.bin with your own building,
  4. If 3 is good, you can start with GPIO changes in SPE firmware.

Let us know your progress.

br
ChenJian

First 3 steps are ok. only with cfg file changes I am seeing this errors.

Which BSP / SPE firmware version you are using?

br
ChenJian

All packages are downloaded from here:

I am using ubuntu 22.04 image

Could you confirm the .cfg configuration are correct? I suspect this

o. I’ve not tried 35.2.1 yet.
Is that possible to try old BSP, like 32.5, with Xavier NX BSP + SPE firmware?

I will check 35.2.1 locally, but it may take time.

br
Chenjian

SPE will not be available for old BSP. I have checked for 32.5 its not there.

Anyhow, We want the latest one and not interested in old one (we have this latest BSP for others). Could you try and confirm?

You can visit L4T 32.5 Archive | NVIDIA Developer
and download SPE firmware by https://developer.nvidia.com/embedded/L4T/r32_Release_v5.0/sources/T186/l4t_rt_aux_cpu_src.tbz2

You can just start from 32.5 SPE development and get familiar with SPE updates.

Sure, we will check 35.2 SPE functions, but it may take time.

br
ChenJian

Hello,
I’ve checked the SPE package.
If you are using BSP 35.2.1, unfortunately, SPE package in that version cannot support Xavier NX platform.
You can take a look at Jetson Sensor Processing Engine (SPE) Developer Guide: Welcome (nvidia.com)
In this release, only Orin AGX and Xavier AGX are supported.

br
Chenjian

Hi Jachen,

Thanks for the conformation. Is the below version is tested for Xavier NX platform??

You can take a look at Jetson Sensor Processing Engine (SPE) Developer Guide: Welcome (nvidia.com)

Regards,
Ayyappan R

Hello,
A simple way is to check the docs in SPE source package.
For example, Jetson Sensor Processing Engine (SPE) Developer Guide: GPIO Application (app/gpio-app.c) (nvidia.com) contains the Xavier NX information, and that means the corresponding package is verified in Xavier NX platform.

br
ChenJian

OK. I will try 32.5 SPE development.

Hi Jachen,

Getting the below compilation errors (download SPE firmware by https://developer.nvidia.com/embedded/L4T/r32_Release_v5.0/sources/T186/l4t_rt_aux_cpu_src.tbz2).

Followed this link to resolve error but still I see only one error: Xavier / TX2 SPE (Cortex-R5) Freeertos Compiling Process Record - Programmer Sought

Errors:
yyappan@ayyappan:~/nvidia/SPE/l4t-rt/rt-aux-cpu-demo$ make TARGET=t19x
mkdir -p /home/ayyappan/nvidia/SPE/l4t-rt/rt-aux-cpu-demo/out/t19x
CC clk.c
CC init_padctrl.c
CC spe-clk.c
CC spe-pm-sequencer.c
/home/ayyappan/nvidia/SPE/l4t-rt/rt-aux-cpu-demo/soc/t19x/src/spe-pm-sequencer.c:63:34: error: redundant redeclaration of ‘tegra_hsp_id_top0’ [-Werror=redundant-decls]
63 | extern const struct tegra_hsp_id tegra_hsp_id_top0;
| ^~~~~~~~~~~~~~~~~
In file included from /home/ayyappan/nvidia/SPE/l4t-rt/rt-aux-cpu-demo/soc/t19x/src/spe-pm-sequencer.c:46:
/home/ayyappan/nvidia/SPE/l4t-rt/freertos-common-t19x/include-soc/t194-aon/hsp-tegra-hw.h:36:34: note: previous declaration of ‘tegra_hsp_id_top0’ was here
36 | extern const struct tegra_hsp_id tegra_hsp_id_top0;
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [Makefile:370: /home/ayyappan/nvidia/SPE/l4t-rt/rt-aux-cpu-demo/out/t19x/spe-pm-sequencer.o] Error 1

Regards,
Ayyappan R

Hi Jachen,

Could you guys support the AON feature in the latest version. Going to older version gives lots of issues in Xavier NX. Thinking of using other platform in this case

Regards,
Ayyappan R

Hello, ayyappan.rathinam:
Can you provide more details about ‘Going to older version gives lots of issues in Xavier NX’? Do you mean SPE firmware issue or BSP issue?
BSP 32.5, together with SPE firmware are verified and there should not be any issue, with guides in SPE packages.

The main issue for latest rel-35 SPE support is that Xavier NX support is removed. So there’s no guide for Xavier NX setting update in rel-35 SPE firmware.

If you can use rel-32, we can proceed for SPE building issue.

(In addition, since this topic is solved, it’s better to file a new thread for further discussion.)

br
ChenJian

OK. First will resolve the SPE compilation error.

Today I took the default BSP 32.5 and tried flashing it in my NX borad. But it failed. Will post you the logs soon. Before that SPE compilations should be resolved. Please help in that compilation.

and yes we can open one new thread if you want.

OK.
Please help to open a new thread and paste the URL here. We can track in new thread.

br
Chenjian

Below is the thread:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.