Closed usaguerrilla closed 8 years ago
Writing to the EEPROM is a synchronous procedure which can take a large number of instructions, contrasting with devices such as the AVR which only take a few register writes. Performing this operation in a fault ISR or watchdog timer routine, where the system is probably already on the verge of crashing, will be infeasible.
It may be possible to examine the reset cause register, but this will not give fine grained information over the particular type of fault ISR thus triggered.
In V2 of the board, what if we add a SPI-based Flash chip next to the ARM? Something like W25Q64FVSSIG? We can log the information there
http://www.digikey.com/product-detail/en/W25Q64FVSSIG/W25Q64FVSSIG-ND/2815931
This would be better, but still tricky as we need to get the information out to the chip. We would have to pump the data out synchronously since interrupts would be disabled.
If we used a different ARM chip with true EEPROM in V2, such as an STM32 or Kinetis, this would be a non-issue as the data can simply be recorded in a few clock cycles.
Good point. Can we use a better ARM chip in that case?
From: Stephen Carlson [mailto:notifications@github.com] Sent: Sunday, November 01, 2015 6:30 PM To: usaguerrilla/hab hab@noreply.github.com Cc: Scorillo47 adi_oltean@hotmail.com Subject: Re: [hab] Log extra info to EEPROM (and maybe transmit it over the radio) (#37)
This would be better, but still tricky as we need to get the information out to the chip. We would have to pump the data out synchronously since interrupts would be disabled.
If we used a different ARM chip with true EEPROM in V2, such as an STM32 or Kinetis, this would be a non-issue as the data can simply be recorded in a few clock cycles.
— Reply to this email directly or view it on GitHub https://github.com/usaguerrilla/hab/issues/37#issuecomment-152893905 . https://github.com/notifications/beacon/ACRBWfhE7XgxavbC9VDdD43-c3QR1Zsmks5pBsIpgaJpZM4GXFes.gif
I totally forgot. We have a message counter. If we log all messages we can tell approximately how many times Tiva-C had been reset.
Closing this issue for now. This functionality will be incorporated (if feasible) into the software for future flights.