@defragster I'm going to call this a big waste of your time, and I apologize up front.
I just felt like I had to do more basic testing before using your suggested troubleshooting code and steps:
1. I was able to flash...
You can get 8 consecutive bits on FlexIO2 on a Teensy Micromod.
On the T4.1 you might be able to achieve 8 bits but they are scattered over a 32 bit register.
So you would have to do bit shifting to convert the data...
The 16 bits you have available on FlexIO3 do not support DMA transfers unfortunately.
You can try an interrupt driven method where you can fill up four 32 bit FlexIO buffers with data and transfers that to RAM/SD/Flash...
@defragster thanks for the sketch and all the info.
I've been out the past few weeks with Covid (my 2nd time) and family matters, so trying to find time to get back to this issue and start troubleshooting.
From the...
I have a few millis intervals in the main loop:
1. Tells LVGL how much time has passed
2. Calls LVGL task handler (object drawing etc)
3. CAN transmits using standard mailboxes
4. Custom function that updates LVGL...
Thanks for the tips! BTW its not even a hard crash - just a full on freeze. USB dies out at some point too.
Using a lot of Serial prints I can confirm that the Teensy will freeze as soon as the DMA channel is enabled...
Im still trying to build out a simpler program that will demonstrate the issue, but meanwhiles I’ve tried the following:
1. As the two frame buffers sit in DMAMEM, I've added align 32 attributes to them - same...
@tony got another quick one for you.
As mentioned before I have three mailboxes set up, each with it's own callback:
Can0.setMBFilter(REJECT_ALL);
Can0.setMBFilter(MB1, id1); // 29 bit id
...
@tony I'd like to do on iso-tp something similar to FlexCAN where I can assign a mailbox to a specific ID Can0.setMBFilter(MB1, 0x100); and trigger a specific callback when a message arrives in that mailbox...
Can I use iso-tp onRecieve callback to trigger per message ID?
For example:
id = 0x001 - trigger function callBack1
id = 0x002 - trigger function callBack2
id = 0x003 - trigger function callBack3
Also, I might...