45 uint32_t buf[READ_NBYTES/4];
48 uart_init(INC, MOD, SAMP);
50 print_welcome(
"nvm-read");
54 putstr(
"Detecting internal nvm\n\r");
56 err = nvm_detect(gNvmInternalInterface_c, &type);
58 putstr(
"nvm_detect returned: 0x");
60 putstr(
" type is: 0x");
66 err = nvm_read(gNvmInternalInterface_c, type, (uint8_t *)buf, READ_ADDR, READ_NBYTES);
67 putstr(
"nvm_read returned: 0x");
71 for(i=0; i<READ_NBYTES/4; i++) {