[SOLVED] Can CMSIS Generic project be used for Cortex M4?

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] Can CMSIS Generic project be used for Cortex M4?

    In Generic CMSIS project in ReadMe.txt Supported hardware is: "The sample project for CMSIS should run on any Cortex M3 core."
    Can the project be used with M4? What is limitation or required changes to use it with Cortex M4?
  • Hello,

    Thank you for your inquiry.
    Which project are you referring to exactly?

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Hello,

    vadymsodolevsky wrote:

    In Generic CMSIS project in ReadMe.txt Supported hardware is: "The sample project for CMSIS should run on any Cortex M3 core."
    Can the project be used with M4? What is limitation or required changes to use it with Cortex M4?
    Are you, by any chance, referring to the Generic CMSIS project contained in embOS for Cortex-M and IAR?
    In that case, the project may also be used with Cortex-M4, of course.

    From an RTOS perspective, M3 and M4 don't differ much except for the additional FPU with Cortex-M4.
    Hence, as long as the FPU is kept disabled, the project may be used with Cortex-M4 devices without further modifications.
    If the M4's FPU shall be used, however, the embOS libraries need to be exchanged for appropriate libraries that include FPU support (refer to "Naming conventions for prebuilt libraries" inside the manual UM010014)
    Furthermore, the device support files contained in the project would need to be exchanged as well in order to utilize an FPU. Since you're probably intending to use the project in real hardware, it should be sufficient to simply replace the shipped generic files with the appropriate device support files provided by your device vendor (the latter also is suggested if using the project on a M3 hardware).

    Please let me know if I can be of any further help.

    Best regards,
    Martin
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.