Tool/software:
Hi, I'm reading and ADC from CC3235SF and I need to save the Serial Monitor data into a txt file. How can I do it?
I tried doing it same as normal C, but it just doesn't create the file. No errors, no warnings, but the txt file doesn't get created. Don't know why.
I'm using the following function I created, I tested them in VS Code and it works, but in CCS I think I need to do something else. Can you help me?
void escribir(uint32_t numero){
filePointer = fopen("C:/Users/krlos/Desktop/lectura_adc.txt", "a");
if (filePointer == NULL) {
printf("Error al abrir el archivo.\n");
}
fprintf(filePointer, "%u\n", numero);
fclose(filePointer);
printf("Número escrito en el archivo con éxito.\n");
}