Lotus Cortex-M0+ no serial output

Arduino, Seeeduino Serials and mutants. Share your problems and experence on arduino compatible board such as seeeduino/stalker, etc.

Moderators: lily.li, violet, salmanfarisvp

Post Reply
User avatar
webmaster2
Pre-kindergarten
Pre-kindergarten
Posts: 18
Joined: Fri Mar 25, 2016 4:32 pm

Lotus Cortex-M0+ no serial output

Post by webmaster2 » Tue May 14, 2019 5:58 pm

I would want to upgrade an old my sketch, that are currently running on a Seeeduino Loutus, with the new Lotus Cortex-M0+ board but I've no output on serial (and neither on Serial1 too) with this new on board.
To investigate more I've tried to load the basic example blynk.ino, to test If I'm able to upload scketches on the board. Well, I've no problem uploading sketches,
Now, I've tried to upload the basic ASCIITable.ino, to test the Serial output, and in this case I've the problem! I get no output on the Serial or Serial1 port (connected with an FTDI adapter to the PC).

Tried to use or nt use the

Code: Select all

while (!Serial.port)
statement but no changes, I've no output on serial port.

Obviously installed the board on the board manager and the windows drivers.

So, where's the problem?

bill.yu
Junior-6
Junior-6
Posts: 691
Joined: Mon Apr 02, 2018 11:05 am

Re: Lotus Cortex-M0+ no serial output

Post by bill.yu » Wed May 15, 2019 9:03 am

Hi there,

The serial is SerialUSB. You can use the SerialUSB to print the message. For more info, please refer to http://wiki.seeedstudio.com/Seeed_Arduino_Serial/ thanks.

User avatar
webmaster2
Pre-kindergarten
Pre-kindergarten
Posts: 18
Joined: Fri Mar 25, 2016 4:32 pm

Re: Lotus Cortex-M0+ no serial output

Post by webmaster2 » Wed May 15, 2019 5:17 pm

Ok, thanks for your reply.
The SerialUSB port (old Serial) now it works, but I still have some problem with the Serial1... is still named Serial1?

bill.yu
Junior-6
Junior-6
Posts: 691
Joined: Mon Apr 02, 2018 11:05 am

Re: Lotus Cortex-M0+ no serial output

Post by bill.yu » Thu May 16, 2019 3:09 pm

Hi there,

Here is the Serial1 from below picture, please let us know what kinds of issue do you face. thanks.

Image

User avatar
webmaster2
Pre-kindergarten
Pre-kindergarten
Posts: 18
Joined: Fri Mar 25, 2016 4:32 pm

Re: Lotus Cortex-M0+ no serial output

Post by webmaster2 » Thu May 16, 2019 9:46 pm

I'm tring to use the Grove LORA 433 on Serial1 but the porting from Seeedstudio of the Radiohead library isn't working because

Code: Select all

fatal error: RHutil/atomic.h: No such file or directory

   #include <RHutil/atomic.h>
So, I'm trying to use the original Radiohead library, but it seems that's isn't would to communicate with the LORA module.
In the library I saw that the baudrate is 57600 and I setted the sketch to fit it but with no luck.

Now tried to direct the output of Serial1 via an FTDI adapter to the PC and in fact I can see some char on the terminal (putty), so I'm sure that the Serial1 is working and the sketch tried to communicate with the LORA.

I've googled a lot and find that SAMD21 processors cannot use interrupt library atom.h but new releases of radiohead library can handle the new processors family, in effect with the readiohead library I get no error when compiling but I've no communication with the LORA module

Now... the problem is: how can I use the LORA module with the Lotus Cortex-M0+ ?

bill.yu
Junior-6
Junior-6
Posts: 691
Joined: Mon Apr 02, 2018 11:05 am

Re: Lotus Cortex-M0+ no serial output

Post by bill.yu » Mon Jun 03, 2019 6:14 pm

Hi there,

You can use below library and configure as below define. thanks.

#################### SAMD ######################

#ifdef ARDUINO_SAMD_VARIANT_COMPLIANCE

#define COMSerial Serial1
#define ShowSerial SerialUSB

RH_RF95<Uart> rf95(COMSerial);

#endif

http://wiki.seeedstudio.com/Grove_LoRa_ ... ad-library

Post Reply