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

Open
opened 2021-09-02 01:19:14 -05:00 by xiongyu0523 · 4 comments
xiongyu0523 commented 2021-09-02 01:19:14 -05:00 (Migrated from github.com)

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)
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) ```
xiongyu0523 commented 2021-09-02 01:40:23 -05:00 (Migrated from github.com)

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

add cmsis_core to my project's link libraries seems solve this issue, any document tells these steps?
lurch commented 2021-09-02 03:49:59 -05:00 (Migrated from github.com)

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

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`
xiongyu0523 commented 2021-09-02 22:21:05 -05:00 (Migrated from github.com)

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

Thanks. Is there any example in pico-example has a demonstration of using this cmsis_core INTERFACE library?
lurch commented 2021-09-03 03:41:51 -05:00 (Migrated from github.com)

Not yet, but we welcome PRs... 😉

Not yet, but we welcome PRs... :wink:
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-raspberrypi/pico-sdk#552
No description provided.