Why SPIM can be executed in debug mode, but cannot be executed in free run mode when the NUC505 SPIM is used?

Post Reply
a_ziliu
Posts: 208
Joined: 20 Mar 2017, 10:52

31 May 2021, 15:48

The NUC505 uses the SPIM function to interface with the internal SPI Flash. Therefore, the SPIM function must be placed in the SRAM before it can be executed.
Since the SPIM sample code in the NUC505 BSP has the Initialization file being set, the code is executed on the SRAM in debug mode, as shown in the red triangle below, so that it can be executed normally. If a user wants to execute the SPIM function in the free run mode, the code must be put into SRAM before it can be executed. Please see MainOnSRAM sample code for how to put the code into SRAM, which is located in the following path: NUC505BSPV3.02.000\SampleCode\BootTemplate\MainOnSRAM

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests