- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would like to use the AES function in \WICED-Smart-SDK-2.2.3\WICED-Smart-SDK\Wiced-Smart\bleapp\lestack\smp\aes.h
However, when I run compiler, it gives the error: undefined reference to `aes_set_key'
How should I solve the problem? Thank you.
Solved! Go to Solution.
- Tags:
- aes library
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To get the AES library to link, you need to compile with the chip set as 37 and not 36 as only the 37 supports encryption. Change your maketarget accordingly:
your_app-BCM920737TAG_Q32 download
The SDK handles all compilation and linking. The only control you have is from within an application's makefile by telling it which files to compile. Linking is handled accordingly by the main makefile.
Jacob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Unfortunately, we do not provide any sample applications which leverage aes.h
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do you mean that I cannot use AES in the current SDK?
In general, this is link error. But I am not sure where I can specify (add) the "object files" ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That's my understanding.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We don't support the use of this library since we didn't write it. You should be able to link to it anyway. I'm looking into what the problem is. In the interim, you can download the open source C code from this site: BRG Main SIte It is also attached to this post.
Copy it into your application folder and use it from there.
Jacob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for explaining it. In general, how do I link "object files" ? Where can I configure it in Wiced IDE? Change makefile.mk ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To get the AES library to link, you need to compile with the chip set as 37 and not 36 as only the 37 supports encryption. Change your maketarget accordingly:
your_app-BCM920737TAG_Q32 download
The SDK handles all compilation and linking. The only control you have is from within an application's makefile by telling it which files to compile. Linking is handled accordingly by the main makefile.
Jacob