far-far-away-science / hab

high altitude balloon
Apache License 2.0
2 stars 1 forks source link

Log extra info to EEPROM (and maybe transmit it over the radio) #37

Closed usaguerrilla closed 8 years ago

usaguerrilla commented 8 years ago
stcarlso commented 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.

Scorillo47 commented 8 years ago

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

stcarlso commented 8 years ago

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.

Scorillo47 commented 8 years ago

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

usaguerrilla commented 8 years ago

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.

stcarlso commented 8 years ago

Closing this issue for now. This functionality will be incorporated (if feasible) into the software for future flights.