cancel
Showing results for 
Search instead for 
Did you mean: 

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.

nozba.1
Associate

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 */

1 REPLY 1
KnarfB
Principal III

printf does not work like Python print. Read https://man7.org/linux/man-pages/man3/printf.3.html

hth

KnarfB