Dear Forum Users,
I've bought a MIMXRT1050-EVK board and started out with the uVision MDK by Keil. I've managed a few simple demos so far but have now inadvertently changed something and they can no longer be downloaded (rebuild works fine). I get the following error:
Load "sdram_debug\\emwin_gui_demo.out" No Algorithm found for: 00000000H - 0000FFFFH No Algorithm found for: 00010000H - 0001E733H Erase skipped! Error: Flash Download failed - "Cortex-M7" Flash Load finished at 17:29:53
I'm using the USB lead to program this board using the CMSIS-DAP debugger which is selected in <options>/<debug>
I've had this example running before but am now lost as to what has changed. I have moved the SW7 settings on the board but they are back as off-on-on-off again - this controls where the board boots from.
The board apparently has different RAM areas: 64MByte Hyperflash 32MByte SDRAM 8MByte QSPI Flash SD Card slot
512kByte onchip SRAM (on the i.MXRT1050 chip).
any pointers would be really appreciated.
Rod
The SDRAM download shouldn't be using the FLASH algorithms, the debug script (.INI) should be using LOAD command.
For writing to FLASH pick the correct project target, and make sure you've selected the correct FLASH algorithm under the FLASH tab of the Debugger Settings.
Thank you for your fast reply. Unfortunately I don't quite understand still and would be very grateful if you could explain in a little more detail for me.
"The SDRAM download shouldn't be using the FLASH algorithms"... Is the Flash in addressess 0 onwards?
"the debug script (.INI) should be using LOAD command."... under PROJECT/OPTIONS/UTILITIES I have 'use Target Driver for Flash Programming' and the init file selected there is .\evkmimrt1050_ram.ini The other choice that seems listed is evkmimxrt1050_sdram_init.ini
"For writing to FLASH pick the correct project target"... When I load up the ecompass demo I can see the 'select target' drop down has four possibilities: ecompass_sdram_debug ecompass_debug ecompass_sdram_release ecompass_release I'm now selecting ecompass_debug - which I think will download to the flash memory.
"make sure you've selected the correct FLASH algorithm under the FLASH tab of the Debugger Settings"... under PROJECT/OPTIONS/DEBUG I have the CMSIS-DAP Debugger selected. If I click on Settings I get another window called CMSIS-DAP Cortex-M Target Driver Setup I can then select the FLASH DOWNLOAD tab which is what I think you are refering to? That has an algorithm for MIMXRT105x 64mB Hyper Flash selected. Erase sectors. Start=0x20000000 Size=0x00008000
My output has at least changed :-) FUNC void OnResetExec (void) { // executes upon software RESET Setup(); // Setup for Running } LOAD %L INCREMENTAL // Download Setup(); // Setup for Running ^ *** error 34, line 203: undefined identifier // g, main No Algorithm found for: 00000000H - 00006D4BH Erase skipped! Error: Flash Download failed - "Cortex-M7" Flash Load finished at 22:16:13
regards,
Well the zero memory isn't at 0x20000000, so you should probably Uncheck the "Update Target before Debugging" and/or "Load Application at Startup", so it uses the debug script rather than try to Flash the SDRAM/SRAM
Sure there are manuals, documents, examples where things are outlined.
Thank you again for your help - I think I can see where I'm going wrong now.