Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
i.MX8 MP I2C missing ACK Hello, I am having an issue with I2C3 SCL being stuck low during the first transfer each boot.  I am using the i.MX8 MP EVK, with MCUXpresso SDK 2.15.  I am trying to talk to an I2C device via the I2C3 peripheral using the M7 while the A53 is parked in u-boot. Immediately after boot, the first transaction appears to clock out the address byte, which is acknowledged, and the sub-address data to the slave device as expected. However, the sub-address ACK clock pulse is NOT being generated.  The ACK bit is not clocked when using either the I2C_MasterTransferNonBlocking() or the I2C_MasterTransferBlocking() commands, nor is a stop condition being generated. Subsequent I2C transfers generate no clock pulses.  When in this state, if I reconfigure the SCL pin to an open-drain output, I can toggle it, so I do not believe the slave is holding the clock line low. See the example waveform below. Why would the first byte have a NAK clocked out correctly, but not the second byte? Re: i.MX8 MP I2C missing ACK I believe the issue was with capacitive loading thanks to several jumper cables and solderless breadboards. Based on your reply, I hooked up the device to the 1.8 V I2C rails ("upstream" of U5), and I had no issues communicating with the device. Re: i.MX8 MP I2C missing ACK Hi, @aheck  What I2C device is trying to connect? Is it 1.8V or 3.3V? At what speed? I2C3 has a few other device on it, and it has an 3.3V level shifter (U5 or NTS0104GU12). If you connect 3.3V device, make sure the capacitive load is within level shifter's limit. Also, make sure u-boot is not occupying I2C3, or try to use another I2C, e.g. I2C5.
View full article
s32k144链接器文件中的条件语句 大家好, 如何在s32k144的链接器文件中添加条件语句 以下是我的记忆部分 记忆 { /* 闪光 */ m_interrupts(RX):起源 = 0x00002000,长度 = 0x00000400 m_flash_config(RX):起源 = 0x00002400,长度 = 0x00000010 m_text(RX):起源 = 0x00002410,长度 = 0x0007FBF0 /* SRAM_L */ m_data(RW):起源 = 0x1FFF8000,长度 = 0x00008000 /* SRAM_U */ m_data_2 (RW):起源 = 0x20000000,长度 = 0x00007000 } 所以在这里我想在内存部分添加条件语句,这样我们为 APP1 编译时它应该与上面的内存部分一起编译,如果我想为 APP2 编译它应该与下面的内存部分一起编译 记忆 { /* 闪光 */ m_interrupts(RX):起源 = 0x00008000,长度 = 0x00000400 m_flash_config(RX):起源 = 0x00008400,长度 = 0x00000010 m_text(RX):起源 = 0x00009410,长度 = 0x0007FBF0 /* SRAM_L */ m_data(RW):起源 = 0x1FFF8000,长度 = 0x00008000 /* SRAM_U */ m_data_2 (RW):起源 = 0x20000000,长度 = 0x00007000 } 请就此给予我们指导。
View full article
bldc motor is there any reference code or source code is available to control BLDC motor if yes please provide that link to download spurce code for BLDC motor Re: bldc motor Hello, There is whole section on our web dedicated to BLDC: https://www.nxp.com/applications/industrial/aerospace/brushless-dc-motor-bldc-control:BRUSHLESS-DC-MOTORS You will find application notes along with the example SW in Documentation section: Best regards, Peter
View full article
Custom M7 Secondary bootloader i.MX RT1176 Hello, Currently both m7 and m4 core FW is stored in QSPI flash FlexSPI1 0x30000000. First M7 boots up and then it start the core M4 by coping image from QPSI to alias of 0x20200000. All working fine. Now I want to add custom bootloader which will boot the M7 core based on certain validation and post M7 will boot m4. Also will be take care of OTA of M7/M4 or both firmware. Do you have any standard Secondary bootloader code? please share for reference. Thanks Re: Custom M7 Secondary bootloader i.MX RT1176 @chandan_uv  Please refer to the ota_examples/mcuboot_opensource or mcboot_basic examples to find more details including secondary stage bootloader. Please refer to README.md firstly if you have RT1170 EVKB board and NXP offical SDK.
View full article
Project template for S32K144 Hello, I want to create a project from scratch in S32DS 3.6.0. However the main.c file seems too blank to me. There is no clock settings or Mcal_Init() function in it. Should I set this field manually or are there any template projects for it ?  I know there is a examples in RTD but I need empty project with mandatory functions calls like mcu_init or clock_init. /*================================================================================================== * Project : RTD AUTOSAR 4.7 * Platform : CORTEXM * Peripheral : S32K14X * Dependencies : none * * Autosar Version : 4.7.0 * Autosar Revision : ASR_REL_4_7_REV_0000 * Autosar Conf.Variant : * SW Version : 2.0.0 * Build Version : S32K1_RTD_2_0_0_P01_D2308_ASR_REL_4_7_REV_0000_20230804 * * Copyright 2020-2023 NXP Semiconductors * * NXP Confidential. This software is owned or controlled by NXP and may only be * used strictly in accordance with the applicable license terms. By expressly * accepting such terms or by downloading, installing, activating and/or otherwise * using the software, you are agreeing that you have read, and that you agree to * comply with and are bound by, such license terms. If you do not agree to be * bound by the applicable license terms, then you may not retain, install, * activate or otherwise use the software. ==================================================================================================*/ /** * @file main.c * * @addtogroup main_module main module documentation * @{ */ /* Including necessary configuration files. */ #include "Mcal.h" volatile int exit_code = 0; /* User includes */ /*! \brief The main function for the project. \details The startup initialization sequence is the following: * - startup asm routine * - main() */ int main(void) { /* Write your code here */ for(;;) { if(exit_code != 0) { break; } } return exit_code; } /** @} */ Re: Project template for S32K144 Thank you for your help Peter Re: Project template for S32K144 Hello, I want to create a project from scratch in S32DS 3.6.0. However the main.c file seems too blank to me. There is no clock settings or Mcal_Init() function in it. Should I set this field manually or are there any template projects for it ? You wont probably find specific template with such functions included. Closest to what you are looking for would be MCU example in MCU plugin: I always prefer blank project where I will start one by one putting code so I can evaluate each step if it is working. Simply copy init function from example and put it into the blank project. Or you can use API documentation and write the code / call functions by yourself. Best regards, Peter
View full article
Issues with Ethernet Enablement and Network Connectivity on NXP S32G-VNP-RDB2 I have powered on the NXP S32G RDB2 Board and was able to communicate serially with PuTTY.  However when I want to connect ethernet cable to it. Even though I tried assigning static IPs, it wouldn't ping. I want to enable the ethernet driver or solve the issue so that I can test my usecases. Re: Issues with Ethernet Enablement and Network Connectivity on NXP S32G-VNP-RDB2 Hello @chenyin_h , I am glad to share that finally it is pinging and tested out by connecting to router and creating a private network with other boards, for now I am exploring ethernet communications at other ports too. For any other problems, I shall open another ticket or post. Thank you! Re: Issues with Ethernet Enablement and Network Connectivity on NXP S32G-VNP-RDB2 Hello, @vigneshrk0482  Thanks for your reply. I have just tested it on my local RDB2 with default BSP35.0 images(without any other settings), the eth0 could be used correctly. The testing log is attached for your reference. BR Chenyin Re: Issues with Ethernet Enablement and Network Connectivity on NXP S32G-VNP-RDB2 Hello @chenyin_h , The BSP version is Auto Linux 35 (U-boot from SD Card) and using the GMAC port. However I think that the ethernet is not enabled. When I checked eth0 in ip route it says NO-CARRIER but in ifconfig it says UP. Also I want to use this to communicate with Raspberry Pi to NXP board. Please guide me what steps to do as I have tried all the attempts. Re: Issues with Ethernet Enablement and Network Connectivity on NXP S32G-VNP-RDB2 Hello, @vigneshrk0482  Thanks for the post. May I know which version BSP(or other software package) is used for your test? which network port was used? BR Chenyin 
View full article
NXP S32G-VNP-RDB2 でのイーサネットの有効化とネットワーク接続の問題 NXP S32G RDB2ボードの電源を入れ、PuTTYとシリアル通信できました。ただし、イーサネットケーブルを接続したい場合。静的IPを割り当てようとしても、pingは実行されませんでした。イーサネットドライバーを有効にするか、問題を解決して、ユースケースをテストできるようにしたいと考えています。 Re:NXP S32G-VNP-RDB2でのイーサネットの有効化とネットワーク接続の問題 こんにちは @chenyin_h 、私はついにそれがpingされ、ルーターに接続し、他のボードとプライベートネットワークを作成することによってテストされていることを共有できてうれしいです、今のところ私は他のポートでもイーサネット通信を探索しています。その他の問題については、別のチケットまたはポストを開きます。 ありがとうございます! Re:NXP S32G-VNP-RDB2でのイーサネットの有効化とネットワーク接続の問題 こんにちは@chenyin_h 、 BSPバージョンはAuto Linux 35(SDカードからのUブート)で、GMACポートを使用します。しかし、イーサネットが有効になっていないと思います。ipルートでeth0を確認したときはNO-CARRIERと表示されていましたが、ifconfigではUPと表示されます。また、これを使用してRaspberry PiとNXPボードと通信したいと思います。私がすべての試みを試したので、どのような手順を踏むべきか教えてください。
View full article
S32 DS 3.5 Free RTOS Hi, New to the S32K DS v3.5 and am trying to get some code working with FreeRTOS for the S32K344. Where can i find some example projects? Or Do i need to install additional package? if so can anyone share me the links? Thanks in advance Re: S32 DS 3.5 Free RTOS Hi, Thank you for support Re: S32 DS 3.5 Free RTOS Hi, OK, then download "FreeRTOS 10.6.0 version 4.0.0" BR, Petr Re: S32 DS 3.5 Free RTOS Hi @PetrS , I am using RTD V 4.0.0. Re: S32 DS 3.5 Free RTOS Hi, yes, to get FreeRTOS example you need to add FreeRTOS package on top of RTD one. After successful installation you would be able to create new project from demo examples You did not specify the RTD version you have installed, based on this you need to select right FreeRTOS package version  from https://www.nxp.com/webapp/swlicensing/sso/downloadSoftware.sp?catid=SW32K3-REFSW-D Read package release note document for more info about installation steps and required prerequisites.  BR, Petr
View full article
KW38 debug by PE HI,  ide:MCUXpresso IDE v11.9.1_2170 I would like to ask a question. At present, when using KW38 chip to develop ble project, we have encountered problems of burning and debugging. Errors are as follows Looking forward to your reply, thank you. Re: KW38 debug by PE It's a problem with our board,thank you Re: KW38 debug by PE Hello, I will be helping you in this case, I notice that you have 3 questions with the topic involving the KW38, by any chance are they related? I that case we can give a follow up on this threat KW38 debug via PEmicro - NXP Community. Regards, Itzel
View full article
Cannot write data at address 0x80000000 I am confirming the startup of a custom board using the LS1046A. I created the PBL on https://github.com/nxp-qoriq/atf.git to enable booting in QSPI mode. However, when executed, the console message stops at "NOTICE: BL2: Built: [date and time]." Following advice, I used the QCVS DDR tool to access the DDR, but both read and write failed. Additionally, when I ran [Diagnose Connection] in the [Target Connections] tab, an error was output in the [Test DDR memory access] section: "Cannot write data at address 0x80000000." What areas need to be modified on https://github.com/nxp-qoriq/atf.git to initialize the DDR for my custom board? Currently, I am creating a PBL based on the LS1046ARDB. Thanks. Re: Cannot write data at address 0x80000000 Yes, please use the parameters provided in DDRv tool. Re: Cannot write data at address 0x80000000 Thanks to you, the DDR initialization was successful. However, the third step was also necessary, so I will note it down. 3.In the ATF code, the erratum A09803 sets "ddr_out: address=0x1080114, value=0x401160", but in the DDRv tool-generated DDR initialization file, it was described as CCSR_BE_M(0x01080114, 0x00401150 | 0x00000020). Therefore, by modifying ddr_init.c to write 0x401170 to 0x114, it worked successfully. Is this a bug? Re: Cannot write data at address 0x80000000 1. First for new DDR bringing up on the a custom board, we suggest the customer use QCVS DDRv tool to do validation and optimization to get the optimized parameters to use them in atf source code. For QCVS DDRv tool usage, you could refer to the following document. https://www.nxp.com.cn/docs/en/user-guide/QCVS_DDR_User_Guide.pdf https://community.nxp.com/t5/Qonverge-Knowledge-Base/DDR-Controller-Configuration-on-LS2085-LS2080-Bringing-up/ta-p/1128310 You could use "read from SPD" method to create a QCVS DDR project, then connect to your custom board to do validation to get the optimized parameters and build to generate code ddr_init.c  and use it in ATF source code. 2. Modify atf source code according to your custom board. Go back to folder flexbuild_lsdk2108_github, and run the following command to get atf source code. $ flex-builder -c atf -m ls1046ardb -b qspi Go to atf source code folder components/firmware/atf/, please modify ddr controller initialization file plat/nxp/soc-ls1046a/ls1046ardb/ddr_init.c according to your custom board. Rebuild atf with the following command. $ flex-builder -c atf -m ls1046ardb -b qspi You will get atf images bl2_qspi.pbl and fip_uboot.bin in folder flexbuild_lsdk2108_github/build/firmware/atf/ls1046ardb/. Please deploy bl2_qspi.pbl at 0 and fip_uboot.bin at 0x100000 at QSPI flash.
View full article
what's the ideal procedure to follow after changing dts file in provided imx8mp yocto bsp Hello NXP community, Could you please let me know what's the ideal steps to follow to submit changes done to dts file of yocto bsp (version: LF6.6.3_1.0.0) of imx8mp evk. Re: what's the ideal procedure to follow after changing dts file in provided imx8mp yocto bsp Hi @devds! I understand! You can refer to the next link to see all our available documentation. https://www.nxp.com/design/design-center/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX Best Regards! Chavira Re: what's the ideal procedure to follow after changing dts file in provided imx8mp yocto bsp Hello @Chavira , Thanks for reply, These terms (uuu , fdtfile , fat partition etc..) are new to me. Could you please suggest a document or link where i can find more details of these procedure of flashing only changed dtb and related. Thanks and Regards, DineshDeevia Re: what's the ideal procedure to follow after changing dts file in provided imx8mp yocto bsp Hi @devds! If you compile the entire image after the compilation of the device tree the image generated is updated. If you compile the image before the device tree changes I recommend creating a new yocto project to be sure that the changes in the device tree are done. And answering the question, is not necessary to compile the kernel image again but please ensure that you are using the same version. To flash only a new device tree you can use the command fat_write under uuu tool to flash the new device tree under the fat partition of the board. After all, you have to update your environment variable "fdtfile" to the new name of the device tree under U-boot. Best Regards! Chavira Re: what's the ideal procedure to follow after changing dts file in provided imx8mp yocto bsp Hello, After dts compilation and deployment, usually i used to do bitbake imx-image-full and after flash the new .wic file to microSD card and insert into imx8mp-evk and boot it, Is it necessary to build image after dts change ? What's are the ideal steps to follow after compiling and deploying device tree so that changes are flashed into hardware(imx8mp-evk). thanks in advance Re: what's the ideal procedure to follow after changing dts file in provided imx8mp yocto bsp Hi @devds! Thank you for contacting NXP Support! You can refer to the next community post on how to compile a device tree using devshell under Yocto. https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/How-to-use-Devshell-to-compile-device-tree-files/ta-p/1727428 Best Regards! Chavira
View full article
Disabling Serial Downloader Fallback (i.MXRT 1060) I'm interested in if there is a way to disable the Serial Downloader Mode fallback. In other words, unless the BootMode is set to 1, I would like the device to essentially do nothing if the internal boot mode fails. From reading the RM, and especially from seeing the high level boot code flow diagrams, this doesn't particularly seem possible. Primarily, I'm basing my conclusion on Figure 9-1 in chapter 9.3.2, and figure 9-19 in chapter 9.11 of the i.MXRT 1060 RM, which appear to show that all boot modes lead back to Serial Downloader mode when everything fails. However, being quite new to this, perhaps I've missed something. If you need any elaboration or further detail, let me know. Thanks i.MXRT 106x Re: Disabling Serial Downloader Fallback (i.MXRT 1060) Hi @Bless4250 , I agree with your understanding of boot flow that the disabling on serial downloader fallback you mentioned cannot be done, which has solidified in BootROM. Unless serial download mode is completely disabled by eFuse, this shouldn't be what you need either. Best regards, Gavin
View full article
アドレス 0x80000000 にデータを書き込めません LS1046Aを使用してカスタムボードの起動を確認しています。 QSPIモードでの起動を有効にするために、https://github.com/nxp-qoriq/atf.git でPBLを作成しました。ただし、実行すると、コンソール メッセージは "NOTICE: BL2: Built: [date and time]" で停止します。 アドバイスに従って、QCVS DDRツールを使用してDDRにアクセスしましたが、読み取りと書き込みの両方が失敗しました。また、[対象接続]タブの[接続診断]を実行した際、[DDRメモリアクセスのテスト]部分に「0x80000000アドレスにデータを書き込めません」というエラーが出力されました。 カスタム ボードの DDR を初期化するために 、https://github.com/nxp-qoriq/atf.git でどの領域を変更する必要があります か?現在は、そのLS1046ARDBをもとにPBLを作成しています。 ありがとうございます。 Re:アドレス0x80000000にデータを書き込めません はい、DDRvツールで提供されているパラメータを使用してください。 Re:アドレス0x80000000にデータを書き込めません おかげさまでDDRの初期化は成功しました。ただし、3番目のステップも必要だったので、書き留めておきます。 ATF コード 3.In、エラータ A09803 では ddr_out: address=0x1080114, value=0x401160" と設定されていますが、DDRv ツールで生成された DDR 初期化ファイルでは CCSR_BE_M(0x01080114, 0x00401150 | 0x00000020) と記載されていました。したがって、ddr_init.c を変更することにより、0x114に0x401170を書き込むには、うまくいきました。 これはバグですか? Re:アドレス0x80000000にデータを書き込めません 1.まず、カスタムボードで新しいDDRを起動するには、QCVS DDRvツールを使用して検証と最適化を行い、atfソースコードで使用するための最適化されたパラメータを取得することをお勧めします。 QCVS DDRv ツールの使用方法については、次のドキュメントを参照してください。 https://www.nxp.com.cn/docs/en/user-guide/QCVS_DDR_User_Guide.pdf https://community.nxp.com/t5/Qonverge-Knowledge-Base/DDR-Controller-Configuration-on-LS2085-LS2080-Bringing-up/ta-p/1128310 「SPDからの読み取り」方法を使用してQCVS DDRプロジェクトを作成し、カスタムボードに接続して検証を行い、最適化されたパラメータを取得し、ビルドしてコードddr_init.cを生成できます。ATFソースコードで使用します。 2.カスタムボードに従ってatfソースコードを変更します。 フォルダflexbuild_lsdk2108_githubに戻り、次のコマンドを実行してatfソースコードを取得します。 $ flex-builder -c atf -m ls1046ardb -b qspi atfソースコードフォルダcomponents / firmware / atf /に移動し、カスタムボードに応じてDDRコントローラ初期化ファイルplat / nxp / soc-ls1046a / ls1046ardb / ddr_init.cを変更してください。 次のコマンドで atf を再構築します。 $ flex-builder -c atf -m ls1046ardb -b qspi atf イメージ bl2_qspi.pbl と fip_uboot.bin が flexbuild_lsdk2108_github/build/firmware/atf/ls1046ardb/ フォルダにあります。 bl2_qspi.pbl を 0 に、fip_uboot.bin を QSPI フラッシュの 0x100000 に展開してください。
View full article
シリアル・ダウンローダー・フォールバックの無効化 (i.MXRT 1060) シリアルダウンローダーモードのフォールバックを無効にする方法があるかどうか興味があります。つまり、BootMode が 1 に設定されていない限り、内部ブート モードが失敗した場合、デバイスは基本的に何もしないようにします。 RMを読むと、特に高レベルのブートコードフロー図を見ると、これは特に不可能に思えます。主に、i.MXRT 1060 RM の 9.3.2 章の図 9-1 と 9.11 章の図 9-19 に基づいて結論を出していますが、これらは、すべてが失敗すると、すべてのブート・モードがシリアル・ダウンローダー・モードに戻ることを示しています。しかし、これにはかなり慣れていないので、おそらく私は何かを見逃しています。 詳しく説明したり、さらに詳細が必要な場合は、お知らせください。 ありがとうございます i.MXRT 106倍
View full article
How do I set a pin of S32K344 to open drain output mode How do I set a pin of S32K344 to open drain output mode.We have designed the hardware to be in an open drain output triggered mode, with a 5V pull-up,Our hardware schematic is shown in the following figure Re: How do I set a pin of S32K344 to open drain output mode Hello @SCoder41 , here's example for PTG29: #include "Siul2_Port_Ip.h" Siul2_Port_Ip_SetPinDirection(PORTG_H_HALF, 29-16, SIUL2_PORT_HI_Z); 16 shall be subtracted for the upper half port numbers. Best regards, Pavel Re: How do I set a pin of S32K344 to open drain output mode Which address should the first parameter of the function 'Siu l2 Port Ip_SetPinDirection' point to? Re: How do I set a pin of S32K344 to open drain output mode Hello @SCoder41 , important is RTD version. If you look to the link in the first reply, there is function  void Siul2_Port_Ip_SetPinDirection(Siul2_Port_Ip_PortType * const base, uint16 pin, Siul2_Port_Ip_PortDirectionType direction); which can help you. Best regards, Pavel Re: How do I set a pin of S32K344 to open drain output mode S32DS3.5 Re: How do I set a pin of S32K344 to open drain output mode How to set GPIO to "HighZ" mode Re: How do I set a pin of S32K344 to open drain output mode Hello @SCoder41 , there's no "true" open drain support on S32K344 (GPIO open drain? - NXP Community). But your application doesn't look like time critical (many MHz), so you can manage open drain mode easily by switching GPIO between "HighZ" mode and "ouput low" mode. Best regards, Pavel
View full article
DMAによるFLEXCAN S32K322 ERFCR[ERFEN] このレジスタは、S32K322 コントローラでは precent ではありません。 もう1つ、DMAを通じてCANのステップバイステップの例をどなたか教えていただけますか。 日時:DMAによるFLEXCANのS32K322 Hi@vignesh3 新しい質問の新しいトピックを作成すると、この元のトピックは閉じられます。 日時:DMAによるFLEXCANのS32K322 こんにちは@Senlent 、 そのため、従来の RX FIFO を使用する代わりに、DMA を介して受信および送信するためにメッセージ バッファーを使用できます。 an メッセージ・バッファ・アドレスがSRAM領域に存在するのは、アプリケーション・ノートで未構成のメッセージ・バッファをSRAMとして使用できることを学習したためですか。 日時:DMAによるFLEXCANのS32K322 メッセージバッファがCANメッセージを受信した場合、DMAチャネルを要求しますか、それとも従来のfifoのみがDMAを要求していますか? 日時:DMAによるFLEXCANのS32K322 ペリフェラルがDMAチャネルに要求しているかどうかは、どうすればわかりますか。 日時:DMAによるFLEXCANのS32K322 Hi@vignesh3 あなたが言及したメッセージバッファとメールボックスは同じ概念である必要があります。 1.送信するときは、MBを使用する必要があります。 2. 受信はMBまたはFIFOです。 3. レガシー FIFO と拡張 FIFO を同時に有効にすることはできません。違いは、拡張 FIFO は CAN FD に使用できるのに対し、従来の FIFO は CAN FD をサポートできないことです。 日時:DMAによるFLEXCANのS32K322 もう1つ疑問があるのですが、メッセージバッファ、メールボックス、RXFIO(レガシーFIFOおよび拡張FIFO)をいつ使用するか教えていただけますか? 日時:DMAによるFLEXCANのS32K322 このFlexcan_Ip_StateType FlexCAN_BOARD_InitPeripherals_State0では、すべてのCANメッセージを受信しています。グローバル変数。 メッセージ・バッファは、この構造体にインプリメントされます。RAMスペースがCANメッセージバッファとしてどのように割り当てられているか、どなたか教えてもらえますか。 Re: S32K322 FLEXCAN THROUGH DMA こんにちは@Senlent 、 上の図によると、RxFIFO とメールボックスは同じように見えますが、正しいですか?
View full article
无法在地址 0x80000000 写入数据 我正在确认使用 LS1046A 的定制开发板能否启动。我在 https://github.com/nxp-qoriq/atf.git 上创建了 PBL, 以启用 QSPI 模式启动。但是,执行时控制台消息停留在“NOTICE: BL2: Built: [日期和时间]”处。 根据建议,我使用 QCVS DDR 工具访问 DDR,但读写均失败。此外,当我在[目标连接]选项卡中运行[诊断连接]时,在[测试DDR内存访问]部分输出了一个错误:“无法在地址0x80000000处写入数据”。 需要修改https://github.com/nxp-qoriq/atf.git上的哪些区域才能初始化我的自定义板的DDR?目前,我正在基于LS1046ARDB创建一个PBL。 谢谢。 回复:无法在地址 0x80000000 写入数据 是的,请使用DDRv工具提供的参数。 回复:无法在地址 0x80000000 写入数据 感谢您,DDR初始化成功。不过第三步也是必须的,所以我会记下来。 3.在ATF代码中,勘误表A09803设置“ddr_out:address=0x1080114,value=0x401160”,但在DDRv工具生成的DDR初始化文件中,它被描述为CCSR_BE_M(0x01080114,0x00401150 | 0x00000020)。因此,通过修改 ddr_init.c将 0x401170 写入 0x114,成功。 这是一个错误吗? 回复:无法在地址 0x80000000 写入数据 1.首先,对于在定制板上引入的新DDR,我们建议客户使用QCVS DDRv工具进行验证和优化,以获得优化的参数,以便在atf源代码中使用它们。 有关 QCVS DDRv 工具的使用,您可以参考以下文档。 https://www.nxp.com.cn/docs/en/user-guide/QCVS_DDR_User_Guide.pdf https://community.nxp.com/t5/Qonverge-Knowledge-Base/DDR-Controller-Configuration-on-LS2085-LS2080-Bringing-up/ta-p/1128310 您可以使用“从 SPD 读取”方法创建 QCVS DDR 项目,然后连接到您的自定义板进行验证以获取优化参数并构建以生成代码 ddr_init.c并在 ATF 源代码中使用它。 2.根据您的定制板修改atf源代码。 返回文件夹flexbuild_lsdk2108_github,运行以下命令获取atf源代码。 $ flex-builder-c atf-m ls1046ardb-b qspi 转到 atf 源代码文件夹 components/firmware/atf/,请根据您的定制板修改 ddr 控制器初始化文件 plat/nxp/soc-ls1046a/ls1046ardb/ddr_init.c。 使用以下命令重建 atf。 $ flex-builder-c atf-m ls1046ardb-b qspi 您将在文件夹 flexbuild_lsdk2108_github/build/firmware/atf/ls1046ardb/ 中获得 atf 图像 bl2_qspi.pbl 和 fip_uboot.bin。 请在 QSPI 闪存的 0 处部署 bl2_qspi.pbl 并在 0x100000 处部署 fip_uboot.bin。
View full article
禁用串行下载器回退(i.MXRT 1060) 我感兴趣的是是否有办法禁用串行下载器模式回退。换句话说,除非将 BootMode 设置为 1,否则如果内部启动模式失败,我希望设备基本上不执行任何操作。 从阅读 RM,特别是从查看高级引导代码流程图来看,这似乎不太可能。首先,我根据 i.MXRT 1060 RM 第 9.3.2 章中的图 9-1 和第 9.11 章中的图 9-19 得出结论,它们似乎表明,当一切都失败时,所有启动模式都会回到串行下载器模式。然而,由于对此还很陌生,我可能错过了一些东西。 如果您需要任何详细说明或进一步的细节,请告诉我。 谢谢! i.MXRT 106x
View full article
在提供的 imx8mp yocto bsp 中更改 dts 文件后,理想的步骤是什么 大家好,恩智浦社区, 您能否告诉我提交对 imx8mp evk 的 yocto bsp(版本: LF6.6.3_1.0.0)的 dts 文件所做的更改的理想步骤是什么。 回复:在提供的 imx8mp yocto bsp 中更改 dts 文件后,理想的操作步骤是什么 你好@devds ! 感谢您联系 NXP 支持! 您可以参考下一篇社区帖子,了解如何在 Yocto 下使用 devshell 编译设备树。 https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/How-to-use-Devshell-to-compile-device-tree-files/ta-p/1727428 此致! 查维拉
View full article
S32K322 FLEXCAN通过DMA ERFCR[ERFEN]此寄存器在S32K322控制器中不存在。 还有一件事,有人能给我提供一步一步通过 dma 的示例代码吗? 回复:S32K322 FLEXCAN通过DMA 你好@ vignesh3 为您的新问题创建一个新主题,此原始主题已关闭。 回复:S32K322 FLEXCAN通过DMA 你好@Senlent , 因此,我可以使用消息缓冲区通过 DMA 接收和发送,而不是使用传统的 RX FIFO。 消息缓冲区地址是否存在于 SRAM 区域中,因为我已经研究过我们可以在应用说明中使用未配置的消息缓冲区作为 SRAM? 回复:S32K322 FLEXCAN通过DMA 如果消息缓冲区接收到 CAN 消息,它会请求 DMA 通道吗?还是只有传统 fifo 请求 DMA? 回复:S32K322 FLEXCAN通过DMA 我如何知道外围设备是否正在请求 DMA 通道? 回复:S32K322 FLEXCAN通过DMA 你好@vignesh3 你说的消息缓冲区和邮箱应该是同一个概念。 1.发送的时候必须使用MB。 2.接收可以是MB,也可以是FIFO。 3. 传统 FIFO 和增强型 FIFO 不能同时启用。区别在于Enhanced FIFO可以用于CAN FD,而Legacy FIFO无法支持CAN FD。 回复:S32K322 FLEXCAN通过DMA 我还有一个疑问,你能告诉我什么时候使用消息缓冲区、邮箱和 RXFIO(传统 fifo 和增强 fifo)吗? 回复:S32K322 FLEXCAN通过DMA 我们正在接收此 Flexcan_Ip_StateType FlexCAN_BOARD_InitPeripherals_State0;全局变量中的所有 CAN 消息。 消息缓冲区就是在这个结构中实现的。谁能告诉我如何将 RAM 空间分配为 CAN 消息缓冲区。 Re: S32K322 FLEXCAN THROUGH DMA 你好@Senlent、 根据上面的图片,RxFIFO 和邮箱看起来是一样的,对吗?
View full article