Skip to content

Packet size changes #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

AndrewCapon
Copy link
Contributor

Hi Guys,

I don't expect this PR to be merged, just as a start to some conversation.

It is related to: #31

To enable new code define ARC_USB_FULL_SIZE=1

For midi devices tested with:

#include <Arduino_USBHostMbed5.h>
#include "USBHostMIDI/USBHostMIDI.h"

mbed::FileHandle *mbed::mbed_override_console(int fd) 
{
  return Serial2;
}

USBHostMIDI hostMidi;

void setup()
{
  Serial2.begin(115200);

  SetupLogic();

  pinMode(PA_15, OUTPUT); //enable the USB-A port
  digitalWrite(PA_15, HIGH);


  printf("Starting USB Midi example...\n");

  while(!hostMidi.connect())
  {
    printf("Waiting for connection...\n");
    delay(1000);
  }
}

void loop()
{
  delay(1000);
}

I also tested the MSD example code and that still works in my testing with two sticks.

Cheers

Andy

@CLAassistant
Copy link

CLAassistant commented Oct 30, 2023

CLA assistant check
All committers have signed the CLA.

@github-actions
Copy link

Memory usage change @ 6494fa0

Board flash % RAM for global variables %
arduino:mbed_giga:giga 🔺 +8288 - +8352 +0.42 - +0.42 0 - 0 0.0 - 0.0
arduino:mbed_opta:opta 🔺 +8352 - +8352 +0.42 - +0.42 0 - 0 0.0 - 0.0
arduino:mbed_portenta:envie_m7 N/A N/A N/A N/A
Click for full report table
Board examples/DirList
flash
% examples/DirList
RAM for global variables
% examples/FileRead
flash
% examples/FileRead
RAM for global variables
% examples/FileWrite
flash
% examples/FileWrite
RAM for global variables
% examples/OptaDirList
flash
% examples/OptaDirList
RAM for global variables
% examples/PortentaOTA
flash
% examples/PortentaOTA
RAM for global variables
%
arduino:mbed_giga:giga 8344 0.42 0 0.0 8352 0.42 0 0.0 8288 0.42 0 0.0 8352 0.42 0 0.0 8352 0.42 0 0.0
arduino:mbed_opta:opta 8352 0.42 0 0.0 8352 0.42 0 0.0 8352 0.42 0 0.0 8352 0.42 0 0.0 8352 0.42 0 0.0
arduino:mbed_portenta:envie_m7 N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A
Click for full report CSV
Board,examples/DirList<br>flash,%,examples/DirList<br>RAM for global variables,%,examples/FileRead<br>flash,%,examples/FileRead<br>RAM for global variables,%,examples/FileWrite<br>flash,%,examples/FileWrite<br>RAM for global variables,%,examples/OptaDirList<br>flash,%,examples/OptaDirList<br>RAM for global variables,%,examples/PortentaOTA<br>flash,%,examples/PortentaOTA<br>RAM for global variables,%
arduino:mbed_giga:giga,8344,0.42,0,0.0,8352,0.42,0,0.0,8288,0.42,0,0.0,8352,0.42,0,0.0,8352,0.42,0,0.0
arduino:mbed_opta:opta,8352,0.42,0,0.0,8352,0.42,0,0.0,8352,0.42,0,0.0,8352,0.42,0,0.0,8352,0.42,0,0.0
arduino:mbed_portenta:envie_m7,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A

Copy link

Memory usage change @ 8bab89d

Board flash % RAM for global variables %
arduino:mbed_giga:giga 🔺 +8288 - +8352 +0.42 - +0.42 0 - 0 0.0 - 0.0
arduino:mbed_opta:opta 🔺 +8288 - +8352 +0.42 - +0.42 0 - 0 0.0 - 0.0
arduino:mbed_portenta:envie_m7 N/A N/A N/A N/A
Click for full report table
Board examples/DirList
flash
% examples/DirList
RAM for global variables
% examples/FileRead
flash
% examples/FileRead
RAM for global variables
% examples/FileWrite
flash
% examples/FileWrite
RAM for global variables
% examples/OptaDirList
flash
% examples/OptaDirList
RAM for global variables
% examples/PortentaOTA
flash
% examples/PortentaOTA
RAM for global variables
%
arduino:mbed_giga:giga 8344 0.42 0 0.0 8288 0.42 0 0.0 8352 0.42 0 0.0 8352 0.42 0 0.0 8352 0.42 0 0.0
arduino:mbed_opta:opta 8352 0.42 0 0.0 8288 0.42 0 0.0 8352 0.42 0 0.0 8352 0.42 0 0.0 8352 0.42 0 0.0
arduino:mbed_portenta:envie_m7 N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A
Click for full report CSV
Board,examples/DirList<br>flash,%,examples/DirList<br>RAM for global variables,%,examples/FileRead<br>flash,%,examples/FileRead<br>RAM for global variables,%,examples/FileWrite<br>flash,%,examples/FileWrite<br>RAM for global variables,%,examples/OptaDirList<br>flash,%,examples/OptaDirList<br>RAM for global variables,%,examples/PortentaOTA<br>flash,%,examples/PortentaOTA<br>RAM for global variables,%
arduino:mbed_giga:giga,8344,0.42,0,0.0,8288,0.42,0,0.0,8352,0.42,0,0.0,8352,0.42,0,0.0,8352,0.42,0,0.0
arduino:mbed_opta:opta,8352,0.42,0,0.0,8288,0.42,0,0.0,8352,0.42,0,0.0,8352,0.42,0,0.0,8352,0.42,0,0.0
arduino:mbed_portenta:envie_m7,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants