{"id":153,"date":"2019-03-30T16:37:59","date_gmt":"2019-03-30T21:37:59","guid":{"rendered":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamaa\/?p=153"},"modified":"2019-03-30T21:06:46","modified_gmt":"2019-03-31T02:06:46","slug":"status-report-03-30-cmackint","status":"publish","type":"post","link":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamaa\/2019\/03\/30\/status-report-03-30-cmackint\/","title":{"rendered":"Status Report 03-30 (cmackint)"},"content":{"rendered":"<p>I spent the last week working on responding to the configuration system pull request feedback and implementing the firewall. I intended to finish the UART system and integrate it into the config system, but ran into some problems with the firewall.<\/p>\n<p>I initially naively implemented the firewall by appending to an array of firewall entry structs, requiring linear lookup time. Under Zach&#8217;s suggestion, I reimplemented it using bitfields to prove constant lookup time. This is important as the firewall needs to be run on every CAN message.<\/p>\n<p>The issue with the config flash system preventing reprogramming the TOM without a full chip erase became a problem in debugging the firewall. I tested the config system by reading from a flash sector, incrementing the value, and writing it back throughout the entire sector. I would reset the board multiple times, and check that the incremented value was correct by using the ST-Link Utility to analyze the flash. However, between subsequent debug executions, the TrueStudio memory viewer shows incorrect information. I ultimately verified the firewall by using debug flags.<\/p>\n<p>I also had a few silly bugs in the config API that manifested when implementing the firewall, involving pointer typedefs and incrementing order of operations.<\/p>\n<p>Next week, I&#8217;ll finish the UART integration and XBee switching.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-154\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamaa\/wp-content\/uploads\/sites\/25\/2019\/03\/Screen-Shot-2019-03-30-at-5.34.36-PM-291x300.png\" alt=\"\" width=\"291\" height=\"300\" srcset=\"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamaa\/wp-content\/uploads\/sites\/25\/2019\/03\/Screen-Shot-2019-03-30-at-5.34.36-PM-291x300.png 291w, https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamaa\/wp-content\/uploads\/sites\/25\/2019\/03\/Screen-Shot-2019-03-30-at-5.34.36-PM-768x791.png 768w, https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamaa\/wp-content\/uploads\/sites\/25\/2019\/03\/Screen-Shot-2019-03-30-at-5.34.36-PM-994x1024.png 994w, https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamaa\/wp-content\/uploads\/sites\/25\/2019\/03\/Screen-Shot-2019-03-30-at-5.34.36-PM.png 1588w\" sizes=\"(max-width: 291px) 100vw, 291px\" \/> <img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-155\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamaa\/wp-content\/uploads\/sites\/25\/2019\/03\/Screen-Shot-2019-03-30-at-5.35.22-PM-200x300.png\" alt=\"\" width=\"200\" height=\"300\" srcset=\"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamaa\/wp-content\/uploads\/sites\/25\/2019\/03\/Screen-Shot-2019-03-30-at-5.35.22-PM-200x300.png 200w, https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamaa\/wp-content\/uploads\/sites\/25\/2019\/03\/Screen-Shot-2019-03-30-at-5.35.22-PM-768x1151.png 768w, https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamaa\/wp-content\/uploads\/sites\/25\/2019\/03\/Screen-Shot-2019-03-30-at-5.35.22-PM-683x1024.png 683w, https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamaa\/wp-content\/uploads\/sites\/25\/2019\/03\/Screen-Shot-2019-03-30-at-5.35.22-PM.png 1038w\" sizes=\"(max-width: 200px) 100vw, 200px\" \/> <img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-156\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamaa\/wp-content\/uploads\/sites\/25\/2019\/03\/Screen-Shot-2019-03-30-at-5.36.20-PM-269x300.png\" alt=\"\" width=\"269\" height=\"300\" srcset=\"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamaa\/wp-content\/uploads\/sites\/25\/2019\/03\/Screen-Shot-2019-03-30-at-5.36.20-PM-269x300.png 269w, https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamaa\/wp-content\/uploads\/sites\/25\/2019\/03\/Screen-Shot-2019-03-30-at-5.36.20-PM-768x856.png 768w, https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamaa\/wp-content\/uploads\/sites\/25\/2019\/03\/Screen-Shot-2019-03-30-at-5.36.20-PM-919x1024.png 919w, https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamaa\/wp-content\/uploads\/sites\/25\/2019\/03\/Screen-Shot-2019-03-30-at-5.36.20-PM.png 1086w\" sizes=\"(max-width: 269px) 100vw, 269px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I spent the last week working on responding to the configuration system pull request feedback and implementing the firewall. I intended to finish the UART system and integrate it into the config system, but ran into some problems with the firewall. I initially naively implemented the firewall by appending to an array of firewall entry &hellip; <a href=\"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamaa\/2019\/03\/30\/status-report-03-30-cmackint\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Status Report 03-30 (cmackint)<\/span><\/a><\/p>\n","protected":false},"author":72,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamaa\/wp-json\/wp\/v2\/posts\/153"}],"collection":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamaa\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamaa\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamaa\/wp-json\/wp\/v2\/users\/72"}],"replies":[{"embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamaa\/wp-json\/wp\/v2\/comments?post=153"}],"version-history":[{"count":1,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamaa\/wp-json\/wp\/v2\/posts\/153\/revisions"}],"predecessor-version":[{"id":157,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamaa\/wp-json\/wp\/v2\/posts\/153\/revisions\/157"}],"wp:attachment":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamaa\/wp-json\/wp\/v2\/media?parent=153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamaa\/wp-json\/wp\/v2\/categories?post=153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamaa\/wp-json\/wp\/v2\/tags?post=153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}