(First of all, I'm Korean and My english too bad, so I don't know if i can explain that I want to know.)

I'm using all teensy version.
Actually I'm use ram of teensy3.6 to control motor position control (not eeprom).
anyway.

I'm use like this (on teensy 3.6).

short rec_motor_1[15500], unsigned short rec_motor_time_1[15500];
short rec_motor_2[15500], unsigned short rec_motor_time_2[15500];
short rec_motor_3[15500], unsigned short rec_motor_time_3[15500];
short rec_motor_4[15500], unsigned short rec_motor_time_4[15500];

I can show the ram use % (around 95% use) when I compile.
Anyway upload and work is good on teensy 3.6.

But I show the new teensy4.0 at teensy web site, I found out that more RAM is available with teensy4.0. So I bought and test now, but If i use like the (on Teensy 4.0)
short rec_motor_1[23000], unsigned short rec_motor_time_1[23000];
short rec_motor_2[23000], unsigned short rec_motor_time_2[23000];
short rec_motor_3[23000], unsigned short rec_motor_time_3[23000];
short rec_motor_4[23000], unsigned short rec_motor_time_4[23000];

I can show the ram use % (around 45% use) when I compile.
But If I use more ram like this.


short rec_motor_1[23000], unsigned short rec_motor_time_1[23000];
short rec_motor_2[23000], unsigned short rec_motor_time_2[23000];
short rec_motor_3[23000], unsigned short rec_motor_time_3[23000];
short rec_motor_4[23000], unsigned short rec_motor_time_4[23000];
short rec_motor_5[23000], unsigned short rec_motor_time_5[23000];
....

I can show the ram use % (around 51% use) when I compile.
and teensy not working and use device not find on computer.
If i change the ram use % under 50%, then it works again....

Can you help me ?? Is there something wrong in my code? in teensy 4.0?

Thank a lot,
Best regards,
Yong.