NXP FRDM-iMX8MP and NPU

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

NXP FRDM-iMX8MP and NPU

1,664 Views
MTeschke
Contributor I

Hello,

We have been working on the FRDM-iMX8MP with Yocto for some time now, first with Scarthgap, which was unstable in some areas. We used the Matter variant once and once without Matter with the i612 chip.

We have now switched to Walnascar, which is not a problem. Although there have been some changes in the NXP layers, the board is (still) supported. However, we have noticed that Matter will no longer be supported for FRDM-iMX8MP as of q1_2025. This is extremely annoying, as we had relied on it for the OEM project and now have to do everything manually. Will support for the board be provided? I-MX9 is all well and good, but the iMX8 stuff must not be neglected in the long term.

We have also found that it is almost impossible to create a model with INT8 on the FRDM-iMX8MP. eIQ can no longer do it or crashes. And other models cannot be converted because frameworks have a bug and generate errors. Or the models are unusable.

Is there a solution to this?

We have been trying for weeks to get Detect, Multipose, and reID to work.

Detect is not really the problem, as there is TFLite from NXP that can be used. (But it is also not trainable, and eID only causes problems under Ubuntu 20.04.)

Pose is only available as a single pose, int8 -> float32.

And reID is not possible at all.

Will the possibilities change with the i-MX95? Even if it will take forever for the imX95 to hit the market and for an FRDM Dev from NXP to be available for purchase. Especially since eIQ is fully usable.

How do you do it?

Labels (3)
0 Kudos
Reply
2 Replies

1,614 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

While Matter support is scheduled to end for FRDM-iMX8MP in Q1 2025, NXP continues to support the i.MX 8M Plus family through other software releases. The transition to Walnascar was a positive step, and this platform will continue to receive updates. The i.MX 8 family remains an important product line even as i.MX 9 series development progresses.

Regarding NPU model optimization challenges:
The difficulties you're experiencing with INT8 model conversion for the NPU are known issues. There are several approaches to resolve these:

1. For detection models:
- The TFLite models provided by NXP are indeed usable but have limitations for training.

2. For pose estimation:
- The single pose models with int8→float32 conversion are currently the best supported option.
- For the FRDM-iMX8MP, you can use the pre-built demo application with the command: `/usr/bin/gstnninferencedemo-posenet-camera /dev/video3`

3. For reID models:
- These are more challenging to implement on the current platform.

For better results with model conversion:
- Follow the proper workflow: .pb → .onnx (with PyTorch) → .tflite with eIQ (quantization) → optimized .tflite
- When using eIQ, ensure you have sufficient training data (300+ images) for proper quantization
- Consider using eIQ v1.12.1 instead of newer versions which may have conversion bugs

The i.MX 95 will offer improved NPU capabilities with better model support through the Neutron delegate. While the FRDM development board availability timeline is still pending, the enhanced NPU will support more complex models and operations.

Regards

0 Kudos
Reply

1,604 Views
MTeschke
Contributor I

Hello,

thank you for your detailed responses.

As a future partner, I assume that the i.MX8 family will continue to receive solid support with regard to frameworks, especially since it is listed in Active Longevity from 2034 to 2038. From a developer’s perspective, it is of course very frustrating when support for Matter and potentially other components is discontinued. This significantly slows down development, and especially with Yocto it is sometimes difficult to achieve meaningful results under such conditions.

Based on this, we can assume that the FRDM i.MX8MP will no longer receive Matter support, while only other boards of the i.MX8 family have received such support so far in the latest release.

For certain use cases without strict requirements, the provided prebuilt detection models can of course be used. However, it is very difficult to obtain reliable INT8 versions of these models without errors.

This issue is less related to the i.MX8 or i.MX9 themselves and more to framework-related problems, for which NXP—aside from eIQ—is not directly responsible. We are aware of this.

The single-pose models are usable, as we know, but we require multi-pose. While it is possible to force single-pose models into a multi-pose setup in combination with detection, this is not a clean or ideal solution.

Regarding the i.MX9: yes, the overall concept sounds very promising. However, even the best SoC with an NPU is of limited value if the frameworks are not capable of generating the required models. This is not necessarily an NXP issue, except in the context of eIQ. We hope that with the i.MX9, the tooling will become more modern and stable. It would also be highly desirable if NXP were able to integrate very strong YOLO models—such as the newer versions from v10 onward—into eIQ. These models are extremely accurate, even though we are aware of their internal complexity.

For now, we will pause our development until the launch of the i.MX9, as we specifically require the i.MX95.

