Skip to content

how to use/include rename_exceptions.h, is there a detailed document talk about enable cmsis-compatible layer? #552

Open

Description

@xiongyu0523

By default this file does not take effects, in final image i can't find replaced symbol., though default value of PICO_CMSIS_RENAME_EXCEPTIONS is 1.

In \src\rp2_common\cmsis\CMakeLists.txt, looks like PICO_CMSIS_CORE_PATH is defined by default.

set(PICO_CMSIS_CORE_PATH ${CMAKE_CURRENT_LIST_DIR}/stub)

Activity

  1. changed the title [-]how to use rename_exceptions.h[/-] [+]how to use/include rename_exceptions.h, is there a detailed document talk about enable cmsis-compatible layer?[/+] on Sep 2, 2021
  2. xiongyu0523 commented on Sep 2, 2021

    @xiongyu0523
    Author

    add cmsis_core to my project's link libraries seems solve this issue, any document tells these steps?

  3. lurch commented on Sep 2, 2021

    @lurch
    Contributor

    Appendix F in https://datasheets.raspberrypi.org/pico/raspberry-pi-pico-c-sdk.pdf mentions:

    Added CMSIS core headers
    CMSIS core headers (e.g. core_cm0plus.h and RP2040.h) are made available via cmsis_core INTERFACE library. Additionally, CMSIS standard exception naming is available via PICO_CMSIS_RENAME_EXCEPTIONS=1

  4. xiongyu0523 commented on Sep 3, 2021

    @xiongyu0523
    Author

    Thanks. Is there any example in pico-example has a demonstration of using this cmsis_core INTERFACE library?

  5. lurch commented on Sep 3, 2021

    @lurch
    Contributor

    Not yet, but we welcome PRs... 😉

  6. added this to the back burner milestone on Jul 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cmsisdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions