Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 6 months ago.
EthernetInterface + USBMIDI together, RAM errors?
Hi,
I'm trying to use the USBMIDI and EthernetInterface together. They work fine when using one at a time, but when I want to use them both together the mbed doesn't even respond.
I'm thinking of some memory problem. Now when I'm using this code snippit to show how much ram is allocated ( http://mbed.org/forum/mbed/topic/3179/?page=1#comment-16243 ) I get:
Only USBMIDI library: Main RAM: 4852 RAM0: 0 RAM1:0
When using only the EthernetInterface library: Main RAM: 8332 RAM0: 16384 RAM1: 11348
I don't see any problems, because the usbmidi library doesn't use any of the special RAM0 or RAM1. How can I fix this problem?
Thanks!
It might help if you share your code snippet.
posted by Martin Kojtal 20 Aug 2014main.cpp for only usbmidi
This is the code I use for the MIDI (and showing the RAM). From the moment I include EthernetInterface and use it the code doesn't work and the mbed doesn't respond (when i just eth.init() and eth.connect() )
main.cpp with usbmidi and ethernetinterface that doesn't work
nobody? Is this a known bug in rtos/usbdevice or not?
posted by Jannes De Brabandere 26 Aug 2014