Flexram in rt1010 with 0KB-ITCM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Flexram in rt1010 with 0KB-ITCM

ソリューションへジャンプ
1,948件の閲覧回数
calvin1
Contributor II

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.

mainCode.png

I add the register setting in the function "ResetISR".

startupcode.png

I use the following connect script.

connect_script.png

 

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

error_96.png

chip initialization failed - Em(12). Target rejected debug access at location 0x00000000
failed to initialize flash driver MIMXRT1010_SFDP_QSPI.cfx

0 件の賞賛
返信
1 解決策
1,851件の閲覧回数
jingpan
NXP TechSupport
NXP TechSupport

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 

元の投稿で解決策を見る

1 返信
1,852件の閲覧回数
jingpan
NXP TechSupport
NXP TechSupport

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