Abstract.txt 1.6 KB

1234567891011121314151617181920212223242526272829303132
  1. Creating a new Algorithm
  2. ------------------------
  3. Flash programming algorithms are defined with functions to erase and program
  4. the Flash device. Special compiler and linker settings are required. Follow
  5. these steps to create and configure a new Flash programming algorithm:
  6. - From the toolbar, use the drop-down Select Target to define the processor
  7. architecture. Cortex-M fits for all Arm Cortex-M0/M0+/M3/M4/M7 devices.
  8. The configuration assumes a little-endian microcontroller. In case of a
  9. big-endian microcontroller, select the correct processor core with
  10. Project - Options for Target - Device.
  11. - Open the dialog Project - Options for Target - Output and change the content
  12. of the field Name of Executable to represent the device, for example
  13. MyDevice.
  14. - Adapt the programming algorithms in the file FlashPrg.c
  15. - Adapt the device parameters in the file FlashDev.c
  16. - Use Project - Build Target to generate the new Flash programming algorithm.
  17. The output file (for example MyDevice.FLM) has to be added to the DFP.
  18. Note
  19. ----
  20. - Creating a Flash programming algorithm with MDK-Lite is not supported.
  21. - Flash programming algorithms use Read-Only Position Independent and
  22. Read-Write Position Independent program code. These options are set in the
  23. dialogs Project - Options for Target - C/C++ and
  24. Project - Options for Target - Asm.
  25. - The dialog Project - Options for Target - Linker defines the linker scatter
  26. file Target.lin. The error L6305 is disabled with –diag_suppress L6305.
  27. For more information, refer to the documentation available at
  28. http://arm-software.github.io/CMSIS_5/Pack/html/flashAlgorithm.html