I have the following setup:
MedusaMini
- PROG (4): USB Serial
- X (3): Temp & Humidity
- S (1): N18 display
- U (2): Extender - RS485
(all original GHI modules)
Via socket 2 I inject power by a Extender Module and a USB Client SP. only pin 1, 2, and 10 are connected to USB Client module.
With this configuration I can not deploy any program:
btw. I have to manually reset the board for deploy right after compilation, GUS mentioned something like that when I use this config. May be it's important here).
If I disconnect the RS485 it works.
I do not make any changes to the application.
The RS485 is not initialized in the application.
The debug monitor seams to work all the time (I see my Serial.println's when I reset the board)
Any ideas?
is the bootloader using the wrong usart?
SW:
Arduino IDE 1.5.5 beta
VS 2013 + VisualMicro plugin (same behaviour with Arduine IDE)
Gadgeteering SDK 2013 R1 (beta) with N18 fix for stepping
Edit: one more info:
when I initialize the RS485, then my program seams to stop after 1st Serial.println and and additional "?n" is written in serial monitor after each new line.
I know that RS485 Gadgeteering driver is not tested, bit it's not really more than a wrapper around devices::serial.
Edit2:
I tried initializing RS485 before Serial.begin(9600)
```cpp
serial_configuration sc;
sc.baud_rate = 9600;
sc.data_bits = 8;
sc.stop_bits = serial_configuration::stop_bits::ONE;
sc.data_parity = serial_configuration::parities::EVEN;
_modbus = new ModbusRtu(2, sc);
// put your setup code here, to run once:
Serial.begin(9600);
By this I get only %$§&bla in the Debug monitor.
Is it possible that Medusa mini has only one USART which is shared between socket 2 and 4 !?
ZEZMedusaMini.cpp assigns SERIAL_0 to socket 2:
Is this correct?