Skip to content
Snippets Groups Projects
  1. Mar 21, 2019
  2. Mar 18, 2019
  3. Mar 16, 2019
  4. Mar 15, 2019
  5. Mar 12, 2019
  6. Mar 11, 2019
  7. Mar 02, 2019
    • mcsauder's avatar
    • David Sidrane's avatar
      board:Set larger stack margin · edd9f91a
      David Sidrane authored
      edd9f91a
    • David Sidrane's avatar
      px4_fmuv5:Stack Check build Increase to 2624 · 12d442e8
      David Sidrane authored
         The cause of the stack detection fault is because of the
         level of nesting in the start up script. We need to
         determine the worst case configuration and set the
         bar there.
      
         This fault occurred some 42 calls deep due to script
         calling script (repeat).
      
         The HW stack check requires as a margin of 204 bytes. That is
         ISR HW stacking of CPU(8) FPU(18) registers and SW stacking of
         CPU(11) and FPU(16) registers. Total CPU(19) registers is
         68 bytes and the total FPU(34) registers is 136 bytes.  On
         a system with a separate ISR stack This only needs to be 104
         so there is 100 bytes of headroom. But as coded the detection
         will give a false positive detection and fault. This does not
         mean that the stack will be corrupted.
      
         Adjustments to that stack can have no effect due to rounding.
         A stack size of 2608 and 2616 can yield the exact same size stack.
         So even when the failure is due to a 4 byte overflow, it can take
         greater than a 16 bytes increase to fix it. Because the final
         stack size is calculated with an 8 byte alignment after a 4 byte
         decrease. So 2624 becomes 2620 at runtime and will boot
         with SYS_AUTOSTART=4001.
      12d442e8
  8. Feb 26, 2019
  9. Feb 25, 2019
  10. Feb 19, 2019
  11. Feb 18, 2019
  12. Feb 13, 2019
  13. Feb 11, 2019
  14. Feb 09, 2019
  15. Feb 06, 2019
  16. Feb 03, 2019
  17. Jan 30, 2019
Loading