I'm newbie c programming language. I'm developing an application for the STM32F410RBT. I am generating key pair using uECC library. I can't print the key pairs to the console. I am sharing the sample code below. Thank you for your help.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-03-10 1:05 AM
int _write(int file, char *ptr, int len) {
int i = 0;
for (i = 0; i < len; i++)
ITM_SendChar((*ptr++));
return len;
}
uint8_t private[32] = { 0 };
uint8_t public[64] = { 0 };
using uECC_make_key generate public and private keys
printf(public[0]); /* warning : passing argument 1 of 'printf' makes pointer from integer without a cast */
Labels:
- Labels:
-
STM32CubeIDE
-
STM32F4 Series
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-03-10 1:25 AM
printf does not work like Python print. Read https://man7.org/linux/man-pages/man3/printf.3.html
hth
KnarfB
