Skip to content

Commit 25b05a1

Browse files
author
Jamie Smith
authored
Fix using bootloader with MIMXRT (ARMmbed#414)
1 parent 5887f9e commit 25b05a1

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT105x/TARGET_EVK/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,9 @@ typedef enum {
209209
// MIMXRT EVKs do not have a usable LED, because the LED shares important pins with the
210210
// debugging interface, so trying to use the LED can interrupt flashing and debugging code!
211211

212+
// User button is connected to the WAKEUP pin
213+
#define BUTTON1 WAKEUP
214+
212215
typedef enum {
213216
PullNone = 0,
214217
PullDown = 1,

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT105x/device/TOOLCHAIN_GCC_ARM/MIMXRT1052xxxxx.ld

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ SECTIONS
126126
*(.boot_hdr.dcd_data)
127127
}
128128

129-
/* Interrupts go at the start of flash */
130-
#define INTERRUPT_TABLE_ADDR MBED_ROM_BANK_EXT_FLASH_START
129+
/* Interrupts go at the start of configured flash area */
130+
#define INTERRUPT_TABLE_ADDR MBED_CONFIGURED_ROM_BANK_EXT_FLASH_START
131131
#endif
132132

133133
/* Now we have the ISR vector */

targets/upload_method_cfg/MIMXRT1060_EVK.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
# General config parameters
1515
# -------------------------------------------------------------
16-
set(UPLOAD_METHOD_DEFAULT JLINK)
16+
set(UPLOAD_METHOD_DEFAULT PYOCD)
1717

1818
# Config options for JLINK
1919
# -------------------------------------------------------------

0 commit comments

Comments
 (0)