ARMmbed / ARMmbed/mbed-crypto

ATECC608A example fails to build using IAR

Open
#151 1 comment 0 reactions 0 assignees View on GitHub
Jira status: OPEN mirrored type: bug
Dominant language
C
Stars
108
Forks
95
PR merge metrics
No merged PRs in 30d

Description

### Description

Building the ATECC608A example using IAR fails with:
`Error[Pe183]: type of cast must be integral
sig_size = PSA_ASYMMETRIC_SIGN_OUTPUT_SIZE(key_type, key_bits, alg),`

Full log available here: https://jenkins-internal.mbed.com/job/mbed-crypto-release-ci-testing-2/74/execution/node/2679/log/

Mbed OS at `9974899 Merge pull request #10833 from jamesbeyond/master`
The versions of Mbed TLS and Mbed Crypto are those specified in `update-crypto.sh` in https://github.com/ARMmbed/mbed-os-example-atecc608a

### Issue request type

[ ] Question
[ ] Enhancement
[x] Bug

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the ATECC608A example build output at the reported PSA_ASYMMETRIC_SIGN_OUTPUT_SIZE cast and compare the Mbed TLS and Mbed Crypto versions specified by update-crypto.sh. Confirm the failure with IAR and identify the project’s expected resolution; done means the example builds successfully without Error[Pe183].

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.