[EXT_EP-12179] Code coverage breaks naked functions Created: 22/Jan/25 Updated: 28/Jan/25 Resolved: 28/Jan/25 |
|
Status: | Fixed |
Project: | Embedded Software & Tools |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Medium |
Reporter: | TI User | Assignee: | TI User |
Resolution: | Fixed | Votes: | 0 |
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Product: | Code Generation Tools |
Internal ID: | CODEGEN-13041 |
Found In Release: | ARMCLANG_4.0.0.LTS ARMCLANG_3.2.0.LTS |
Fix In Release: | ARMCLANG_3.2.4.LTS* ARMCLANG_4.0.2.LTS* |
Affected Platform/Device: | default |
Description |
Observation More details cpu.c As per the documentation of a naked function, it assumes the first argument of the function is in R0. In the failing code, CPUDelay(3) is called. Code coverage disabled (code functional) Call site CPUDelay() Call site CPUDelay()
Workaround Update: Adding attribute no_instrument_function will also fix the issue. void _attribute_((naked, no_profile_instrument_function)) CPUDelay(uint32_t count) { // ... }Suggested Solutions |