Hi,
This is my first post here. I bought my first Teensy, a 4.1, to do a Uncanny Eyes pumpkin for Halloween. I now realize it might easier to go with a 3.X version but that's the one I bought. I already had a 240x240 ST7789 display (https://www.aliexpress.com/item/33038943606.html?spm=a2g0s.9042311.0.0.27424c4dkuECJo). The display seems fully functional as I succeed in running various examples with it, including with the Teensy 4.1. Interestingly enough, the display requires SPI_MODE3 to function. After research I installed the PaulStoffregen/ST7735_t3 library that has in the examples a version of the Uncanny Eyes supposed to work with Teensy 4 and ST7789 (code attached View attachment uncannyEyes_async_st7789_240x240.ino View attachment config.h).
I was able to make the whole thing work in commenting out the DumpMemoryInfo() that made the whole thing crash. The eye is successfully starring at me for about 20 seconds then the program crashes and debug mentions DACCVIOL MMARVALID and a few other errors
Here's the dump of my serial debug window:
I may be doing something obviously wrong but your help would be highly appreciated.
Thanks!
This is my first post here. I bought my first Teensy, a 4.1, to do a Uncanny Eyes pumpkin for Halloween. I now realize it might easier to go with a 3.X version but that's the one I bought. I already had a 240x240 ST7789 display (https://www.aliexpress.com/item/33038943606.html?spm=a2g0s.9042311.0.0.27424c4dkuECJo). The display seems fully functional as I succeed in running various examples with it, including with the Teensy 4.1. Interestingly enough, the display requires SPI_MODE3 to function. After research I installed the PaulStoffregen/ST7735_t3 library that has in the examples a version of the Uncanny Eyes supposed to work with Teensy 4 and ST7789 (code attached View attachment uncannyEyes_async_st7789_240x240.ino View attachment config.h).
I was able to make the whole thing work in commenting out the DumpMemoryInfo() that made the whole thing crash. The eye is successfully starring at me for about 20 seconds then the program crashes and debug mentions DACCVIOL MMARVALID and a few other errors
Here's the dump of my serial debug window:
Code:
M:\Robotics\Arduino\Sketches\Uncanny_Eyes-master\uncannyEyes_async_st7789_240x240\uncannyEyes_async_st7789_240x240.ino Aug 13 2020 13:38:01
********
T4 connected Serial_tt ******* debug_tt port
>>> Reason for 'reset': 1 IPP_RESET_B :: done Reason
F_CPU==600000000 F_BUS==150000000 FreeMem(); 4293316428
Init
Create display #0
ST7789_t3::init mode: c
Init ST77xx display #0
Rotate
done
Display logo
$0: Using Frame buffer
700 : 76 105202 0: 120 255: 472
699 : 76 105202 0: 120 0: 488
698 : 76 105202 0: 120 0: 488
701 : 75 106605 0: 120 0: 488
703 : 75 106605 0: 120 0: 488
702 : 75 106605 0: 120 0: 488
704 : 75 106605 0: 120 0: 488
706 : 74 108045 0: 120 0: 488
708 : 74 108045 0: 120 0: 488
710 : 73 109525 0: 120 0: 488
711 : 73 109525 0: 120 0: 488
713 : 73 109525 0: 120 0: 488
714 : 72 111047 0: 120 0: 488
716 : 72 111047 0: 120 0: 488
718 : 71 112611 0: 120 0: 488
720 : 71 112611 0: 120 0: 488
723 : 70 114219 0: 120 247: 484
725 : 70 114219 255: 0 255: 0
727 : 69 115875 0: 120 0: 488
728 : 69 115875 0: 120 0: 488
729 : 69 115875 0: 120 0: 488
730 : 69 115875 0: 120 0: 488
732 : 68 117579 0: 120 0: 488
733 : 68 117579 0: 120 0: 488
735 : 68 117579 0: 120 0: 488
737 : 67 119334 0: 120 0: 488
738 : 67 119334 0: 120 0: 488
739 : 67 119334 0: 120 0: 488
734 : 68 117579 0: 120 0: 488
736 : 67 119334 0: 120 0: 488
741 : 66 121142 0: 120 0: 488
742 : 66 121142 0: 120 0: 488
743 : 66 121142 0: 120 0: 488
745 : 65 123006 0: 120 0: 488
746 : 65 123006 0: 120 0: 488
747 : 65 123006 0: 120 0: 488
749 : 64 124928 0: 120 0: 488
751 : 64 124928 0: 120 0: 488
752 : 64 124928 0: 120 0: 488
750 : 64 124928 0: 120 0: 488
724 : 70 114219 0: 120 0: 488
722 : 71 112611 0: 120 0: 488
721 : 71 112611 0: 120 0: 488
719 : 71 112611 255: 0 255: 0
717 : 72 111047 0: 120 244: 488
715 : 72 111047 0: 120 0: 488
705 : 75 106605 0: 120 0: 488
694 : 77 103836 0: 120 0: 488
690 : 78 102505 0: 120 0: 488
687 : 79 101207 0: 120 0: 488
685 : 79 101207 0: 120 0: 488
683 : 80 99942 0: 120 0: 488
681 : 80 99942 0: 120 0: 488
679 : 81 98708 0: 120 0: 488
677 : 81 98708 0: 109 255: 464
675 : 82 97504 255: 0 255: 0
684 : 79 101207 0: 120 0: 488
682 : 80 99942 0: 120 0: 488
680 : 80 99942 0: 120 0: 488
678 : 81 98708 0: 120 0: 488
676 : 81 98708 0: 120 0: 488
674 : 82 97504 0: 120 0: 488
672 : 82 97504 0: 120 0: 488
671 : 83 96330 0: 120 0: 488
669 : 83 96330 0: 120 0: 488
667 : 83 96330 0: 120 0: 488
666 : 84 95183 0: 120 0: 488
664 : 84 95183 0: 1 255: 368
663 : 84 95183 255: 0 255: 0
661 : 85 94063 0: 91 255: 447
658 : 86 92969 0: 120 0: 488
655 : 86 92969 0: 120 0: 488
652 : 87 91901 0: 120 0: 488
648 : 88 90856 0: 120 0: 488
645 : 89 89835 0: 120 0: 488
642 : 89 89835 0: 120 0: 488
639 : 90 88837 0: 120 0: 488
637 : 90 88837 0: 120 0: 488
636 : 91 87861 0: 120 0: 488
635 : 91 87861 0: 120 0: 488
633 : 91 87861 255: 0 255: 0
632 : 92 86906 0: 115 255: 462
631 : 92 86906 0: 120 0: 488
629 : 92 86906 255: 0 255: 0
625 : 93 85971 255: 0 255: 0
621 : 94 85057 0: 85 255: 448
616 : 95 84162 0: 120 0: 488
610 : 97 82426 0: 120 0: 488
605 : 98 81585 0: 120 0: 488
601 : 99 80761 0: 120 0: 488
597 : 100 79953 0: 120 0: 488
594 : 101 79162 0: 120 0: 488
591 : 101 79162 0: 120 0: 488
588 : 102 78386 0: 120 0: 488
584 : 103 77625 0: 120 0: 488
583 : 103 77625 0: 120 0: 488
582 : 103 77625 0: 120 0: 488
580 : 104 76878 0: 120 0: 488
577 : 105 76146 0: 120 0: 488
574 : 105 76146 0: 120 0: 488
572 : 106 75428 0: 120 0: 488
571 : 106 75428 0: 120 0: 488
570 : 106 75428 0: 120 0: 488
568 : 107 74723 0: 120 0: 488
566 : 107 74723 0: 120 0: 488
564 : 108 74031 0: 120 0: 488
563 : 108 74031 0: 120 0: 488
565 : 107 74723 0: 120 0: 488
569 : 106 75428 0: 120 0: 488
573 : 105 76146 0: 120 0: 488
575 : 105 76146 0: 120 0: 488
576 : 105 76146 0: 120 0: 488
578 : 104 76878 0: 120 0: 488
581 : 104 76878 0: 103 251: 478
585 : 103 77625 0: 120 0: 488
586 : 102 78386 0: 120 0: 488
589 : 102 78386 0: 120 0: 488
592 : 101 79162 0: 120 0: 488
595 : 100 79953 0: 120 0: 488
598 : 100 79953 0: 120 0: 488
603 : 98 81585 0: 120 0: 488
608 : 97 82426 0: 120 0: 488
611 : 97 82426 0: 120 0: 488
614 : 96 83285 0: 120 0: 488
618 : 95 84162 0: 120 0: 488
620 : 94 85057 0: 120 0: 488
622 : 94 85057 0: 120 0: 488
624 : 94 85057 0: 120 0: 488
627 : 93 85971 0: 120 0: 488
630 : 92 86906 0: 120 0: 488
634 : 91 87861 0: 120 0: 488
641 : 90 88837 0: 120 0: 488
643 : 89 89835 0: 120 0: 488
651 : 87 91901 0: 120 0: 488
653 : 87 91901 0: 120 0: 488
654 : 86 92969 0: 120 0: 488
657 : 86 92969 0: 120 0: 488
659 : 85 94063 0: 120 0: 488
660 : 85 94063 0: 120 0: 488
662 : 85 94063 0: 120 0: 488
665 : 84 95183 0: 120 0: 488
19
Fault irq 3
stacked_r0 :: 00000002
stacked_r1 :: C0000000
stacked_r2 :: 01020304
stacked_r3 :: 200062C0
stacked_r12 :: 20201062
stacked_lr :: 000006BD
stacked_pc :: 0000062C
stacked_psr :: 210E0000
_CFSR :: 00000082
(DACCVIOL) Data Access Violation
(MMARVALID) MemMange Fault Address Valid
_HFSR :: 40000000
(FORCED) Forced Hard Fault
_DFSR :: 00000000
_AFSR :: 00000000
_BFAR :: 200062C4
_MMAR :: 200062C4
debug_tt (weak) default :: customize with 'void Debug_Dump()' in user code.
userDebugDumptt() in debug_tt ___
F_CPU=300000000
>>>> Debug Fault >>>> debug_fault >>>> TYPE:T_4
debug_tt Info:
>>>> Debug Fault >>>> TYPE:T_4
--- Faulted >>>> Execution Halted.
For more info - print it in sketch :: Debug_Dump(void)
I may be doing something obviously wrong but your help would be highly appreciated.
Thanks!