About the operation of GPIO_EMC_25 and GPIO_EMC_27 of i.MX RT1021
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The following phenomenon has occurred on a custom board of i.MX RT1021 (100pin QFP).
GPIO_EMC_25 and GPIO_EMC_27 of RT1021 are set as GPIO and output "L" or "H".
When a program is written to the FlashROM and run, the specified value is output from the above two ports, but when a debugger (LinkServer Debugger) is connected and run, the output remains at "L" level.
Of the peripherals that use the two ports, FLEXIO1, SAI1, and SEMC are not supplied with a clock, and it has been confirmed that the LPUART8 register remains in its initial state.
Do you have any idea why the operation of GPIO_EMC_25 and GPIO_EMC_27 changes depending on whether or not a debugger is used?
Best regards


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is it possible that the debugger contains an script that modifies the pads configuration enabling the pull-down.
Best regards,
Omar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your reply.
By "script", do you mean the Reset script and Connect script in the red box below?
The Connect script RT1020_connect.scp is the one from the demo obtained by ”Import SDK example(s)", but does it include a process to manipulate the pads configuration?
Just to be sure, I will attach the contents of RT1020_connect.scp.
1 REM ====================================== 2 REM Copyright 2019-2020, 2023 NXP 3 REM All rights reserved. 4 REM SPDX-License-Identifier: BSD-3-Clause 5 REM ====================================== 100 REM =============================== 110 REM RT1020_connect.scp 150 REM =============================== 160 print "RT1020 Connect Script" 170 REM probelist 180 p% = probefirstfound 190 rem probeopenbyindex p% 200 wireswdconnect p% 210 selectprobecore p% 0 220 cminitapdp this 230 cmhalt this 235 goto 320 240 rem trap in bootrom 250 cmwatchset this 0 0x400F8004 RW 260 cmresetvectorcatchclear this 270 print "Resetting and trapping" 280 cmsysresetreq this 290 print "Back from reset" 300 cmresetvectorcatchset this 310 cmwatchclear this 0 320 print "Disabling MPU" 330 s% = Peek32 this 0xE000ED94 340 s% = s% & 0xFFFFFFFE 350 Poke32 this 0xE000ED94 s% 360 REM ====== Configure FlexRAM ====== 370 print "Configure FlexRAM for 128KB OC RAM, 64KB I-TCM, 64KB D-TCM" 380 REM TCM CTRL Poke 0x400B0000 - to force RAM clocking and set wait states = b100 390 Poke32 this 0x400B0000 0x4 400 REM IOMUXC_GPR17 0x400AC044 - this sets bitfield allocation of FlexRAM 32KB banks to OC 128KB b01, I 64KB b11, D 64KB b10 405 REM Default FlexRAM RAM bank partioning: O,O,D,D,I,I,O,O 410 Poke32 this 0x400AC044 0x5FA5 420 REM IOMUXC_GPR16 0x400AC040 - this sets enables for I and DTCM and the source of the TCM config = 0x200007 430 Poke32 this 0x400AC040 0x200007 440 print "Finished" 450 REM =============================== 460 end |
If the pads configuration has been changed in RT1020_connect.scp, how can I change it to disable the settings of GPIO_EMC_25 and GPIO_EMC_27?
Also, is there a manual for this script?
Best regards
