Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
SDK 中的示例应用程序 ethosu_apps 未按预期运行 我正在尝试按照说明(来自第 6.2.7 节)从下载的 SDK 构建 Cortex-M33 固件。 使用 GNU arm 工具链 13.x,我可以编译演示应用程序 ethosu_apps 但是当我运行 uboot 时,我看到 Cortex M33 的 COM/串行端口中有错误日志 ================== 初始化 Arm Ethos-U E:推理期间发生 NPU 错误。(ethosu_driver.c:542) E: NPU 状态=0x00000804,qread=0,cmd_end_reached=0(ethosu_device_u55_u65.c:182) 节点 ethos-u(编号 0)调用失败,状态为 1 E:调用推理失败:job=job(inference_process.cpp:281) 推理状态:失败 ================== 我希望它能按原样工作,有人能帮助我吗? NPU|ML 回复:来自 SDK 的示例应用程序,即 ethosu_apps,未按预期运行 谢谢@Chavira 。 使用提供的补丁,我可以看到 label_image 按预期工作。 回复:来自 SDK 的示例应用程序,即 ethosu_apps,未按预期运行 谢谢@Chavira , 通过建议的更改,我可以看到 ethosu_apps.bin 在从 uboot 启动时似乎按预期工作。 您有机会研究一下我在帖子中提到的问题吗? 回复:来自 SDK 的示例应用程序,即 ethosu_apps,未按预期运行 很高兴看到快速的回应。 恐怕在您的步骤 #3 中,您需要将external_delegate参数传递给label_image 推理在 ETHOSU 上运行,否则推理在 A55 上运行,这就是推理结果在 A55 行中的原因。 (请原谅我将 label_image_release 与 label_image 混淆了,它实际上是 label_image ) 如果您为 label_image 提供外部委托参数,则会在 M33 控制台上看到日志,请参阅第 2.7.2 节 (如果命令不起作用,您可能需要提供 vela 模型——对我来说,它仅适用于 vela 模型) > cd /usr/bin/tensorflow-lite-2.16.2/examples > vela mobilenet_v1_1.0_224_quant.tflite > ./label_image -m output/mobilenet_v1_1.0_224_quant_vela.tflite -i grace_hopper.bmp -l labels.txt --external_delegate_path=/usr/lib/libethosu_delegate.so 对于我来说,使用默认/原始的 ethosu_firmware 上述步骤运行正常(如下), /usr/bin/tensorflow-lite-2.16.2/examples# ./label_image -m output/mobilenet_v1_1.0_224_quant_vela.tflite -i grace_hopper.bmp -l labels.txt -external_delegate_path=/usr/lib/libethosu_delegate.so INFO: Loaded model output/mobilenet_v1_1.0_224_quant_vela.tflite INFO: resolved reporter INFO: before CreateAllDelegates INFO: Ethosu delegate: device_name set to /dev/ethosu0. INFO: Ethosu delegate: cache_file_path set to . INFO: Ethosu delegate: timeout set to 60000000000. INFO: Ethosu delegate: enable_cycle_counter set to 0. INFO: Ethosu delegate: enable_profiling set to 0. INFO: Ethosu delegate: profiling_buffer_size set to 2048. INFO: Ethosu delegate: pmu_event0 set to 0. INFO: Ethosu delegate: pmu_event1 set to 0. INFO: Ethosu delegate: pmu_event2 set to 0. INFO: Ethosu delegate: pmu_event3 set to 0. INFO: EXTERNAL delegate created. INFO: EthosuDelegate: 1 nodes delegated out of 1 nodes with 1 partitions. INFO: Applied EXTERNAL delegate. INFO: settings->number_of_warmup_runs 2 INFO: invoked INFO: average time: 3.762 ms INFO: Predicted label = 907 但是如果我用编译好的版本替换默认的版本,我会看到错误(如下)并且可以在 M33 控制台中看到日志,我的期望是使用编译好的 ethosu_firmware 推断应该会成功 /lib/firmware/# reboot /lib/firmware/# cp ethosu_apps_rpmsg.elf ethosu_firmware /usr/bin/tensorflow-lite-2.16.2/examples# ./label_image -m output/mobilenet_v1_1.0_224_quant_vela.tflite -i grace_hopper.bmp -l labels.txt -external_delegate_path=/usr/lib/libethosu_delegate.so INFO: Loaded model output/mobilenet_v1_1.0_224_quant_vela.tflite INFO: resolved reporter INFO: before CreateAllDelegates INFO: Ethosu delegate: device_name set to /dev/ethosu0. INFO: Ethosu delegate: cache_file_path set to . INFO: Ethosu delegate: timeout set to 60000000000. INFO: Ethosu delegate: enable_cycle_counter set to 0. INFO: Ethosu delegate: enable_profiling set to 0. INFO: Ethosu delegate: profiling_buffer_size set to 2048. INFO: Ethosu delegate: pmu_event0 set to 0. INFO: Ethosu delegate: pmu_event1 set to 0. INFO: Ethosu delegate: pmu_event2 set to 0. INFO: Ethosu delegate: pmu_event3 set to 0. INFO: EXTERNAL delegate created. INFO: EthosuDelegate: 1 nodes delegated out of 1 nodes with 1 partitions. INFO: Applied EXTERNAL delegate. INFO: settings->number_of_warmup_runs 2 ERROR: Ethos_u inference failed ERROR: Node number 1 (EthosuDelegate) failed to invoke. ERROR: Failed to invoke tflite *** 在这两种情况下,我都能在 M33 COM 端口上看到预期的日志 2. 我对使用“remoteproc0”从 Linux 即运行 M33 可执行文件的观察与您的完全相同。 3. 推理运行器是在 ethosu 上运行推理的不同示例。此示例似乎适用于步骤 1 中的两个固件 #cd /usr/bin/ethosu/examples #./inference_runner -d /dev/ethosu0 -n output/mobilenet_v1_1.0_224_quant_vela.tflite -i grace_hopper.bmp -l labels.txt -o output_data_detection -t 1080000000 回复:来自 SDK 的示例应用程序,即 ethosu_apps,未按预期运行 Chavira,感谢您的确认。在ethosu_apps上 ethosu_apps_rpmsg 需要做一点说明,您这边可以确认一下吗? 我做了什么? 1. 使用 2.16 sdk 构建 ethosu_apps_rpmsg 应用程序 2. 启动 Linux,将 ethosu_firmware 替换为 #1 的 elf 3. 在 Linux 上对 ethosu 运行默认推理测试 ./label_image_release -m 输出/mobilenet_v1_1.0_224_quant_vela.tflite -i grace_hopper.bmp -l lab 信息:已加载模型输出/mobilenet_v1_1.0_224_quant_vela.tflite 信息:已解决的报告者 信息:在 CreateAllDelegates 之前 信息:Ethosu 委托:设备名称设置为 /dev/ethosu0。 信息:Ethosu 代表:cache_file_path 设置为 。 信息:Ethosu 代表:超时设置为 60000000000。 信息:Ethosu 代表:enable_cycle_counter 设置为 0。 信息:Ethosu 代表:enable_profiling 设置为 0。 信息:Ethosu 代表:profiling_buffer_size 设置为 2048。 信息:Ethosu 代表:pmu_event0 设置为 0。 信息:Ethosu 代表:pmu_event1 设置为 0。 信息:Ethosu 代表:pmu_event2 设置为 0。 信息:Ethosu 代表:pmu_event3 设置为 0。 信息:已创建外部代表。 信息:EthosuDelegate:1 个节点中有 1 个分区,已委托 1 个节点。 信息:已应用外部代表。 信息:设置->预热运行次数 2 错误:Ethos_u 推理失败 错误:节点 1(EthosuDelegate)调用失败。 错误:无法调用 tflite! 4. 观察 M33 com-port 中的日志 与默认的 ethosu_firmware 可执行文件相比,我可以看到日志是相同的 附言: 而 inference_runner 命令与我的 ethosu_firmware 配合良好 ./inference_runner-d /dev/ethosu0 -n 输出/mobilenet_v1_1.0_224_quant_vela.tflite -i grace_hopper.bmp -l 标签.txt -o 输出数据检测 -t 1080000000 回复:来自 SDK 的示例应用程序,即 ethosu_apps,未按预期运行 谢谢您的回复。 我正在使用 imx93_evk 的 sdk(不是 imx93_qsb),我不确定它是否有任何区别。 >tftp 0x80000000 ethosu_apps.bin >cp.b 0x80000000 0x201e0000 0x20000 >bootaux 0x1ffe0000 0 我是否在 uboot 中设置了任何环境变量?如果我遗漏了任何步骤,请告诉我。 附言: SDK 中的 ethosu_apps_rpmsg 应用程序行为异常,类似于 ethosu_firmware
View full article
エラー : 未定義の識別子 'class' 私はCodeWarrior IDEバージョン5.7.0ビルド2264で新しいプロジェクトを開始しています。makeでビルドしようとすると、このメッセージが表示され続けます。私のC ++コードを認識しません。どうすれば解決できますか? Re:エラー:未定義の識別子 'class' 私のライセンスは私にすべてのC ++機能を提供することになっており、私のライセンスをアップグレードする必要があることを発見しました。この問題は解決され、解決されたと考えています。返信ありがとうございます。 Re:エラー:未定義の識別子 'class' 私の問題は、私のライセンスが私にすべてのC ++機能を提供することになっていることと、私のライセンスをアップグレードする必要があることであることを発見しました。返信ありがとうございます。この問題は解決され、解決されたと考えています。 Re:エラー:未定義の識別子 'class' こんにちはシャノンマウント チップの部品番号を教えてください。 張 俊
View full article
S32K324 Lpuart_lin Master Continually Returning Status "LPUART_LIN_IP_STATUS_TX_BUSY" Hi, I am using the S32K324 in a project, and am running into issues using the Lpuart_lin driver. Executing the function "Lpuart_Lin_Ip_SendFrame" returns "LPUART_LIN_IP_STATUS_SUCCESS", however when polling the LIN instance's status after it returns "LPUART_LIN_IP_STATUS_TX_BUSY". All subsequent calls to "Lpuart_Lin_Ip_SendFrame" return a fail. I checked the RX and TX lines going into my LIN transcoder, as well as the LIN output and I can see a 650 microsecond low pulse followed by nothing. There is no data sent apart from this break, which is seen on all 3 lines. Any ideas as to what could be causing the issue? I have attached the file containing the Init and Send functions I have created. Thanks! EDIT: Wanted to add, the LIN instance has a "CurrentNodeState" of "LPUART_LIN_IP_NODE_STATE_SEND_BREAK_FIELD". Re: S32K324 Lpuart_lin Master Continually Returning Status "LPUART_LIN_IP_STATUS_TX_BUSY" hello @PetrS  I have encountered the same problem now, when MCU sends as host, LPUART_LIN_IP_STATUS_TX_BUSY, and the LIN instance has a "CurrentNodeState" of "LPUART_LIN_IP_NODE_STATE_SEND_BREAK_FIELD". But now the api for rerouting interrupts seems to have been removed, leaving only the IntCtrl_Ip_Init function. I can't find another solution, please tell me if there is another way to check my error. Re: S32K324 Lpuart_lin Master Continually Returning Status "LPUART_LIN_IP_STATUS_TX_BUSY" Hi Petr, Thanks for the response, I had already added the interrupt handler to IntCtrl_Ip. The issue turned out to be, I was initializing the interrupt and configuring the interrupt routing after initializing the LIN. Now that I am initializing the interrupt before the LIN I am successfully sending LIN frames. Thanks! Re: S32K324 Lpuart_lin Master Continually Returning Status "LPUART_LIN_IP_STATUS_TX_BUSY" Hi, it looks like driver interrupt is not called to next frame bytes are not processed. Try to check that. You can also refer to RTD demo examples. BR, Petr
View full article
さまざまなスリープモードからのウェイクアップ時間ベンチマークi.MX93 みなさん i.MX93を GUI アプリケーションとして使用し、しばらくするとスリープ モードになります。さて、スリープモードから再び完全に動作するようになるまでにかかる時間を誰かが考えているかどうか知りたいです。関連するベンチマークが記載された表がどこかで(少なくともLinuxターミナルの準備が整うまでの時間)見たと思ったのですが、ドキュメントにはもう見つかりません。 誰かがドキュメントがどこにあるかを知っているか、またはウェイクアップにかかる時間を自己測定またはテストしていますか?ウェイクアップソースは、M33 LPUARTまたは付属のタッチスクリーンです。 よろしくお願いします、マイク パワー Re:さまざまなスリープモードからのウェイクアップ時間ベンチマークi.MX93 こんにちは、Zhiming、 私の質問に関してあなたの努力と時間をありがとう。 私は今のところあなたの最後の投稿を解決策としてマークします。後で意味したドキュメントに出くわした場合は、ここにリンクします。 よろしくお願いいたします。 Michael Re:さまざまなスリープモードからのウェイクアップ時間ベンチマークi.MX93 こんにちは、Zhiming、 きっとNXPのウェブサイトだったと思います。このページは、前の回答で投稿したパワーベンチマークとほぼ同じ外観でした。 1つの列にはさまざまなスリープモードがリストされており、他の列の1つには、Linuxターミナルが入力の準備が整うまでの時間がありました。その間にいくつかの列があったかもしれませんが、これらは私のユースケースにとって重要だったものでした。 よろしくお願いいたします マイケル Re:さまざまなスリープモードからのウェイクアップ時間ベンチマークi.MX93 こんにちは、Zhiming Liu、 ご回答ありがとうございますが、これらは私が考えていた測定値ではありません。私はかなり確信しています、私はLinuxターミナルが新しい入力の準備が整うポイントまで、さまざまなスリープモードを離れるまでの時間が測定された場所のどこかでドキュメントを見つけました。しかし、残念ながら、このドキュメントはもう見つかりません。 よろしくお願いします、マイケル
View full article
EB:如何在EB中设置优先级分组? 当我在平台模块中使能Isr的时候,发现最大优先级只能到15,如果优先级设置的大于15的话,EB就会报优先级超出范围的错误。我怎样才能将优先级设置为大于 15?我想知道是否可以在EB中设置优先级组。 这里我使用s32k344和RTD 4.0.0.0
View full article
S32K146料金の問題 こんにちは、チーム。現在、S32K146を使用してプロジェクトを開発しています。EB tresos を使用して FEE モジュールを設定しているときに、いくつかの問題が発生しました。何か答えや提案をいただけますか? 画像に示すように、 Fee Block Size とFee Virtual Page Sizeの関係は何ですか? Fee Virtual Page Sizeを8または32に設定すると、Fee Block Sizeが32以下の場合にのみ、Fee_Read()関数を使用して目的のデータを取得できます。たとえば、[ Fee Block Size ] を 64 (32 より大きい値) に設定し、[Fee Virtual Page Size ] を 32 に設定すると、D-Flash にデータを書き込むことができず、したがってデータを読み取ることができません。Fee Block Sizeを200に設定したい場合、どうすればよいですか? ご回答ありがとうございます。ご協力いただきありがとうございます。 Re:S32K146料金の問題 こんにちは、ルーカス.今、私はそれが書き終わるのを待たずに直接それを読み上げたので、FEE機能を実現することができます。あなたのアドバイスはとても役に立ちます。感謝! Re:S32K146料金の問題 こんにちは、ルーカス!お返事ありがとうございます、 スクリーンショットに示すように、公式の例で提供されている読み取りおよび書き込み関数をコピーして、プロジェクトで使用しました。S32K146 の 1 セクターのサイズは 0x1000 です。「Fee Block Size」はユーザーが定義したブロックサイズであり、その最大値は0x1000未満であるべきだと理解できますか?これは私の関数呼び出しのスクリーンショットです:
View full article
MCXN236 eFuse / OTP information? Which document for the MCXN236 has information about the size, use, and addressing of the OTP bits? Thanks! Security(Edgelock | secure boot | OTP) Re: MCXN236 eFuse / OTP information? Thanks, Celeste! Very helpful info on accessing the MCXN236 security manual. Navigating NDAs can feel like playing Slope Game - constantly overcoming obstacles! Knowing it's through marketing is key. Perhaps a summary for non-NDA folks could be beneficial? Appreciate the direction! Re: MCXN236 eFuse / OTP information? Good to know, thank you Marek. Re: MCXN236 eFuse / OTP information? Hi @psmitty7373 , you can also use MCUXpresso Secure Provisioning tool (https://nxp.com/mcuxpresso/secure) to edit the fuses in GUI tool (see OTP configuration window). For full fuses description, you need to install restricted data package, that can be downloaded on the same page. Re: MCXN236 eFuse / OTP information? Thanks, Celeste. Re: MCXN236 eFuse / OTP information? Hello @psmitty7373 , Thanks for your post. According to the section "12.5 eFuse definitions " of MCXN236 reference manual, I believe it can be found in the MCX N23x Security Reference Manual.  The Security Reference Manual is confidential. You need to sign a NDA with our company and apply for the secure document on your own. The marketing department will decide whether to open it for your account.   Hope it can help you. BRs, Celeste  
View full article
使用安全引擎生成 CRC 我正在一个新项目中使用 LS1028A 处理器。我们需要非常快速地生成/验证 CRC。我已经看到可以使用安全引擎(SEC)来执行此操作。 我担心的是,我们将支持那些因为美国出口法而要求禁用加密的客户。处理器的部件号指定是否启用或禁用加密。 我们是否能够使用 SEC 在加密关闭的处理器上生成/验证 CRC? 回复:使用安全引擎生成 CRC NXP 社区论坛似乎讨论了在 Layerscape 平台中使用安全引擎进行 CRC 生成,其中涉及安全数据处理和加密过程。探索此类系统的安全功能可以为优化数据完整性和验证过程提供有价值的见解,特别是在敏感应用中。如果您深入研究这个领域,可能会有各种最佳实践和实施考虑值得进一步探索。 回复:使用安全引擎生成 CRC 我们关注出口管制,因此第 2 点是适用的情况。 因此,我们能够通过烧断保险丝来使该部件可导出并保留 CRC 引擎。这是个好消息。 哪个文档有SFP_OSPR0的寄存器定义?我好像找不到它。 谢谢
View full article
起動時にimx8mp ubootのロゴが表示されます こんにちは、皆さん。 imx8mpベースの製品を使用しています。u-bootで利用可能な「bmp」ユーティリティを使用してubootにロゴを表示できますが、ユーティリティを使用せずにこのロゴを表示したいので、コードを介してそれを行いたいと考えています。 imx8mqベースの製品では、「」を使用してそれを行っていました。/ドライバー/ビデオ/cfb_console.c ' Ubootをフォローしていました バージョン = 2018 パッチレベル = 03 サブレベル = しかし、imx8mp ubootに似たファイルは見つかりませんでした。検索しようとしましたが、imx8mp ubootに代替ファイルが見つかりませんでした。現在は: バージョン = 2023 パッチレベル = 04 サブレベル = どんな指針や提案もいただければ幸いです。 ありがとうございます ジェミッシュ Re: 起動時にimx8mp ubootのロゴが表示されます こんにちは、皆さん。 また、ロゴファイルをボード名/tools/logoディレクトリにbmp拡張子を付けて配置することも更新するのが好きです。 /tools/logo/ コンパイル中に必要なファイルも生成します。 ツール/bmp_logo--gen-info。/tools/logos/imx8mp_liveuboard.bmp > include/bmp_logo.h ツール/bmp_logo--gen-bmp。/tools/logos/imx8mp_liveuboard.bmp > include/bmp_logo_data.h しかし、この情報を使ってubootにロゴを表示しているファイルはないようです。bmpユーティリティを使って同じロゴを表示することはできますが。それは奇妙です。 誰かがこれに関して私を助けることができますか? ありがとうございます ジェミッシュ
View full article
当 Boot 跳转到 Bsw 时发生硬故障陷阱 亲爱的: 我遇到了有关 hardfault 的问题。 引导加载擦除后将 bsw 写入 PFLASH,并在获取 UDS 11 01 命令后启动重置。 boot 会检查 bsw 的完整性,如果检查通过,boot 会跳转到 startup_cm7.s 的 _start 地址bsw 文件。然后就会发生硬故障陷阱。 例如,运行模式下的 MCU 是否有可能? 谢谢。 回复: Boot 跳转到 Bsw 时发生 Hard Fault 陷阱 我完成这个任务: 参考: S32K144 启动跳转到应用程序失败 - NXP 社区 和 已解决: 如何从BOOT跳转到APP代码- 恩智浦社区 使用重置并且跳转地址是vector+4。 回复: Boot 跳转到 Bsw 时发生 Hard Fault 陷阱 已解决: 如何从BOOT跳转到APP代码- 恩智浦社区 我尝试跳转到向量地址 +4 而不是 _start 地址,但仍然陷入故障硬陷阱。 回复: Boot 跳转到 Bsw 时发生 Hard Fault 陷阱 MCU 复位后,xpr 的值为 0x8100 0000,跳转到 bsw 的 _start 之前,xpsr 的值为 0xA100 0000。执行跳转函数后,PC停在bsw的_start函数处,xpsr的值为0xA000 0000。 如果 xpsr 是 0x8100 0000 或 0xA100 0000,则 _start 函数可以正常运行。 如果 xpsr 是 0xA000 0000,_start 将触发硬故障陷阱。 回复: Boot 跳转到 Bsw 时发生 Hard Fault 陷阱 亲爱的 : 我想添加一些信息:我在PFLASH中有两个独立软件,一个是boot,另一个是bsw。boot和bsw都有_start函数,这是每个软件的起点。 如果软件在主函数的起始点停止,并且我将 PC 更改为 BSW 的 _start 值,那么软件将在 bsw 中运行,我可以看到 CAN 帧发送出去(如果启动没有得到 UDS 帧,启动中的软件将不会发送 CAN 帧)。 如果启动完成 bsw完整性检查,启动将跳转到 bsw,我利用 bsw 的 _start,我的意思是启动利用 bsw 的 _start 值作为功能点并运行 *(功能点) *(功能点)执行完毕后,发生陷阱。我怀疑 MCU_Init 有一些副作用,所以在执行*(功能点)之前,Boot 触发 MCU_PerformReset 函数,重置后,boot 将执行*(功能点),但陷阱仍然发生。
View full article
FreeMaster S32k358问题 我正在尝试在 S32K358 微控制器上设置 FreeMASTER,但遇到了 UART 连接问题。我通过使用 Termite 进行测试,验证了 UART 在微控制器上是否正常工作,如下面的屏幕截图所示。 但是,当我配置 FreeMASTER 时,安装程序执行没有错误。但是当我打开FreeMASTER时,它显示一条错误消息,指出它无法连接到UART,如下图所示。 你能帮我解决这个问题吗?此外,如果可能的话,您能否提供设置基本 FreeMASTER 配置的详细步骤?我按照此链接中提到的说明进行操作:如何在 S32K3 RTD 0.9.0 中使用 FreeMASTER SDKs ,但仍然遇到下面显示的问题。 非常感谢您的帮助。 回复:FreeMaster S32k358问题 感谢您提供更新的版本信息。我以正常模式配置了 LPUART,并使用此版本成功将其与 FreeMaster 集成。虽然示例代码没有按预期工作(我不确定为什么),但问题已经解决,现在一切都可以通过更新的驱动程序正常运行。谢谢
View full article
需要逐步指导如何使用 IW612 模块集成 Wi-Fi 我目前正在进行一个项目,涉及使用 IW612 模块与 STM32 微控制器集成 WiFi 模块,我希望您对集成过程能给予指导。 您能否提供详细说明以下内容的任何文档或资源: 1. 推荐STM32的软件库或者SDK。 2.建立WiFi连接的示例代码。 3. 任何特定的配置设置。 回复:需要逐步指导如何使用 IW612 模块集成 Wi-Fi 谢谢您的宝贵指导。 回复:需要逐步指导如何使用 IW612 模块集成 Wi-Fi 我们可以将这个 IW612 与 STM32 接口吗? NXP 是否提供任何驱动程序,以便我们可以将 STM32 MCU 与 IW612 连接起来?
View full article
MCUXpresso深色主题(模式)设置 我对 MCUXpresso 暗主题(模式)设置有几个问题。请参阅附件。我想修改 C 代码的注释颜色和用于在项目资源管理器中突出显示源文件的颜色。这些在哪里改变? 回复:MCUXpresso 暗主题(模式)设置 我会查看他们的论坛,谢谢。 回复:MCUXpresso 暗主题(模式)设置 其他论坛提到更改 IDE 的 CSS 文件,但我不知道要更改哪个参数,因为参数太多了。 回复:MCUXpresso 暗主题(模式)设置 谢谢,我最终找到了。但我仍然无法改变该项目文件夹的突出显示(在我之前的图片的左侧)。 回复:MCUXpresso 暗主题(模式)设置 谢谢,但是我已经尝试过了,但是没有用。 回复:MCUXpresso 暗主题(模式)设置
View full article
Custom Board LPC54S018JET180E lpcxpresso54s018_hello_world_qspi_xip Question Hi All,      I am trying to import a "lpcxpresso54s018_hello_world_qspi_xip" to my custom board. But I got an error message "File 'lpcxpresso54s018_hello_world_qspi_xip_HelloWorldSPIFI004.bin' load failure: Ef(11). No flash configured at the specified address." . The goal is to upload an image to the EXT SPI FLASH and the MCU will boot from the EXT SPI FLASH.      Can anyone please give an advice on how to fix the issue?   Error Message: Executing flash operation 'Program' (Program file into flash: lpcxpresso54s018_hello_world_qspi_xip_HelloWorldSPIFI004.bin) - Mon Jun 16 10:48:33 PDT 2025 Checking MCU info... Scanning for targets... Executing flash action... LinkServer RedlinkMulti Driver v24.12 (Dec 18 2024 18:34:07 - crt_emu_cm_redlink.exe build 869) ( 0) Reading remote configuration Wc(03). No cache support. Found chip XML file in C:/Users/tsangm/Documents/MCUXpressoIDE_24.12.148/workspace/lpcxpresso54s018_hello_world_qspi_xip_HelloWorldSPIFI004/Debug\LPC54S018.xml ( 5) Remote configuration complete Reconnected to existing LinkServer process. Probe Firmware: MCU-LINK Pro (r0CF) CMSIS-DAP V3.153 (NXP Semiconductors) Serial Number: F4ON0DG121ZHK VID:PID: 1FC9:0143 USB Path: 0001:000f:00 Using memory from core 0 after searching for a good core On debug connection - use system reset, stalling when 0x40000040 is accessed Retask read watchpoint 1 at 0x40000040 to use for boot ROM stall Boot ROM stalled - at read watch #1 address 0x40000040 ( 30) Emulator Connected ( 40) Debug Halt ( 50) CPU ID debug interface type = CoreSight DP (DAP DP ID 2BA01477) over SWD TAP 0 processor type = Cortex-M4 (CPU ID 00000C24) on DAP AP 0 number of h/w breakpoints = 6 number of flash patches = 2 number of h/w watchpoints = 4 Probe(0): Connected&Reset. DpID: 2BA01477. CpuID: 00000C24. Info: Debug protocol: SWD. RTCK: Disabled. Vector catch: Enabled. Content of CoreSight Debug ROM(s): RBASE E00FF000: CID B105100D PID 04000BB4C4 ROM (type 0x1) ROM 1 E000E000: CID B105E00D PID 04000BB00C Gen SCS (type 0x0) ROM 1 E0001000: CID B105E00D PID 04003BB002 Gen DWT (type 0x0) ROM 1 E0002000: CID B105E00D PID 04002BB003 Gen FPB (type 0x0) ROM 1 E0000000: CID B105E00D PID 04003BB001 Gen ITM (type 0x0) ROM 1 E0040000: CID B105900D PID 04000BB9A1 CSt TPIU type 0x11 Trace Sink - TPIU ROM 1 E0041000: CID B105900D PID 04000BB925 CSt ETM type 0x13 Trace Source - Core NXP: LPC54S018 DAP stride is 4096 bytes (1024 words) ( 65) Chip Setup Complete Connected: was_reset=false. was_stopped=true ( 70) License Check Complete File 'lpcxpresso54s018_hello_world_qspi_xip_HelloWorldSPIFI004.bin' load failure: Ef(11). No flash configured at the specified address. (100) Target Operation Failed Unable to perform operation! Command failed with exit code 1 Thanks, 6/16/2025 LPC54xxx Re: Custom Board LPC54S018JET180E lpcxpresso54s018_hello_world_qspi_xip Question Hi Harry,      Thanks for your advice on the PIO0_4,5,6!      Although I am unable to see the "hello world" message in the "lpc54018iotmodule_led_blinky_Custom Board 000", I followed your instruction on PIO0_4,5,6, and I am able to run the "lpcxpresso54s018_led_blinky_lpc_blinky_Custom Board 000". I also disconnect the SWD and power on the custom board and the blink still on going, this should be enough to proof the SPI BOOT is working right?        How do I view the "Hello World" message for the "lpc54018iotmodule_led_blinky_Custom Board 000" project?         For the PIO0_4,5,6, if I set it to all high so it should be in auto-boot mode, I wonder why it will prevent from uploading .bin file to the SPI NOR FLASH?        Also, can I use the MCU-LINK PRO and the MCUExpresso IDE for production programming?   Thanks, 7/25/2025 Re: Custom Board LPC54S018JET180E lpcxpresso54s018_hello_world_qspi_xip Question Hi @mtsang  I got some new idea from our internal team. You can check the ISP pins, to ensure that the chip boot type is SPIFI flash boot. And they suggest to refer to the AN12122 . You can use lpcxpresso54s018_hello_world_qspi_xip this demo. BR Harry Re: Custom Board LPC54S018JET180E lpcxpresso54s018_hello_world_qspi_xip Question Hi Harry,      Thank you so much for your help and please give me an update if you got a result from the internal team. How soon will I hear back from you or the internal team?      Can you think of any other part of the schematics/code that will cause the board to be able to upload/erase code to the SPI NOR Flash but not able to boot and debug? I will double check base on your suggestion.      Currently I am using "lpc54018iotmodule_hello_world" example. Thanks, 7/15/2025 Re: Custom Board LPC54S018JET180E lpcxpresso54s018_hello_world_qspi_xip Question Hi @mtsang  I think this may be due to an incorrect SPI Descriptor, but unfortunately, I don't have a flash chip(IS25LP128F-JBLA3) on hand, so i can not test it, i will seek help from internal team.  I will inform you as soon as there is a result. Thanks for  your understanding. BR Harry Re: Custom Board LPC54S018JET180E lpcxpresso54s018_hello_world_qspi_xip Question Hi Harry,      I can't debug the unit. It has below error output. LinkServer RedlinkMulti Driver v24.12 (Dec 18 2024 18:34:07 - crt_emu_cm_redlink build 869) Found chip XML file in C:/Users/tsangm/Documents/MCUXpressoIDE_24.12.148/workspace/lpc54018iotmodule_hello_world_lpc54018iotmodule/Debug\LPC54018.xml ( 5) Remote configuration complete Reconnected to existing LinkServer process. Probe Firmware: MCU-LINK Pro (r0CF) CMSIS-DAP V3.153 (NXP Semiconductors) Serial Number: F4ON0DG121ZHK VID:PID: 1FC9:0143 USB Path: 0001:0009:00 Using memory from core 0 after searching for a good core On debug connection - use system reset, stalling when 0x40000040 is accessed Retask read watchpoint 1 at 0x40000040 to use for boot ROM stall Waiting for target to stop... Warning - processor did not halt - gave up waiting debug interface type = CoreSight DP (DAP DP ID 2BA01477) over SWD TAP 0 processor type = Cortex-M4 (CPU ID 00000C24) on DAP AP 0 number of h/w breakpoints = 6 number of flash patches = 2 number of h/w watchpoints = 4 Probe(0): Connected&Reset. DpID: 2BA01477. CpuID: 00000C24. Info: Debug protocol: SWD. RTCK: Disabled. Vector catch: Enabled. Content of CoreSight Debug ROM(s): RBASE E00FF000: CID B105100D PID 04000BB4C4 ROM (type 0x1) ROM 1 E000E000: CID B105E00D PID 04000BB00C Gen SCS (type 0x0) ROM 1 E0001000: CID B105E00D PID 04003BB002 Gen DWT (type 0x0) ROM 1 E0002000: CID B105E00D PID 04002BB003 Gen FPB (type 0x0) ROM 1 E0000000: CID B105E00D PID 04003BB001 Gen ITM (type 0x0) ROM 1 E0040000: CID B105900D PID 04000BB9A1 CSt TPIU type 0x11 Trace Sink - TPIU ROM 1 E0041000: CID B105900D PID 04000BB925 CSt ETM type 0x13 Trace Source - Core NXP: LPC54018 DAP stride is 4096 bytes (1024 words) Inspected v.2 External Flash Device on SPI LPC540xx_SPIFI_SFDP.cfx Image 'LPC540xx_JEDEC_SFDP Dec 18 2024 17:26:01' Opening flash driver LPC540xx_SPIFI_SFDP.cfx Sending SYSRESETREQ to run flash driver rst - Boot ROM stall address was not accessed (but we entered debug on VectorCatch anyway) There was a problem after we succesfully downloaded flash driver code to the target, so we are going to compare the flash driver code with the memory where it was loaded. Note that, after driver initialization, some difference is normal in 'generic' drivers. Driver from AXF file: //------------------ //Flash Data //------------------ AFTER driver startup timeout (302 5ms retries) Driver Addresses Start: 00000000 Entry: 0000009D End: 0000128C Stack: 00002290 Mailbox:0000A290 Driver Register State R0: 00000000 R1: 200273F8 R2: 0300AF21 R3: 00000000 R4: 40000000 R5: 00000000 R6: 00000000 R7: 00000000 R8: 00000000 R9: 00000000 R10: 00000000 R11: 00000000 R12: 00000000 SP: 00002288 LR: 0300BBA5 PC: 0300BDF2 xPSR: 21000000 MSP: 00002288 PSP: 00002290 CFBP: 00000001 (CONTROL=0x0, FAULTMASK=0x0, BASEPRI=0x0, PRIMASK=0x1) Flash Driver V.2 startup failed - rc Ef(34): Timed-out initializing flash. chip initialization failed - Ef(34): Timed-out initializing flash. failed to initialize flash driver LPC540xx_SPIFI_SFDP.cfx I click on "Attach to running target using Link server", and there what I got: I clicked on the "Verify Only" in the GUI Flash Tool and it seems to be able to download the .bin file to the SPI NOR Flash Executing flash operation 'Program' (Program file into flash: lpc54018iotmodule_hello_world_lpc54018iotmodule.bin) - Mon Jul 14 15:05:56 PDT 2025 Checking MCU info... Scanning for targets... Executing flash action... LinkServer RedlinkMulti Driver v24.12 (Dec 18 2024 18:34:07 - crt_emu_cm_redlink.exe build 869) ( 0) Reading remote configuration Wc(03). No cache support. Found chip XML file in C:/Users/tsangm/Documents/MCUXpressoIDE_24.12.148/workspace/lpc54018iotmodule_hello_world_lpc54018iotmodule/Debug\LPC54018.xml ( 5) Remote configuration complete Reconnected to existing LinkServer process. Probe Firmware: MCU-LINK Pro (r0CF) CMSIS-DAP V3.153 (NXP Semiconductors) Serial Number: F4ON0DG121ZHK VID:PID: 1FC9:0143 USB Path: 0001:0009:00 Using memory from core 0 after searching for a good core On debug connection - use system reset, stalling when 0x40000040 is accessed Retask read watchpoint 1 at 0x40000040 to use for boot ROM stall Waiting for target to stop... Warning - processor did not halt - gave up waiting ( 30) Emulator Connected ( 40) Debug Halt ( 50) CPU ID debug interface type = CoreSight DP (DAP DP ID 2BA01477) over SWD TAP 0 processor type = Cortex-M4 (CPU ID 00000C24) on DAP AP 0 number of h/w breakpoints = 6 number of flash patches = 2 number of h/w watchpoints = 4 Probe(0): Connected&Reset. DpID: 2BA01477. CpuID: 00000C24. Info: Debug protocol: SWD. RTCK: Disabled. Vector catch: Enabled. Content of CoreSight Debug ROM(s): RBASE E00FF000: CID B105100D PID 04000BB4C4 ROM (type 0x1) ROM 1 E000E000: CID B105E00D PID 04000BB00C Gen SCS (type 0x0) ROM 1 E0001000: CID B105E00D PID 04003BB002 Gen DWT (type 0x0) ROM 1 E0002000: CID B105E00D PID 04002BB003 Gen FPB (type 0x0) ROM 1 E0000000: CID B105E00D PID 04003BB001 Gen ITM (type 0x0) ROM 1 E0040000: CID B105900D PID 04000BB9A1 CSt TPIU type 0x11 Trace Sink - TPIU ROM 1 E0041000: CID B105900D PID 04000BB925 CSt ETM type 0x13 Trace Source - Core NXP: LPC54018 DAP stride is 4096 bytes (1024 words) Inspected v.2 External Flash Device on SPI LPC540xx_SPIFI_SFDP.cfx Image 'LPC540xx_JEDEC_SFDP Dec 18 2024 17:26:01' Opening flash driver LPC540xx_SPIFI_SFDP.cfx Using SOFT reset to run the flash driver rst - Boot ROM stall address was not accessed (but we entered debug on Halt anyway) Flash variant 'JEDEC_SFDP_9D6018' detected (16MB = 256*64K at 0x10000000) Closing flash driver LPC540xx_SPIFI_SFDP.cfx ( 65) Chip Setup Complete Connected: was_reset=false. was_stopped=false ( 70) License Check Complete Verifying 'lpc54018iotmodule_hello_world_lpc54018iotmodule.bin' Binary section 0 at 0x10000000 len 0x3BA4 Opening flash driver LPC540xx_SPIFI_SFDP.cfx (already resident) Using SOFT reset to run the flash driver Flash variant 'JEDEC_SFDP_9D6018' detected (16MB = 256*64K at 0x10000000) ( 0) Comparing Flash against file at 0x10000000 Closing flash driver LPC540xx_SPIFI_SFDP.cfx (100) File matches flash. Read 0x3BA4 bytes in 43ms (about 355kB/s) - verify succeeded Thanks, 7/14/2025 Re: Custom Board LPC54S018JET180E lpcxpresso54s018_hello_world_qspi_xip Question Hi @mtsang  Can you debug successfully? BR Harry Re: Custom Board LPC54S018JET180E lpcxpresso54s018_hello_world_qspi_xip Question Hi Harry,      I used the SPIFI descriptor you posted, but still it has the same problem. I got the following error message after I clicked on "Debug with Linkserver Probes" LinkServer RedlinkMulti Driver v24.12 (Dec 18 2024 18:34:07 - crt_emu_cm_redlink build 869) Found chip XML file in C:/Users/tsangm/Documents/MCUXpressoIDE_24.12.148/workspace/lpc54018iotmodule_hello_world_lpc54018iotmodule/Debug\LPC54018.xml ( 5) Remote configuration complete Reconnected to existing LinkServer process. Probe Firmware: MCU-LINK Pro (r0CF) CMSIS-DAP V3.153 (NXP Semiconductors) Serial Number: F4ON0DG121ZHK VID:PID: 1FC9:0143 USB Path: 0001:0014:00 Using memory from core 0 after searching for a good core On debug connection - use system reset, stalling when 0x40000040 is accessed Retask read watchpoint 1 at 0x40000040 to use for boot ROM stall Boot ROM stalled - at read watch #1 address 0x40000040 debug interface type = CoreSight DP (DAP DP ID 2BA01477) over SWD TAP 0 processor type = Cortex-M4 (CPU ID 00000C24) on DAP AP 0 number of h/w breakpoints = 6 number of flash patches = 2 number of h/w watchpoints = 4 Probe(0): Connected&Reset. DpID: 2BA01477. CpuID: 00000C24. Info: Debug protocol: SWD. RTCK: Disabled. Vector catch: Enabled. Content of CoreSight Debug ROM(s): RBASE E00FF000: CID B105100D PID 04000BB4C4 ROM (type 0x1) ROM 1 E000E000: CID B105E00D PID 04000BB00C Gen SCS (type 0x0) ROM 1 E0001000: CID B105E00D PID 04003BB002 Gen DWT (type 0x0) ROM 1 E0002000: CID B105E00D PID 04002BB003 Gen FPB (type 0x0) ROM 1 E0000000: CID B105E00D PID 04003BB001 Gen ITM (type 0x0) ROM 1 E0040000: CID B105900D PID 04000BB9A1 CSt TPIU type 0x11 Trace Sink - TPIU ROM 1 E0041000: CID B105900D PID 04000BB925 CSt ETM type 0x13 Trace Source - Core NXP: LPC54018 DAP stride is 4096 bytes (1024 words) Inspected v.2 External Flash Device on SPI LPC540xx_SPIFI_SFDP.cfx Image 'LPC540xx_JEDEC_SFDP Dec 18 2024 17:26:01' Opening flash driver LPC540xx_SPIFI_SFDP.cfx SYSRESETREQ reset omitted - already reset Flash variant 'JEDEC_SFDP_9D6018' detected (16MB = 256*64K at 0x10000000) Closing flash driver LPC540xx_SPIFI_SFDP.cfx Connected: was_reset=false. was_stopped=true Awaiting telnet connection to port 3330 ... GDB nonstop mode enabled Opening flash driver LPC540xx_SPIFI_SFDP.cfx (already resident) Retask watch 0 address 0x0 (unused) for boot rom stall Sending SYSRESETREQ to run flash driver Boot ROM stalled accessing address 0x40000040 (restoring watchpoint 1) AFTER driver startup timeout (302 5ms retries) Driver Addresses Start: 00000000 Entry: 0000009D End: 0000128C Stack: 00002290 Mailbox:0000A290 Driver Register State R0: 0000A290 R1: 00000000 R2: 00000000 R3: 00000000 R4: 00000000 R5: 00000000 R6: 00000000 R7: 00000000 R8: 00000000 R9: 00000000 R10: 00000000 R11: 00000000 R12: 00000000 SP: 00002290 LR: 0000009D PC: 000000A0 xPSR: 61000000 MSP: 00002290 PSP: 00002290 CFBP: 00010001 (CONTROL=0x0, FAULTMASK=0x1, BASEPRI=0x0, PRIMASK=0x1) Flash Driver V.2 startup failed - rc Ef(34): Timed-out initializing flash. (100) Writing Flash ended with an error. Target error from Commit Flash write: Ef(34): Timed-out initializing flash. GDB stub (C:\nxp\LinkServer_24.12.21\binaries\crt_emu_cm_redlink) terminating - GDB protocol problem: Pipe has been closed by GDB. Thanks, 7/10/2025 Re: Custom Board LPC54S018JET180E lpcxpresso54s018_hello_world_qspi_xip Question Hi @mtsang  If you want to XIP. Did you try to change to it in startup_lpc54s018.c? #ifdef IS25LP128F-JBLA3 /* SPI Descriptor - IS25LP128F-JBLA3 */ (void (*)(void))0x00000000, // 0xFFFFFFFF to default 1-bit SPI mode ;DevStrAdr (void (*)(void))0x0018609D, // mfgId + extCount (void (*)(void))0x00000000, // extid 0-3 (void (*)(void))0x00000000, // reserved (void (*)(void))0x1301001D, // caps (void (*)(void))0x00000100, // Blks + RESV1 (void (*)(void))0x00010000, // blkSize (void (*)(void))0x00000000, // reserved (void (*)(void))0x00000100, // pageSize + RESV2 (void (*)(void))0x00003F00, // maxReadSize (void (*)(void))0x68506850, // maxClkRate,maxReadRate,maxHSReadRate,maxProgramRate (void (*)(void))0x06020050, // maxHSProgramRate,initDeInitFxId,clearStatusFxId,getStatusFxId (void (*)(void))0x14110F0B, // setStatusFxId,setOptionsFxId,getReadCmdFxId,getWriteCmdFxId #endif BR Harry Re: Custom Board LPC54S018JET180E lpcxpresso54s018_hello_world_qspi_xip Question Hi Harry,      Thanks for the schematics correction! However it seems like I am able to flash the .bin file to the SPI NOR Flash, but the MCU is not able to boot from the SPI NOR Flash. I installed and removed PIO0_6 pull-up resistor but it didnt help. Flash the SPI NOR FLASH Executing flash operation 'Program' (Program file into flash: Debug\lpc54018iotmodule_hello_world_lpc54018iotmodule.axf) - Wed Jul 09 16:39:19 PDT 2025 Checking MCU info... Scanning for targets... Executing flash action... LinkServer RedlinkMulti Driver v24.12 (Dec 18 2024 18:34:07 - crt_emu_cm_redlink.exe build 869) ( 0) Reading remote configuration Wc(03). No cache support. Found chip XML file in C:/Users/tsangm/Documents/MCUXpressoIDE_24.12.148/workspace/lpc54018iotmodule_hello_world_lpc54018iotmodule/Debug\LPC54018.xml ( 5) Remote configuration complete Reconnected to existing LinkServer process. Probe Firmware: MCU-LINK Pro (r0CF) CMSIS-DAP V3.153 (NXP Semiconductors) Serial Number: F4ON0DG121ZHK VID:PID: 1FC9:0143 USB Path: 0001:000b:00 Using memory from core 0 after searching for a good core On debug connection - use system reset, stalling when 0x40000040 is accessed Retask read watchpoint 1 at 0x40000040 to use for boot ROM stall Waiting for target to stop... Warning - processor did not halt - gave up waiting ( 30) Emulator Connected ( 40) Debug Halt ( 50) CPU ID debug interface type = CoreSight DP (DAP DP ID 2BA01477) over SWD TAP 0 processor type = Cortex-M4 (CPU ID 00000C24) on DAP AP 0 number of h/w breakpoints = 6 number of flash patches = 2 number of h/w watchpoints = 4 Probe(0): Connected&Reset. DpID: 2BA01477. CpuID: 00000C24. Info: Debug protocol: SWD. RTCK: Disabled. Vector catch: Enabled. Content of CoreSight Debug ROM(s): RBASE E00FF000: CID B105100D PID 04000BB4C4 ROM (type 0x1) ROM 1 E000E000: CID B105E00D PID 04000BB00C Gen SCS (type 0x0) ROM 1 E0001000: CID B105E00D PID 04003BB002 Gen DWT (type 0x0) ROM 1 E0002000: CID B105E00D PID 04002BB003 Gen FPB (type 0x0) ROM 1 E0000000: CID B105E00D PID 04003BB001 Gen ITM (type 0x0) ROM 1 E0040000: CID B105900D PID 04000BB9A1 CSt TPIU type 0x11 Trace Sink - TPIU ROM 1 E0041000: CID B105900D PID 04000BB925 CSt ETM type 0x13 Trace Source - Core NXP: LPC54018 DAP stride is 4096 bytes (1024 words) Inspected v.2 External Flash Device on SPI LPC540xx_SPIFI_SFDP.cfx Image 'LPC540xx_JEDEC_SFDP Dec 18 2024 17:26:01' Opening flash driver LPC540xx_SPIFI_SFDP.cfx Using SOFT reset to run the flash driver rst - Boot ROM stall address was not accessed (but we entered debug on Halt anyway) Flash variant 'JEDEC_SFDP_9D6018' detected (16MB = 256*64K at 0x10000000) Closing flash driver LPC540xx_SPIFI_SFDP.cfx ( 65) Chip Setup Complete Connected: was_reset=false. was_stopped=false ( 70) License Check Complete Loading 'lpc54018iotmodule_hello_world_lpc54018iotmodule.axf' ELF 0x10000000 len 0x3BA4 Opening flash driver LPC540xx_SPIFI_SFDP.cfx (already resident) Using SOFT reset to run the flash driver Flash variant 'JEDEC_SFDP_9D6018' detected (16MB = 256*64K at 0x10000000) Writing 15268 bytes to address 0x10000000 in Flash 1 of 1 ( 0) Writing sectors 0-0 at 0x10000000 with 15268 bytes ( 0) at 10000000: 0 bytes - 0/15268 (100) at 10000000: 65536 bytes - 65536/15268 Sectors written: 0, unchanged: 1, total: 1 Erased/Wrote sector 0-0 with 15268 bytes in 30msec Closing flash driver LPC540xx_SPIFI_SFDP.cfx (100) Finished writing Flash successfully. Flash Write Done Loaded 0x3BA4 bytes in 89ms (about 171kB/s) Reset target (romstall) Starting execution using system reset with a stall address Retask read watchpoint 1 at 0x40000040 to use for boot ROM stall Boot ROM stalled accessing address 0x40000040 (restoring watchpoint 1) Stopped (Was Reset) [Reset from Unknown]: Watchpoint (Temp) #1 - read watchpoint at 0x40000040 Data watch for bootloader stall restart on reset Verify the SPI NOR FLASH's content Executing flash operation 'Program' (Program file into flash: lpc54018iotmodule_hello_world_lpc54018iotmodule.bin) - Wed Jul 09 16:43:17 PDT 2025 Checking MCU info... Scanning for targets... Executing flash action... LinkServer RedlinkMulti Driver v24.12 (Dec 18 2024 18:34:07 - crt_emu_cm_redlink.exe build 869) ( 0) Reading remote configuration Wc(03). No cache support. Found chip XML file in C:/Users/tsangm/Documents/MCUXpressoIDE_24.12.148/workspace/lpc54018iotmodule_hello_world_lpc54018iotmodule/Debug\LPC54018.xml ( 5) Remote configuration complete Reconnected to existing LinkServer process. Probe Firmware: MCU-LINK Pro (r0CF) CMSIS-DAP V3.153 (NXP Semiconductors) Serial Number: F4ON0DG121ZHK VID:PID: 1FC9:0143 USB Path: 0001:000b:00 Using memory from core 0 after searching for a good core On debug connection - use system reset, stalling when 0x40000040 is accessed Retask read watchpoint 1 at 0x40000040 to use for boot ROM stall Boot ROM stalled - at read watch #1 address 0x40000040 ( 30) Emulator Connected ( 40) Debug Halt ( 50) CPU ID debug interface type = CoreSight DP (DAP DP ID 2BA01477) over SWD TAP 0 processor type = Cortex-M4 (CPU ID 00000C24) on DAP AP 0 number of h/w breakpoints = 6 number of flash patches = 2 number of h/w watchpoints = 4 Probe(0): Connected&Reset. DpID: 2BA01477. CpuID: 00000C24. Info: Debug protocol: SWD. RTCK: Disabled. Vector catch: Enabled. Content of CoreSight Debug ROM(s): RBASE E00FF000: CID B105100D PID 04000BB4C4 ROM (type 0x1) ROM 1 E000E000: CID B105E00D PID 04000BB00C Gen SCS (type 0x0) ROM 1 E0001000: CID B105E00D PID 04003BB002 Gen DWT (type 0x0) ROM 1 E0002000: CID B105E00D PID 04002BB003 Gen FPB (type 0x0) ROM 1 E0000000: CID B105E00D PID 04003BB001 Gen ITM (type 0x0) ROM 1 E0040000: CID B105900D PID 04000BB9A1 CSt TPIU type 0x11 Trace Sink - TPIU ROM 1 E0041000: CID B105900D PID 04000BB925 CSt ETM type 0x13 Trace Source - Core NXP: LPC54018 DAP stride is 4096 bytes (1024 words) Inspected v.2 External Flash Device on SPI LPC540xx_SPIFI_SFDP.cfx Image 'LPC540xx_JEDEC_SFDP Dec 18 2024 17:26:01' Opening flash driver LPC540xx_SPIFI_SFDP.cfx Using SOFT reset to run the flash driver Flash variant 'JEDEC_SFDP_9D6018' detected (16MB = 256*64K at 0x10000000) Closing flash driver LPC540xx_SPIFI_SFDP.cfx ( 65) Chip Setup Complete Connected: was_reset=false. was_stopped=true ( 70) License Check Complete Verifying 'lpc54018iotmodule_hello_world_lpc54018iotmodule.bin' Binary section 0 at 0x10000000 len 0x3BA4 Opening flash driver LPC540xx_SPIFI_SFDP.cfx (already resident) Using SOFT reset to run the flash driver Flash variant 'JEDEC_SFDP_9D6018' detected (16MB = 256*64K at 0x10000000) ( 0) Comparing Flash against file at 0x10000000 Closing flash driver LPC540xx_SPIFI_SFDP.cfx (100) File matches flash. Read 0x3BA4 bytes in 41ms (about 372kB/s) - verify succeeded Thanks, 7/9/2025 Re: Custom Board LPC54S018JET180E lpcxpresso54s018_hello_world_qspi_xip Question Hi Harry,      I am terribly sorry I didn't check the SPI NOR Flash pin out. Thanks for your catch!!! I used jumper cable to fix the problem for now.      Seems like I am able to program and mass erase the custom board right now. At least it didnt show any error message.      I am using "lpc54018iotmodule_hello_world_virtual_com_xip" as an example. Is there anything I can do to verify the SPI boot function? Also where the "HELLO WORLD" message will shows up? Thanks a lot! 7/8/2025 Re: Custom Board LPC54S018JET180E lpcxpresso54s018_hello_world_qspi_xip Question Hi @mtsang  I think your schematics of the SPI NOR FLASH is wrong. In the NOR FLASH Data sheet. PIN 5 SI should be connected IO0. PIN 2 SO should be connected IO1. But in your schematic. PIN 5 SI is connected IO1. BR Harry Re: Custom Board LPC54S018JET180E lpcxpresso54s018_hello_world_qspi_xip Question Hi Harry,      Sure! Attached is the schematics of the SPI NOR FLASH. SPIFI_CSN -> LPC54S018JET180E_N7 SPIFI_IO0 -> LPC54S018JET180E_M7 SPIFI_IO1 -> LPC54S018JET180E_K8 SPIFI_IO2 -> LPC54S018JET180E_M9 SPIFI_IO3 -> LPC54S018JET180E_L9 SPIFI_SCK -> LPC54S018JET180E_M13 Thanks, 7/7/2025 Re: Custom Board LPC54S018JET180E lpcxpresso54s018_hello_world_qspi_xip Question Hi @mtsang  Can you share your schematic about the flash? BR Harry Re: Custom Board LPC54S018JET180E lpcxpresso54s018_hello_world_qspi_xip Question Hi Harry, Thanks for your detailed response, but I am still getting the same error. Executing flash operation 'Program' (Program file into flash: Debug\lpc54018iotmodule_hello_world_lpc54018iotmodule.axf) - Thu Jul 03 14:29:23 PDT 2025 Checking MCU info... Scanning for targets... Executing flash action... LinkServer RedlinkMulti Driver v24.12 (Dec 18 2024 18:34:07 - crt_emu_cm_redlink.exe build 869) ( 0) Reading remote configuration Wc(03). No cache support. Found chip XML file in C:/Users/tsangm/Documents/MCUXpressoIDE_24.12.148/workspace/lpc54018iotmodule_hello_world_lpc54018iotmodule/Debug\LPC54018.xml ( 5) Remote configuration complete Reconnected to existing LinkServer process. Probe Firmware: MCU-LINK Pro (r0CF) CMSIS-DAP V3.153 (NXP Semiconductors) Serial Number: F4ON0DG121ZHK VID:PID: 1FC9:0143 USB Path: 0001:001a:00 Using memory from core 0 after searching for a good core On debug connection - use system reset, stalling when 0x40000040 is accessed Retask read watchpoint 1 at 0x40000040 to use for boot ROM stall Waiting for target to stop... Warning - processor did not halt - gave up waiting ( 30) Emulator Connected ( 40) Debug Halt ( 50) CPU ID debug interface type = CoreSight DP (DAP DP ID 2BA01477) over SWD TAP 0 processor type = Cortex-M4 (CPU ID 00000C24) on DAP AP 0 number of h/w breakpoints = 6 number of flash patches = 2 number of h/w watchpoints = 4 Probe(0): Connected&Reset. DpID: 2BA01477. CpuID: 00000C24. Info: Debug protocol: SWD. RTCK: Disabled. Vector catch: Enabled. Content of CoreSight Debug ROM(s): RBASE E00FF000: CID B105100D PID 04000BB4C4 ROM (type 0x1) ROM 1 E000E000: CID B105E00D PID 04000BB00C Gen SCS (type 0x0) ROM 1 E0001000: CID B105E00D PID 04003BB002 Gen DWT (type 0x0) ROM 1 E0002000: CID B105E00D PID 04002BB003 Gen FPB (type 0x0) ROM 1 E0000000: CID B105E00D PID 04003BB001 Gen ITM (type 0x0) ROM 1 E0040000: CID B105900D PID 04000BB9A1 CSt TPIU type 0x11 Trace Sink - TPIU ROM 1 E0041000: CID B105900D PID 04000BB925 CSt ETM type 0x13 Trace Source - Core NXP: LPC54018 DAP stride is 4096 bytes (1024 words) Inspected v.2 External Flash Device on SPI LPC540xx_SPIFI_SFDP.cfx Image 'LPC540xx_JEDEC_SFDP Dec 18 2024 17:26:01' Opening flash driver LPC540xx_SPIFI_SFDP.cfx Using SOFT reset to run the flash driver rst - Boot ROM stall address was not accessed (but we entered debug on Halt anyway) Driver V.2 dynamic startup failed - driver Init provided no flash parameters Flash Driver V.2 startup failed - rc Ef(55): Dynamic flash driver startup failed to provide flash parameters. Terminate (0x0, 0x0, 0x0) status 0x40 - driver reports init failure - EXTSPI driver rc 15 (0xF) chip initialization failed - Ef(55): Dynamic flash driver startup failed to provide flash parameters. failed to initialize flash driver LPC540xx_SPIFI_SFDP.cfx ( 65) Chip Setup Complete (100) Target Operation Failed Unable to perform operation! Command failed with exit code 1 Thanks, 7/3/2025 Re: Custom Board LPC54S018JET180E lpcxpresso54s018_hello_world_qspi_xip Question Hi @mtsang  About the different register define. I think you can refer to the UM11060 Table 12. Image header for the LPC540xx devices. I checked the IS25LP128F-JBLA3 DATA SHEET. Regarding how to configure relevant parameters, let me give an example to illustrate. 1. So setStatusFxId is 0B. 2. So setOptionsFxId is 0F 3. So the getReadCmdFxId is 0x11. 4. So getStatusFxId is 06. And so on. And i write one based on the  IS25LP128F-JBLA3 data sheet and the  SDK startup_lpc54s018.c #ifdef IS25LP128F-JBLA3 /* SPI Descriptor - IS25LP128F-JBLA3 */ (void (*)(void))0x00000000, // 0xFFFFFFFF to default 1-bit SPI mode ;DevStrAdr (void (*)(void))0x0018609D, // mfgId + extCount (void (*)(void))0x00000000, // extid 0-3 (void (*)(void))0x00000000, // reserved (void (*)(void))0x1301001D, // caps (void (*)(void))0x00000100, // Blks + RESV1 (void (*)(void))0x00010000, // blkSize (void (*)(void))0x00000000, // reserved (void (*)(void))0x00000100, // pageSize + RESV2 (void (*)(void))0x00003F00, // maxReadSize (void (*)(void))0x68506850, // maxClkRate,maxReadRate,maxHSReadRate,maxProgramRate (void (*)(void))0x06020050, // maxHSProgramRate,initDeInitFxId,clearStatusFxId,getStatusFxId (void (*)(void))0x14110F0B, // setStatusFxId,setOptionsFxId,getReadCmdFxId,getWriteCmdFxId #endif You can double check. And then  You can replace it with IS25LP128F-JBLA3. BR Harry Re: Custom Board LPC54S018JET180E lpcxpresso54s018_hello_world_qspi_xip Question Hi Harry,      Sorry for the late reply and thanks for the infos.      I am still confused about how to find the info marked with BOLD Text. Can you please provide advice on how to find those infos in the IS25LP128F datasheet.      Also for the macro marked with BOLD text. Once I changed the macro, is there anything I need to change to the entire project setup like (Project Setting, 'startup_lpc54018.c', etc) What I found so far, please double check if I am correct //maxClkRate,maxReadRate,maxHSReadRate,maxProgramRate Clock Frequency except for fast read: 166Mhz (A3h) Clock Frequency for read (03h): 80Mhz (50h) #ifdef IS25LP128F-JBLA3 /* SPIFI Descriptor - IS25LP128F-JBLA3 */ (void (*)(void))0x00000000, // 0xFFFFFFFF to default 1-bit SPI mode ;DevStrAdr (void (*)(void))0x0018609D, // mfgId + extCount (void (*)(void))0x00000000, // extid 0-3 (void (*)(void))0x00000000, // extid 4-7 (void (*)(void))0x0001001D, // caps (void (*)(void))0x00000100, // Blks + RESV1 (void (*)(void))0x00010000, // blkSize (void (*)(void))0x00000000, // subBlks + subBlkSize (void (*)(void))0x00000100, // pageSize + RESV2 (void (*)(void))0x00003F00, // maxReadSize (void (*)(void))0x68506850, // maxClkRate,maxReadRate,maxHSReadRate,maxProgramRate (void (*)(void))0x04030050, // maxHSProgramRate,initDeInitFxId,clearStatusFxId,getStatusFxId, (void (*)(void))0x14110D09, // setStatusFxId,setOptionsFxId,getReadCmdFxId,getWriteCmdFxId #endif Thanks, 6/30/2025 Re: Custom Board LPC54S018JET180E lpcxpresso54s018_hello_world_qspi_xip Question Hi Harry,      Sorry for the late reply and thanks for the info.      However I am still confused about how to find the info marked with Red Text. Can you please provide advice on how to find those infos in the IS25LP128F datasheet.      Also for the macro marked with blue text. Once I changed the macro, is there anything I need to change to the entire project setup like (Project Setting, 'startup_lpc54018.c', etc) Here's what I found, please double check if they are correct: //maxClkRate,maxReadRate,maxHSReadRate,maxProgramRate Clock Frequency except for fast read: 166Mhz (A3h) Clock Frequency for read (03h): 80Mhz (50h) #ifdef IS25LP128F-JBLA3 /* SPIFI Descriptor - IS25LP128F-JBLA3 */ (void (*)(void))0x00000000, // 0xFFFFFFFF to default 1-bit SPI mode ;DevStrAdr (void (*)(void))0x0018609D, // mfgId + extCount (void (*)(void))0x00000000, // extid 0-3 (void (*)(void))0x00000000, // extid 4-7 (void (*)(void))0x0001001D, // caps (void (*)(void))0x00000100, // Blks + RESV1 (void (*)(void))0x00010000, // blkSize (void (*)(void))0x00000000, // subBlks + subBlkSize (void (*)(void))0x00000100, // pageSize + RESV2 (void (*)(void))0x00003F00, // maxReadSize (void (*)(void))0x68506850, // maxClkRate,maxReadRate,maxHSReadRate,maxProgramRate (void (*)(void))0x04030050, // maxHSProgramRate,initDeInitFxId,clearStatusFxId,getStatusFxId, (void (*)(void))0x14110D09, // setStatusFxId,setOptionsFxId,getReadCmdFxId,getWriteCmdFxId #endif Thanks, 6/30/2025 Re: Custom Board LPC54S018JET180E lpcxpresso54s018_hello_world_qspi_xip Question Hi @mtsang  You are right. You need to modify the SPIFI Descriptor. You currently have: (void (*)(void))0x001870EF, // mfgId + extCount This corresponds to: mfgId = 0xEF (Winbond, not correct for IS25LP128F) device ID = 0x70 (part of JEDEC ID for W25Q128) But for IS25LP128F, the JEDEC ID is:   Manufacturer ID = 0x9D (ISSI) Memory type = 0x60 Capacity = 0x18   So you should change:   (void (*)(void))0x0018609D, // mfgId + extCount (extCount = 1, mfgId = 0x9D, memType = 0x60, capacity = 0x18)   And you should also verify (void (*)(void))0x04030050, // maxHSProgramRate,initDeInitFxId,clearStatusFxId,getStatusFxId, (void (*)(void))0x14110D09, // setStatusFxId,setOptionsFxId,getReadCmdFxId,getWriteCmdFxId BR Harry Re: Custom Board LPC54S018JET180E lpcxpresso54s018_hello_world_qspi_xip Question Hi Harry,      Thank you so much for the reply!      I am using "IS25LP128F-JBLA3" for the custom board. According to the datasheet(please see attached IS25LP128F-JBLA3 datasheet), it seems to support SFDP. I am switching back to "LPC540xx_SPIFI_SFDP.cfx" for memory config.    I checked the "SPIFI Descriptor"  in the "LPC54S018JET180E lpcxpresso54s018_hello_world_qspi_xip" startup_lpc54018.c I saw the SPIFI Descriptor : #ifdef W25Q128JVFM /* SPIFI Descriptor - W25Q128JVFM */ (void (*)(void))0x00000000, // 0xFFFFFFFF to default 1-bit SPI mode ;DevStrAdr (void (*)(void))0x001870EF, // mfgId + extCount (void (*)(void))0x00000000, // extid 0-3 (void (*)(void))0x00000000, // extid 4-7 (void (*)(void))0x0001001D, // caps (void (*)(void))0x00000100, // Blks + RESV1 (void (*)(void))0x00010000, // blkSize (void (*)(void))0x00000000, // subBlks + subBlkSize (void (*)(void))0x00000100, // pageSize + RESV2 (void (*)(void))0x00003F00, // maxReadSize (void (*)(void))0x68506850, // maxClkRate,maxReadRate,maxHSReadRate,maxProgramRate (void (*)(void))0x04030050, // maxHSProgramRate,initDeInitFxId,clearStatusFxId,getStatusFxId, (void (*)(void))0x14110D09, // setStatusFxId,setOptionsFxId,getReadCmdFxId,getWriteCmdFxId #endif      Should I change the SPIFI Descriptor(I modified the Bold Text)? Also I am unsure what to change for the under-line section. What else I need to change in order to make the example project works on my custom board: #ifdef IS25LP128F-JBLA3 /* SPIFI Descriptor - IS25LP128F-JBLA3 */ (void (*)(void))0x00000000, // 0xFFFFFFFF to default 1-bit SPI mode ;DevStrAdr (void (*)(void))0x001870EF, // mfgId + extCount (void (*)(void))0x00000000, // extid 0-3 (void (*)(void))0x00000000, // extid 4-7 (void (*)(void))0x0001001D, // caps (void (*)(void))0x00000100, // Blks + RESV1 (void (*)(void))0x00010000, // blkSize (void (*)(void))0x00000000, // subBlks + subBlkSize (void (*)(void))0x00000100, // pageSize + RESV2 (void (*)(void))0x00003F00, // maxReadSize (void (*)(void))0x68506850, // maxClkRate,maxReadRate,maxHSReadRate,maxProgramRate (void (*)(void))0x04030050, // maxHSProgramRate,initDeInitFxId,clearStatusFxId,getStatusFxId, (void (*)(void))0x14110D09, // setStatusFxId,setOptionsFxId,getReadCmdFxId,getWriteCmdFxId #endif Thanks, 6/23/2025 Re: Custom Board LPC54S018JET180E lpcxpresso54s018_hello_world_qspi_xip Question Hi @mtsang  From your log: Flash Driver V.2 startup failed - rc Ef(55): Dynamic flash driver startup failed to provide flash parameters. The SPIFI  flash driver attempted to probe your external flash device via SFDP, but failed to identify valid parameters for your flash. What is the exact part number of the flash IC on your custom board? Check its datasheet for SFDP support — not all parts provide SFDP data. BR Harry Re: Custom Board LPC54S018JET180E lpcxpresso54s018_hello_world_qspi_xip Question Hi Harry,      I deselect the "Link Application to RAM" and I got the below error message: Executing flash operation 'Program' (Program file into flash: Debug\lpcxpresso54s018_hello_world_qspi_xip_HelloWorldSPIFI003.axf) - Tue Jun 17 12:17:21 PDT 2025 Checking MCU info... Scanning for targets... Executing flash action... LinkServer RedlinkMulti Driver v24.12 (Dec 18 2024 18:34:07 - crt_emu_cm_redlink.exe build 869) ( 0) Reading remote configuration Wc(03). No cache support. Found chip XML file in C:/Users/tsangm/Documents/MCUXpressoIDE_24.12.148/workspace/lpcxpresso54s018_hello_world_qspi_xip_HelloWorldSPIFI003/Debug\LPC54S018.xml ( 5) Remote configuration complete Reconnected to existing LinkServer process. Probe Firmware: MCU-LINK Pro (r0CF) CMSIS-DAP V3.153 (NXP Semiconductors) Serial Number: F4ON0DG121ZHK VID:PID: 1FC9:0143 USB Path: 0001:0018:00 Using memory from core 0 after searching for a good core On debug connection - use system reset, stalling when 0x40000040 is accessed Retask read watchpoint 1 at 0x40000040 to use for boot ROM stall Waiting for target to stop... Warning - processor did not halt - gave up waiting ( 30) Emulator Connected ( 40) Debug Halt ( 50) CPU ID debug interface type = CoreSight DP (DAP DP ID 2BA01477) over SWD TAP 0 processor type = Cortex-M4 (CPU ID 00000C24) on DAP AP 0 number of h/w breakpoints = 6 number of flash patches = 2 number of h/w watchpoints = 4 Probe(0): Connected&Reset. DpID: 2BA01477. CpuID: 00000C24. Info: Debug protocol: SWD. RTCK: Disabled. Vector catch: Enabled. Content of CoreSight Debug ROM(s): RBASE E00FF000: CID B105100D PID 04000BB4C4 ROM (type 0x1) ROM 1 E000E000: CID B105E00D PID 04000BB00C Gen SCS (type 0x0) ROM 1 E0001000: CID B105E00D PID 04003BB002 Gen DWT (type 0x0) ROM 1 E0002000: CID B105E00D PID 04002BB003 Gen FPB (type 0x0) ROM 1 E0000000: CID B105E00D PID 04003BB001 Gen ITM (type 0x0) ROM 1 E0040000: CID B105900D PID 04000BB9A1 CSt TPIU type 0x11 Trace Sink - TPIU ROM 1 E0041000: CID B105900D PID 04000BB925 CSt ETM type 0x13 Trace Source - Core NXP: LPC54S018 DAP stride is 4096 bytes (1024 words) Inspected v.2 External Flash Device on SPI LPC540xx_SPIFI_SFDP.cfx Image 'LPC540xx_JEDEC_SFDP Dec 18 2024 17:26:01' Opening flash driver LPC540xx_SPIFI_SFDP.cfx Using SOFT reset to run the flash driver rst - Boot ROM stall address was not accessed (but we entered debug on Halt anyway) Driver V.2 dynamic startup failed - driver Init provided no flash parameters Flash Driver V.2 startup failed - rc Ef(55): Dynamic flash driver startup failed to provide flash parameters. Terminate (0x0, 0x0, 0x0) status 0x40 - driver reports init failure - EXTSPI driver rc 15 (0xF) chip initialization failed - Ef(55): Dynamic flash driver startup failed to provide flash parameters. failed to initialize flash driver LPC540xx_SPIFI_SFDP.cfx ( 65) Chip Setup Complete (100) Target Operation Failed Unable to perform operation! Command failed with exit code 1 Thanks, 6/17/2025 Re: Custom Board LPC54S018JET180E lpcxpresso54s018_hello_world_qspi_xip Question Hi @mtsang  I have a question. According to your need. Why you select the "link application to ram" You can deselect this, and try again. BR Harry
View full article
Android 13 ディスプレイ・インターフェースの LCDIF が機能しない NXP リファレンス デザイン コード ベース: i.MX8MQ プラットフォーム / Android 13.0.0_2.0.0 (L6.1.22_2.0.0 BSP) Android 13(GKI)ではMIPI-DSIに接続されたLCDIFは動作しませんが、Android 11では機能が動作します。 Android 11 ログ: (Android11_LCDIF_OK.log ) [ 3.511971] nwl-dsi 30a00000.mipi-dsi:[drm:nwl_dsi_probe] LCDIFを入力ソースとして使用する [ 4.084346] [gm8775c_bridge_attach] [ 4.084349] [gm8775c_simple_panel_host_register] [ 4.084353] 子ノードパネル、パネル@0 [ 4.084609] panel-simple panel0: DMAマスクが設定されていません [ 4.084653] [パネル_シンプル_プローブ] [ 4.084686] panel-simple panel0: 供給電源が見つかりません。ダミーレギュレータを使用しています。 [ 4.084862] [gm8775c_attach_dsi] [ 4.084955] nwl-dsi 30a00000.mipi-dsi:[drm:nwl_dsi_host_attach] レーン=4、フォーマット=0x0、フラグ=0x15 [ 4.085966] [drm] 30320000.lcd-コントローラ 用に mxsfb-drm 1.0.0 20160824 を初期化しましたマイナー1 [ 4.237089] mxsfb 30320000.lcd-コントローラ:[drm] fb0: mxsfb-drmdrmfb フレームバッファデバイス Android 13 ログ: (Android13_LCDIF_Fail.log ) [ 2.401658][ T8] nwl-dsi 30a00000.mipi-dsi:[drm:nwl_dsi_probe [nwl_dsi]] LCDIF を入力ソースとして使用する [ 2.412617][ T8] [gm8775c_bridge_attach] DRM_BRIDGE_ATTACH_NO_CONNECTOR [ 2.419684][ T8] [drm:drm_bridge_attach] *エラー* ブリッジ /soc@0/bus@30800000/i2c@30a20000/gm8775c@2C2 の接続に失敗しました [ 2.419734][ T1] __power_supply_register: 'battery' の適切な親デバイスが必要です [ 2.420045][ T1] __power_supply_register: 'usb' の適切な親デバイスが必要です [ 2.432612][ T8] [drm:drm_bridge_attach] *エラー* ブリッジ /soc@0/bus@30800000/mipi-dsi@30a00000 を en2 に接続できませんでした [ 2.460891][ T8] mxsfb 30320000.lcd-コントローラ:エラー -EINVAL: ブリッジの接続に失敗しました [ 2.469098][ T8] mxsfb 30320000.lcd-コントローラ:エラー -EINVAL: ブリッジに接続できません [ 2.477247][ T8] mxsfb: 30320000.lcd-コントローラ のプローブエラー -22 で失敗しました 添付のLCDIF_Log.zipAndroid11_LCDIF_OK.log と Android13_LCDIF_Fail.log の両方が含まれます。 Android 11 のログには「Initialized mxsfb-drm」と表示されますが、Android 13 のログにはメッセージが見つかりません。 また、インターネットで「mxsfb」を検索します。 [ 11.141177] mxsfb 30320000.lcdif:ブリッジを接続できません: -22 [ 11.161062] mxsfb: 30320000.lcdif のプローブがエラー -22 で失敗しました mxsfb は lcdif と同じですか? mxsfb-drm を初期化CAN、問題は解決できるでしょうか? はいの場合、Android 13(GKI)でmxsfb-drmを有効にする方法を教えてください。 いいえの場合、問題をどのように解決しますか? ちなみに、&lcdif の代わりに &dcss を使用しているため、DSI から LVDS へのブリッジ ドライバ (gm8775c) が機能すると考えており、Android 13 の MIPI-DSI にコネクテッドされた DCSS が機能する可能性があります。 U-Boot 環境変数を次のように設定しようとしましたが、まだ機能しません。 u-boot=> setenv append_bootargs androidboot.primary_display=mxsfb-drm u-boot=> saveenv Re: Android 13 LCDIF of display interface can't work こんにちは、HyleChang さん、私も同様の問題を抱えています。問題を解決したいので、デバイスツリー ファイルを共有していただけますか。DCSS で LVDS を正常に駆動できましたが、LCDIF で駆動した LVDS は動作しません。パネルサイズ、ドライバコードなどを変更しました。また、ソフトウェア側の問題であることを確認するためにハードウェアを変更しましたが、まだ進展がありません。私は助けが必要です。 これはフォーラムでの私の問題定義です。 https://community.nxp.com/t5/i-MX-Processors/IMX8MQ-Android-11-LCDIF-Display-Not-Working-by-MIPI-DSI-to-LVDS/td-p/2125642 よろしくお願いします Re: Android 13 LCDIF of display interface can't work 親愛なる友人、私も同様の問題を抱えています。SN65dsi ブリッジは lvds をサポートするために使用されます。 条件 1) DCSS+LVDSは正常に動作します 2) DCSS+HDMIは正常に動作します しかし、lcdif+lvdsは動作しません。デュアル ディスプレイをサポートする必要があるSO、LVDS は LCDIF で駆動し、HDMI は DCSS で駆動する必要があります。 Android11 デバイスのデュアル ディスプレイ用のデバイスツリー構成を共有していただけますか?ログを確認しましたが、同様です。 Re: Android 13 LCDIF of display interface can't work ありがとうございます。Android 13でMIPI-DSIにコネクテッドされたLCDIFは動作します。 Re: Android 13 LCDIF of display interface can't work i.MX8MQ の場合、mxsfb は lcdif ドライバであり、lcdif は MIPI DSI のみを出力できます。DCSSはDSIとHDMIの両方CAN出力します。 imx-dcnano と imx-drm は、他の i.MX プラットフォームのディスプレイ コントローラ ドライバでもあります。 Re: Android 13 LCDIF of display interface can't work 親愛なる志明様 「primary_display」を調べてみると、Android_Quick_Start_Guide.pdf では下図のようにあまり詳しく説明されていません。 NXP 独自の用語の意味を整理していただけますか?ありがとう。 プライマリディスプレイ=mxsfb-drm primary_display=imx-dcss プライマリディスプレイ=imx-drm プライマリディスプレイ=imx-dcnano Re: Android 13 LCDIF of display interface can't work ブリッジの接続が成功すると、mxsfb-drm がカーネル空間で初期化されるということですか。 -->はい、そのようなドキュメントはありませんが、uboot とカーネルのソースコードを参照できます。 Re: Android 13 LCDIF of display interface can't work Zhiming_Liu 様 GM8775C ドライバを移植する際には、NXP が提供する Android 11 用の imx8mp_ite6151_mipi2edp_linux_5.4.24_20200921.patch と Android 13 BSP 上の adv7511 ブリッジ ドライバを参照するため、ブリッジ ドライバを再度確認し、DRM_BRIDGE_ATTACH_NO_CONNECTOR フラグに注目します。 ところで、「ブリッジ接続に失敗したため、mxsfb-drm を初期化CANません」とおっしゃいました。 => ブリッジの接続に成功すると、mxsfb-drm がカーネル空間で初期化されるということですか。 はい、Android のブートアニメーション (ロゴ) に u-boot で mxsfb を使用したいのですが、学習して実装するための Android-13 ドキュメントはありますか?ありがとう。 間違っていたら訂正してください。 Re: Android 13 LCDIF of display interface can't work こんにちは@KyleChang mxsfb は lcdif と同じですか? --> i.MX8MQのlcdifドライバはdrivers/GPU/drm/mxsfb/mxsfb_drv.cです。SO、mxsfb です。ブリッジ接続に失敗したため、mxsfb-drm を初期化できません DRM_BRIDGE_ATTACH_NO_CONNECTORフラグの処理方法に関係しているようです。この点を確認していただけますか? mxsfb は DRM_BRIDGE_ATTACH_NO_CONNECTOR を渡しませんが、dcss ドライバは渡します。 ret = drm_bridge_attach(&mxsfb->encoder, bridge, NULL, 0); if (ret) return dev_err_probe(drm->dev, ret, "Failed to attach bridge\n"); mxsfb->bridge = bridge; よろしくお願いいたします。 志明
View full article
S32K311 Bootloader Jump to Application issue Hi  I had a problem with the S32K311 bootloader jumping to the application. Cannot jump normally at present. I refer to posts in the forum, such as: Example S32K312 Bootloader to Application Jump DS3.5 RTD300 - NXP Community Unified bootloader Demo - NXP Community Solved: S32K312 bootloader jump to application issue - NXP Community These methods have been tried, but they can not jump normally, ld linker file is also configured with reference to the example, The only successful jump is to download boot and app programs to MCU respectively and debug boot programs with S32DS. When I run them directly, I cannot jump to app. When I break the point at the jump function and stop running, I can jump to app program. Try to use a delay period of time to jump again, can not, can only break the point to stop, and then run to the app program Is the S32K311 program jump special compared to other S32K3x series? Can the S32K311 bootloader successfully jump to the demo reference of the App? S32K31XEVB-Q100  Re: S32K311 Bootloader Jump to Application issue Hi Team, Can you please share the solution for this issue. I am trying to jump from boootloader to application. But it is not working. This is the Linker file of Bootloader . MEMORY { ITCM (RWX) : ORIGIN = 0x00000000, LENGTH = 0x8000 PFLASH_BOOT (RX) : ORIGIN = 0x00400000, LENGTH = 0xA000 FW_VER_CONFIG (RX) : ORIGIN = 0x00419FE0, LENGTH = 0x20 /* Configuration Manager 1Kb */ CONFIG (RX) : ORIGIN = 0x0041A000, LENGTH = 0x400 PFLASH_BAF (RX) : ORIGIN = 0x004F4000, LENGTH = 0xC000 DFLASH (RX) : ORIGIN = 0x10000000, LENGTH = 0x10000 DTCM (RW) : ORIGIN = 0x20000000, LENGTH = 0x10000 SRAM0_STDBY (RW) : ORIGIN = 0x20400000, LENGTH = 0x2000 SRAM (RW) : ORIGIN = 0x20402000, LENGTH = 0x6000 } This is the Linker file of application MEMORY { ITCM (RWX) : ORIGIN = 0x00000000, LENGTH = 0x8000 PFLASH_APP (RX) : ORIGIN = 0x00480000, LENGTH = 0xFFE0 FW_VER_CONFIG (RX) : ORIGIN = 0x0048FFE0, LENGTH = 0x20 CONFIG (RX) : ORIGIN = 0x00490000, LENGTH = 0x400 PFLASH_BAF (RX) : ORIGIN = 0x004F4000, LENGTH = 0xC000 DFLASH (RX) : ORIGIN = 0x10000000, LENGTH = 0x10000 DTCM (RW) : ORIGIN = 0x20000000, LENGTH = 0x10000 SRAM0_STDBY (RW) : ORIGIN = 0x20400000, LENGTH = 0x2000 SRAM (RW) : ORIGIN = 0x20402000, LENGTH = 0x6000 } I am using the following code to jump to application. __disable_irq(); SCB->VTOR = 0x00480000; func = *(uint32_t volatile *)(0x00480000 + 0xC); func = *(uint32_t volatile *)(((uint32_t)func) + 0x4); func = ((((uint32_t)func) & 0xFFFFFFFFU)); // Reset_Handler+1 --> required to avoid hard fault (* (void (*) (void)) func)(); But jump to application is not happening. Can you please support me on this. Thanks Kiran 回复: S32K311 Bootloader Jump to Application issue Solved
View full article
S32K1xx LIN Stack LDF parser Hi team, The customer is using an NXP S32K118 EVB with the LIN stack (LIN 2.0 protocol) and encountering terminal errors when loading a new LDF (LIN Description File). The same LDF works fine in CANoe, but not in NXP Design Studio.   Error: "Issue: %error Error: xxxxx.ldf line: 111 "NodeName" Frame sporadic_frame_name- Missing frame in LDF Configurable frames in Node Attributes. Level: Error Type: Tool problem Tool: Peripherals Origin: Peripherals Resource: Sources Information: %error Error: xxxxx.ldf line: 111 "NodeName" Frame sporadic_frame_name- Missing frame in LDF Configurable frames in Node Attributes." Occurs for sporadic frames that encapsulate unconditional frames. Error disappears when the sporadic frame name is manually added to the  configurable_frames  list — which is unexpected behavior. Is this a Design Studio issue, a limitation of the NXP LIN stack, or a problem in the LDF file? Why does the tool require sporadic frames in  configurable_frames , when this isn’t standard per LIN 2.0? Thank you, BR, Daniel LIN_STACK Re: S32K1xx LIN Stack LDF parser Hi @danielmartynek , Can you share the LDF file used by the customer? From LIN spec I read the following, which I understand that all frames shall be listed in Configurable Frames, even sporadic frames. BR Liviu
View full article
TJA1103 PHYレジスタのSYMBOL_ERROR_COUNTERについて NXPテクニカルサポートチーム様 このメールがあなたのお元気のところに届くことを祈っています。私の名前はSeongHyeon Limです。現在、TJA1103 100BASE-T1 PHYを使用したオートモーティブ イーサネット診断システムを開発しています。 イーサネットケーブルとコネクタの段階的な劣化を検出する予測メンテナンス機能を実装しようとしているため、SYMBOL_ERROR_COUNTER の特定の動作について問い合わせるためにこのメールを書いています。 システム概要: 製品: TJA1103 100BASE-T1 PHY ([S32K3X4EVB-T172]搭載) 目的: ケーブル/コネクタの老朽化による通信品質の低下を検出し、予知保全を図る。 監視対象レジスタ: SIGNAL_QUALITY(共有MMD、アドレス0x8320) SYMBOL_ERROR_COUNTER (共有MMD、アドレス0x8350) 観察された行動: 信号品質を意図的に低下させるテストでは、SIGNAL_QUALITY レジスタの SQI 値が 7 から 4 または 3 に徐々に減少することがわかります。SQI 値が低下すると、SYMBOL_ERROR_COUNTER が少なくとも断続的に増加し始めると予想されました。 ただし、SQI が大幅に低下した場合でも (たとえば、3 または 4)、SYMBOL_ERROR_COUNTER はゼロのままであることがわかります。カウンターは、リンクダウン イベント情報と同時に発生する SQI が 0 に低下した瞬間にのみ急速に増加するように見えます。 私たちの仮説: これは、リンクが「利用可能」である (つまり、LINK_AVAILABLE ビットが設定されている) 限り、ほぼすべての信号エラーを効果的に修正する、TJA1103 の堅牢な内部 DSP とアダプティブ イコライザーによるものであると考えられます。したがって、シンボル エラーは、PHY の訂正能力が完全に圧倒され、リンク障害が発生した場合にのみカウントされます。 質問: 1. この観察された動作(SQI 値が 0 より大きいのに SYMBOL_ERROR_COUNTER が 0 のままになる)が、TJA1103 の意図された予想される動作であるかどうかを確認してください。 2. これが予想される動作である場合、ケーブルの段階的な老朽化を予測的にメンテナンスする目的で、NXP は、SYMBOL_ERROR_COUNTER を早期指標として使用するのではなく、主に SQI の下降傾向と MSE の上昇傾向を監視することを推奨しますか? 3. SYMBOL_ERROR_COUNTER が増加し始める特定の条件 (特定の内部状態、リンク障害以外のしきい値など) に関して、さらに詳しい技術ドキュメントや説明はありますか? ご協力ありがとうございました。必要に応じて、コードスニペットやログなどの追加情報を提供できます。 Re: TJA1103 PHY registers about SYMBOL_ERROR_COUNTER こんにちは@forfortuna 、 明確かつよく構成された質問をありがとうございます。 あなたの観察と仮説は正しいです。TJA1103 の SYMBOL_ERROR_COUNTER は、信号品質が低下している場合でも、SQI がゼロより大きい間は通常ゼロのままです。これは予想される動作です。 1. SYMBOL_ERROR_COUNTERの動作 はい、これが意図した操作です。カウンターは、LINK_AVAILABLE = 1 かつ COUNTERS_ENABLE = 1 の場合にのみ増加し、通常は PHY の内部修正メカニズムが十分でなくなったとき(通常は SQI が 0 に低下してリンクがダウンしたとき)にのみ増加します。 2. モニタリングに関する推奨事項 予測保守では、SQI の傾向と MSE に重点を置くことをお勧めします。これらは、SYMBOL_ERROR_COUNTER よりも早期かつ段階的にリンク劣化の指標を提供します。 3. 追加ドキュメント SYMBOL_ERROR_COUNTER をトリガーする内部条件に関する公開ドキュメントは他にありません。 よろしくお願いいたします。 パベル
View full article
S32K312 EVBデバッグ こんにちは: 本当に愚かなミスを犯してしまいました。S32K31XEVB-Q100 のデバッグ ポートを通常の GPIO として構成したため、デバッグ ポート経由でプログラムをダウンロードできなくなりました。この問題の解決策があるかどうか教えていただけますか? さらに、搭載 OPEN-SDA の代わりに外部デバッガーを使用しています。 Re: S32K312 EVB DEBUG こんにちは@PINKMAN 、 Segger 社はこの問題を修正しており、11 月 12 日にリリース予定のバージョン V8.88 に変更が組み込まれる予定です。 よろしくお願いいたします。 ダニエル Re: S32K312 EVB DEBUG こんにちは@PINKMAN 、 SEGGER お問い合わせにお問い合わせしたところ、アルゴリズムにバグがあることが確認されました。 現在、修正に取り組んでいます。利用可能になったら、それに応じてThreadを更新します。 よろしくお願いいたします。 ダニエル Re: S32K312 EVB DEBUG S32K31XEVB-Q100をお持ちの場合、PTA4(JTAG_TMS_SWD_DIO)をCMP_OUTとして設定し、jlinkコマンドを使用してロック解除を試みることができますか? Re: S32K312 EVB DEBUG 2つのモードすべてを試しましたが、まだ機能しません Re: S32K312 EVB DEBUG JTAG プロトコルも試していただけますか? よろしくお願い申し上げます。 Re: S32K312 EVB DEBUG あなたの提案によると、それは機能しません。写真は私の手順です。何が起こったのか教えていただけますか。私のデバッグはSWDモードです。ありがとうございます Re: S32K312 EVB DEBUG この解決策を試していただけますか? https://community.nxp.com/t5/S32-SDK/dap-after-program-s32k312-with-pll0-equal/td-p/1609010 の電源投入に失敗しました ありがとうございました。 BR、ダニエル Re: S32K312 EVB DEBUG PTA4 (JTAG_TMS_SWD_DIO) のみを CMP_OUT として設定し、他のデバッグ ピンは設定しませんでした。使用するデバッガーは JLINK です。この問題を解決する方法があれば教えていただけますか? Re: S32K312 EVB DEBUG こんにちは@PINKMAN 、 デバッグを成功させるには、ピンが再構成される前に、MCU をリセットし、デバッガーがコアを接続して短時間内に停止する必要があります。 reset_b ピンも再構成しましたか? SO、MCU をリセットする唯一の信頼できる方法は、パワーオン リセット (POR) を使用することです。 どのデバッガーを使用していますか? たとえば、Lauterbach を使用している場合は、次のようなスクリプトをCAN。 SYStem.CPU S32K312-M7 SYStem.config.core 1. 1. SYStem.config.debugporttype JTAG System.JTAGclock 10MHz sys.Option DUALPORT ON wait state.power() sys.up if RUN() break MCU に電源が投入されるまで待機します。 よろしくお願いいたします。 ダニエル
View full article
s32g 274a SPD eMcem_Init ジャンプ HardFault_Handler HardFault_Handlerへのジャンプを回避する方法 eMcem_Init を呼び出すと、ハードウェア割り込みがトリガーされます。EB ではすでにすべての障害を無効にするように設定しています。 S32G274A M0コア S32DS: 3.5 アップデート3 SPD: 2.0.2 考える Re: s32g 274a SPD eMcem_Init jumping HardFault_Handler こんにちは、リウチ お問い合わせいただきありがとうございます。 どのバージョンの RTD を使用していますか?RDB2ボードを使用していますか? BR ジョーイ
View full article