Keil Logo

SWPACK: Using LPC1850 SPIFI Flash on the MCB1800 Board


Information in this knowledgebase article applies to:

  • Keil MDK Software Pack Keil::LPC1800_DFP

SYMPTOM

Attempting to load SPIFI flash on the MCB1800 board with the LPC1857 SPIFI target in the Blinky example project from the pack installer results in the following error message:

Could not stop Cortex-M device!
Please check the JTAG cable.

CAUSE

MCB1800 boards populated with LPC1850 devices have no conventional on-chip Flash like the LPC1857 device does, but they do have SPIFI flash. The debug configuration file (LPC1857_SPIFI_LPC1857.dbgconf) for the LPC1857 SPIFI target will not work with the LPC1850 device, and causes this error.

RESOLUTION

To use the LPC1850 device with SPIFI flash, modify the LPC1857 SPIFI target as follows:

  1. Select the LPC1857 SPIFI target.
  2. Click Project, Manage, Project Items, double-click the LPC1857 SPIFI target, and rename it to LPC1850 SPIFI. Then click Set as Current Target, and OK to save this target.
  3. In Options for Target, Debug tab, Settings, click the Pack tab, then un-check the Enable checkbox to prevent using the LPC1857_SPIFI_LPC1857.dbgconf file, then click OK to save that change.
  4. Click the Device tab, and select the LPC1850 device, instead of the LPC1857 device.
  5. Click on the Target tab, check the IROM1 default checkbox, set Start to 0x1400 0000 with a Size of 0x1000, then set the Startup radio button.

    IROM Target Setting

  6. Select the C/C++ tab. Under Preprocessor Symbols, Define:, add the USE_SPIFI symbol.

    USE_SPIFI C/C++ Definition

  7. Click the Utilities tab, then click the Settings button, Remove the existing algorithm and Add the LPC18xx/43xx S25FL064 SPIFI programming algorithm.
  8. In the RAM for Algorithm group, change the Size: parameter to 0x10000.

    SPIFI Flash Algorithm Settings

  9. Click OK, then OK again to save the target settings
  10. Rebuild all modules in the application.

Remember to set the Boot Configuration jumpers to boot from SPIFI flash as explained in the MCB1800 Users Guide, and press RESET while holding the ISP button, to boot using these jumper settings.

MORE INFORMATION

SEE ALSO

Last Reviewed: Friday, February 12, 2021


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.