I configure the flexram with SRAM_DTC: 32KB, SRAM_ITC: 0KB, SRAM_OC: 96KB in the demo code "led_blinky" and working with the i.MX RT1010 EVK demo board.
Here is my main code.
I add the register setting in the function "ResetISR".
I use the following connect script.
Build success with the following message.
Building target: evkmimxrt1010_iled_blinky.axf
Invoking: MCU Linker
arm-none-eabi-gcc -nostdlib -Xlinker -Map="evkmimxrt1010_iled_blinky.map" -Xlinker --gc-sections -Xlinker -print-memory-usage -Xlinker --sort-section=alignment -Xlinker --cref -mcpu=cortex-m7 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb -T evkmimxrt1010_iled_blinky_Debug.ld -o "evkmimxrt1010_iled_blinky.axf" ./xip/evkmimxrt1010_flexspi_nor_config.o ./xip/fsl_flexspi_nor_boot.o ./utilities/fsl_assert.o ./utilities/fsl_debug_console.o ./utilities/fsl_str.o ./startup/startup_mimxrt1011.o ./source/led_blinky.o ./source/semihost_hardfault.o ./drivers/fsl_clock.o ./drivers/fsl_common.o ./drivers/fsl_flexram.o ./drivers/fsl_gpio.o ./drivers/fsl_lpuart.o ./device/system_MIMXRT1011.o ./component/uart/lpuart_adapter.o ./component/serial_manager/serial_manager.o ./component/serial_manager/serial_port_uart.o ./component/lists/generic_list.o ./board/board.o ./board/clock_config.o ./board/pin_mux.o
Memory region Used Size Region Size %age Used
BOARD_FLASH: 25048 B 16 MB 0.15%
SRAM_DTC: 4364 B 32 KB 13.32%
SRAM_ITC: 0 GB 0 GB -1.#J%
SRAM_OC: 0 GB 96 KB 0.00%
Finished building target: evkmimxrt1010_iled_blinky.axf
make --no-print-directory post-build
Performing post-build steps
arm-none-eabi-size "evkmimxrt1010_iled_blinky.axf"; # arm-none-eabi-objcopy -v -O binary "evkmimxrt1010_iled_blinky.axf" "evkmimxrt1010_iled_blinky.bin" ; # checksum -p MIMXRT1011xxxxx -d "evkmimxrt1010_iled_blinky.bin";
text data bss dec hex filename
25044 4 4360 29408 72e0 evkmimxrt1010_iled_blinky.axf
But starting the debugger got the following message
chip initialization failed - Em(12). Target rejected debug access at location 0x00000000
failed to initialize flash driver MIMXRT1010_SFDP_QSPI.cfx
Solved! Go to Solution.
Hi Calvin,
This is because your scp file disabled ITCM. But the IDE want to download flash driver(.cfx) to ITCM. Without flash driver running in ITCM, IDE can't download application code. The attachment is my scp file. Please take a try.
Regards,
Jing