Thank you for the information.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2260293%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ENXP%20FRDM-iMX8MP%20and%20NPU%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2260293%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EWe%20have%20been%20working%20on%20the%20FRDM-iMX8MP%20with%20Yocto%20for%20some%20time%20now%2C%20first%20with%20Scarthgap%2C%20which%20was%20unstable%20in%20some%20areas.%20We%20used%20the%20Matter%20variant%20once%20and%20once%20without%20Matter%20with%20the%20i612%20chip.%3C%2FP%3E%3CP%3EWe%20have%20now%20switched%20to%20Walnascar%2C%20which%20is%20not%20a%20problem.%20Although%20there%20have%20been%20some%20changes%20in%20the%20NXP%20layers%2C%20the%20board%20is%20(still)%20supported.%20However%2C%20we%20have%20noticed%20that%20Matter%20will%20no%20longer%20be%20supported%20for%20FRDM-iMX8MP%20as%20of%20q1_2025.%20This%20is%20extremely%20annoying%2C%20as%20we%20had%20relied%20on%20it%20for%20the%20OEM%20project%20and%20now%20have%20to%20do%20everything%20manually.%20Will%20support%20for%20the%20board%20be%20provided%3F%20I-MX9%20is%20all%20well%20and%20good%2C%20but%20the%20iMX8%20stuff%20must%20not%20be%20neglected%20in%20the%20long%20term.%3C%2FP%3E%3CP%3EWe%20have%20also%20found%20that%20it%20is%20almost%20impossible%20to%20create%20a%20model%20with%20INT8%20on%20the%20FRDM-iMX8MP.%20eIQ%20can%20no%20longer%20do%20it%20or%20crashes.%20And%20other%20models%20cannot%20be%20converted%20because%20frameworks%20have%20a%20bug%20and%20generate%20errors.%20Or%20the%20models%20are%20unusable.%3C%2FP%3E%3CP%3EIs%20there%20a%20solution%20to%20this%3F%3C%2FP%3E%3CP%3EWe%20have%20been%20trying%20for%20weeks%20to%20get%20Detect%2C%20Multipose%2C%20and%20reID%20to%20work.%3C%2FP%3E%3CP%3EDetect%20is%20not%20really%20the%20problem%2C%20as%20there%20is%20TFLite%20from%20NXP%20that%20can%20be%20used.%20(But%20it%20is%20also%20not%20trainable%2C%20and%20eID%20only%20causes%20problems%20under%20Ubuntu%2020.04.)%3C%2FP%3E%3CP%3EPose%20is%20only%20available%20as%20a%20single%20pose%2C%20int8%20-%26gt%3B%20float32.%3C%2FP%3E%3CP%3EAnd%20reID%20is%20not%20possible%20at%20all.%3C%2FP%3E%3CP%3EWill%20the%20possibilities%20change%20with%20the%20i-MX95%3F%20Even%20if%20it%20will%20take%20forever%20for%20the%20imX95%20to%20hit%20the%20market%20and%20for%20an%20FRDM%20Dev%20from%20NXP%20to%20be%20available%20for%20purchase.%20Especially%20since%20eIQ%20is%20fully%20usable.%3C%2FP%3E%3CP%3EHow%20do%20you%20do%20it%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2260293%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EFRDM-Training%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ei.MX8ULP%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EYocto%20Project%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2261468%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20NXP%20FRDM-iMX8MP%20and%20NPU%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2261468%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3Ethank%20you%20for%20your%20detailed%20responses.%3C%2FP%3E%3CP%3EAs%20a%20future%20partner%2C%20I%20assume%20that%20the%20i.MX8%20family%20will%20continue%20to%20receive%20solid%20support%20with%20regard%20to%20frameworks%2C%20especially%20since%20it%20is%20listed%20in%20Active%20Longevity%20from%202034%20to%202038.%20From%20a%20developer%E2%80%99s%20perspective%2C%20it%20is%20of%20course%20very%20frustrating%20when%20support%20for%20Matter%20and%20potentially%20other%20components%20is%20discontinued.%20This%20significantly%20slows%20down%20development%2C%20and%20especially%20with%20Yocto%20it%20is%20sometimes%20difficult%20to%20achieve%20meaningful%20results%20under%20such%20conditions.%3C%2FP%3E%3CP%3EBased%20on%20this%2C%20we%20can%20assume%20that%20the%20FRDM%20i.MX8MP%20will%20no%20longer%20receive%20Matter%20support%2C%20while%20only%20other%20boards%20of%20the%20i.MX8%20family%20have%20received%20such%20support%20so%20far%20in%20the%20latest%20release.%3C%2FP%3E%3CP%3EFor%20certain%20use%20cases%20without%20strict%20requirements%2C%20the%20provided%20prebuilt%20detection%20models%20can%20of%20course%20be%20used.%20However%2C%20it%20is%20very%20difficult%20to%20obtain%20reliable%20INT8%20versions%20of%20these%20models%20without%20errors.%3C%2FP%3E%3CP%3EThis%20issue%20is%20less%20related%20to%20the%20i.MX8%20or%20i.MX9%20themselves%20and%20more%20to%20framework-related%20problems%2C%20for%20which%20NXP%E2%80%94aside%20from%20eIQ%E2%80%94is%20not%20directly%20responsible.%20We%20are%20aware%20of%20this.%3C%2FP%3E%3CP%3EThe%20single-pose%20models%20are%20usable%2C%20as%20we%20know%2C%20but%20we%20require%20multi-pose.%20While%20it%20is%20possible%20to%20force%20single-pose%20models%20into%20a%20multi-pose%20setup%20in%20combination%20with%20detection%2C%20this%20is%20not%20a%20clean%20or%20ideal%20solution.%3C%2FP%3E%3CP%3ERegarding%20the%20i.MX9%3A%20yes%2C%20the%20overall%20concept%20sounds%20very%20promising.%20However%2C%20even%20the%20best%20SoC%20with%20an%20NPU%20is%20of%20limited%20value%20if%20the%20frameworks%20are%20not%20capable%20of%20generating%20the%20required%20models.%20This%20is%20not%20necessarily%20an%20NXP%20issue%2C%20except%20in%20the%20context%20of%20eIQ.%20We%20hope%20that%20with%20the%20i.MX9%2C%20the%20tooling%20will%20become%20more%20modern%20and%20stable.%20It%20would%20also%20be%20highly%20desirable%20if%20NXP%20were%20able%20to%20integrate%20very%20strong%20YOLO%20models%E2%80%94such%20as%20the%20newer%20versions%20from%20v10%20onward%E2%80%94into%20eIQ.%20These%20models%20are%20extremely%20accurate%2C%20even%20though%20we%20are%20aware%20of%20their%20internal%20complexity.%3C%2FP%3E%3CP%3EFor%20now%2C%20we%20will%20pause%20our%20development%20until%20the%20launch%20of%20the%20i.MX9%2C%20as%20we%20specifically%20require%20the%20i.MX95.%3C%2FP%3E%3CP%3EThank%20you%20for%20the%20information.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2261302%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20NXP%20FRDM-iMX8MP%20and%20NPU%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2261302%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EWhile%20Matter%20support%20is%20scheduled%20to%20end%20for%20FRDM-iMX8MP%20in%20Q1%202025%2C%20NXP%20continues%20to%20support%20the%20i.MX%208M%20Plus%20family%20through%20other%20software%20releases.%20The%20transition%20to%20Walnascar%20was%20a%20positive%20step%2C%20and%20this%20platform%20will%20continue%20to%20receive%20updates.%20The%20i.MX%208%20family%20remains%20an%20important%20product%20line%20even%20as%20i.MX%209%20series%20development%20progresses.%3CBR%20%2F%3E%3CBR%20%2F%3ERegarding%20NPU%20model%20optimization%20challenges%3A%3CBR%20%2F%3EThe%20difficulties%20you're%20experiencing%20with%20INT8%20model%20conversion%20for%20the%20NPU%20are%20known%20issues.%20There%20are%20several%20approaches%20to%20resolve%20these%3A%3CBR%20%2F%3E%3CBR%20%2F%3E1.%20For%20detection%20models%3A%3CBR%20%2F%3E-%20The%20TFLite%20models%20provided%20by%20NXP%20are%20indeed%20usable%20but%20have%20limitations%20for%20training.%3CBR%20%2F%3E%3CBR%20%2F%3E2.%20For%20pose%20estimation%3A%3CBR%20%2F%3E-%20The%20single%20pose%20models%20with%20int8%E2%86%92float32%20conversion%20are%20currently%20the%20best%20supported%20option.%3CBR%20%2F%3E-%20For%20the%20FRDM-iMX8MP%2C%20you%20can%20use%20the%20pre-built%20demo%20application%20with%20the%20command%3A%20%60%2Fusr%2Fbin%2Fgstnninferencedemo-posenet-camera%20%2Fdev%2Fvideo3%60%3CBR%20%2F%3E%3CBR%20%2F%3E3.%20For%20reID%20models%3A%3CBR%20%2F%3E-%20These%20are%20more%20challenging%20to%20implement%20on%20the%20current%20platform.%3CBR%20%2F%3E%3CBR%20%2F%3EFor%20better%20results%20with%20model%20conversion%3A%3CBR%20%2F%3E-%20Follow%20the%20proper%20workflow%3A%20.pb%20%E2%86%92%20.onnx%20(with%20PyTorch)%20%E2%86%92%20.tflite%20with%20eIQ%20(quantization)%20%E2%86%92%20optimized%20.tflite%3CBR%20%2F%3E-%20When%20using%20eIQ%2C%20ensure%20you%20have%20sufficient%20training%20data%20(300%2B%20images)%20for%20proper%20quantization%3CBR%20%2F%3E-%20Consider%20using%20eIQ%20v1.12.1%20instead%20of%20newer%20versions%20which%20may%20have%20conversion%20bugs%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20i.MX%2095%20will%20offer%20improved%20NPU%20capabilities%20with%20better%20model%20support%20through%20the%20Neutron%20delegate.%20While%20the%20FRDM%20development%20board%20availability%20timeline%20is%20still%20pending%2C%20the%20enhanced%20NPU%20will%20support%20more%20complex%20models%20and%20operations.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ERegards%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E