logger_dataflash

SPI logger A logger that connects and manage a memory directly connected to th SPI. This module includes some configurations : - @b ERASE_MEMORY_AT_START : if set to 1 the memory will be erased completly when starting a new log. This will take a little bit less than a minute, but afterwards you will be able to log values at a higher rate than if you didn’t do it. If you let it to 0, the module is going to erase the memory block by block of 4K when needed. - @b SIZE_OF_LOGGED_VALUES : the number of Bytes that each value logged must be (in memory). You can write a 4 Bytes values in a 2 Bytes slots, you just need to be certain that you don’t have any overflows. - @b NBR_VALUES_TO_LOG : the number of messages you want to log. This value is equivalent to the size of the values_to_log array. - @b SKIP_X_CALLS_BETWEEN_VALUES : you might want to slow down the logger instead of losing values (because of buffer overflows). if that value is set to 0, a new value of every logged messages will be added to the buffer. If set to 2, we will wait two calls to the module, then during the third one we will writte the values to the buffer. By default this modules is called at 512Hz. Then you have two arrays : - @b values_to_log : containing the pointer to the values to log. - @b name_of_the_values : the name of the messages logged. This is simply an aesthetic configuration, for you to know which message were logged. The applicaton to read the memory back is available here : http://karlito139.github.io/lisa_s_logger_reader/ For more informations on how to use this module you can refer to the wiki : http://wiki.paparazziuav.org/wiki/Micro_logger

Configures

Name

Value

Description

HS_LOG_UART

UART1|UART2|UART3|UART4|UART5|UART6

Port to read back the memory

HS_LOG_SPI

SPI1|SPI2|SPI3|SPI4|SPI5|SPI6

Port to read back the memory

HS_LOG_SPI_SLAVE

SPI_SLAVE1|SPI_SLAVE2|SPI_SLAVE3|SPI_SLAVE4|SPI_SLAVE5|SPI_SLAVE6

Port to read back the memory

Depends

  • spi_master