This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Saving values during debugging to a file

Can I save values during debugging to a file.
Like I have array of 10000 bytes which I want to analyse later on.

Parents
  • You don't give much information that would allow someone to answer if you can - or can't - do that. But my feeling is that you can't, since you are asking this question in the first place. Saving data within the device would normally require a RAM buffer, or in-application programming (IAP) to "code flash", or the use of external flash memory - possibly with code to implement a file system.

    By the way - if the amount of trace data doesn't accumulate too quickly, it's normally better to arrange some debug port and send out the data while the program runs. At 100kbit/s (which is rather slow for a UART) allows 10kB/second of continuous trace output - and normally with quite low CPU costs thanks to FIFO or DMA support. In some situations, a JTAG adapter might also be used to handle trace output. Or CAN, SPI, USB, ...

Reply
  • You don't give much information that would allow someone to answer if you can - or can't - do that. But my feeling is that you can't, since you are asking this question in the first place. Saving data within the device would normally require a RAM buffer, or in-application programming (IAP) to "code flash", or the use of external flash memory - possibly with code to implement a file system.

    By the way - if the amount of trace data doesn't accumulate too quickly, it's normally better to arrange some debug port and send out the data while the program runs. At 100kbit/s (which is rather slow for a UART) allows 10kB/second of continuous trace output - and normally with quite low CPU costs thanks to FIFO or DMA support. In some situations, a JTAG adapter might also be used to handle trace output. Or CAN, SPI, USB, ...

Children