Arduino nano 33 BLE Disconection

I have been working on a sine wave machine learning project and increasing the size of the neural network. I noticed at a 16 by 20 with one output node is the limit the controller can handle with out the port disconnecting. When I increase the layers and upload to the board the upload is successful without incident, but the problem is that the port disconnects after and the port tab is greyed out and I have to reset the board. After disconnecting and reconnecting I look at the monitors and they are blank. It seems lie there is a problem uploading that disconnects the board. Compared to less layers there is not difference in the code and the less layers upload perfectly fine and I can see the monitors. Is this because a physical parameter of the board? I also saw that when uploading not all the storage is used up.

@rich3654, your topic has been moved to a more suitable location on the forum.

I have no experience with the Nano33 BLE; if the board has native USB (and I think it does)

  1. The port will change at the moment that the upload starts and change back once finished.
  2. From your description, it sounds like your code is the culprit; the symptoms seem to indicate that you somewhere run out of memory at run time (the IDE can't predict run time memory usage).

Welcome to the forum.

sterretje is right, the Arduino Nano 33 BLE has native USB (your processor handles the USB communication). If mbedOS crashes or you do something that prevents the USB stack from running properly the Arduino will no longer connect to the PC.

You can double click the reset button to go to bootloader mode and program a new sketch I also use the while(!Serial); at the beginning of every sketch during debugging. This way a single click reset will also work because the sketch will wait in setup until you open the Serial Monitor.

That does not mean anything. That data is just the static amount of flash and RAM used. That is the amount of memory that the compiler and linker can calculate. Dynamically used memory like the stack and HEAP can still create issues.
How much free/used memory did you get reported?

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.