Install SPSDK - Creating python environment using Termux application in android device using USB

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Install SPSDK - Creating python environment using Termux application in android device using USB

1,389 次查看
akshatha12
Contributor I

Hi @Gavin_Jia ,

I am attempting to set up SPSDK in a Python environment using Termux application in android to flash firmware via SPI/I2C to a custom IMXRT1176 MCU board (QSPI flash, SDK v2.15.100), but encountering a dependency error.

Steps followed :

python3 -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip
pip install spsdk
spsdk --help

Environment Details:

Termux: Android 15, Linux kernel 5.4.274-qgki (aarch64)

Python: 3.12.11 | Pip: 25.1.1

I am encountering an issue while installing SPSDK in a Python environment via Termux on Android. The installation fails when building wheels for cmsis-pack-manager, and I’d greatly appreciate any guidance or suggestions to resolve this.

"ERROR: Could not build wheels for cmsis-pack-manager, which is required to install pyproject.toml-based projects".

As we need to flash the firmware from android device to other device we require the blhost.(IMXRT1176 Firmware upgrade using SPI/I2C)

I had referred this link : https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1176-Firmware-upgrade-using-SPI-I2C/m-p/211...

(Note: I am using an custom designed IMXRT1176 MCU board with QSPI flash with SDK Version v2_15_100 and also the IMXRT1176_EVKB board.)

So can you guide me if there is any tool or dependencies that I am missing ?

This is critical for my project timeline, so if there’s any additional information I can provide or alternative steps to try, please let me know. Thank you for your time and support—I’m happy to provide further details if needed.

Best regards,
Akshatha 

0 项奖励
回复
3 回复数

1,291 次查看
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @akshatha12 ,

Sorry for the delay because of the backlog.

The phenomenon you are experiencing seems to be the result of some dependencies failing.Since you are installing the SPSDK in a Termux environment, the dependencies may be troublesome to resolve.

But your application scenario should be satisfied with at least a installation of blhost. If you still have problems, do you see if you can use the SEC tool? It's available for Linux/Mac/Windows, I'm not sure if your android environment can install it. It's a packaged host SW, so if you can successfully install it, just find its blhost path and you should be able to perform your flash IMAGE steps.

Best regards,
Gavin

0 项奖励
回复

1,255 次查看
akshatha12
Contributor I

Hi @Gavin_Jia ,

Thank you for your reply.

I tried installing SEC tool, but the architecture of SEC tool package (amd64) and architecture of my device (aarch64) did not match.
Is there any other way to install SEC tool?

By the way, i am able to install SPSDK using "proot-distro" which allowed to run full linux distribution inside termux application.

 

Regards,

Akshatha

0 项奖励
回复

1,234 次查看
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @akshatha12 ,

Good to know your progress!

You shouldn't be able to install the SEC tool directly if the architecture is not consistent. But being able to install the SPSDK is sufficient.

Bests,
Gavin

 

0 项奖励
回复