[SOLVED] [USING WRONG IDE] Maple Mini SERIAL PORT is Disabled

Development environment specific, Arduino, Eclipse, VS2013,Em::Blocks etc
Post Reply
Leonardo_evaldt
Posts: 19
Joined: Wed Jul 19, 2017 3:30 pm

[SOLVED] [USING WRONG IDE] Maple Mini SERIAL PORT is Disabled

Post by Leonardo_evaldt » Wed Jul 19, 2017 4:26 pm

Hi Guys.
I have a problem that I cannot solve and I need your help.
My board is a Maple Mini Rev3. I had installed it perfectly (first DFU and after serial port). Every time I connected the board into usb, the device manager showed "COM4". Every Time I opened the maple IDE the menu TOOLS\SERIAL PORT was enabled.
But after I tried to program the "digital blink" example on Maple rev 3+ to flash (or something like that, I really don't remember) the board stops work.
The blink program doesn't work (the led stays off) and now the menu TOOLS\SERIAL PORT is always disable (as the picture below).
BLINK.JPG
BLINK.JPG (78.21 KiB) Viewed 367 times
The device manager doesn't shows the COM4 anymore. In fact, the Device manager doesn't show anything related with my board. Only in the first 4 seconds after I connect the board on USB (when bootloader is running) the device manager shows the board but, after this 4 seconds, the device disappear and the COM4 doesn't shows up. I have no idea what's going on.
Can someone help me?
Thanks.

stevestrong
Posts: 1609
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: Maple Mini SERIAL PORT is Disabled

Post by stevestrong » Wed Jul 19, 2017 5:01 pm

Why don't you use the standard Arduino IDE?
The Arduino_STM32 is designed to work with it.

I don't think anyone else using the Maple IDE...

ag123
Posts: 742
Joined: Thu Jul 21, 2016 4:24 pm

Re: Maple Mini SERIAL PORT is Disabled

Post by ag123 » Mon Jul 24, 2017 8:41 am

please install your sketch in flash (e.g. alt=1 install to 0x8005000 for maple boot loader)
you are selecting install to ram which would likely need you to meddle with boot pins etc which is *untested*

note that if your maple mini has the stm32duino boot loader installed it would have alt=0 (not used), alt=1 and alt=2 install to 0x8002000)
you can see the response by pressing reset and running

Code: Select all

dfu-util -l
, if there is alt=2 install to 0x8002000 it is stm32duino boot loader

for that you would need to edit hardware / leaflabs / boards.txt to use alt=2,
you will also need to meddle with the ldscripts hardware / leaflabs /cores/maple/maple_mini/flash.ld to point to the correct flash start address
if unsure use the Arduino IDE and the 'new' Arduino stm32 core below

and you'd need to check where is that BOARD_LED_PIN expanding to, normally that's pin 33 for maple mini, otherwise the led won't lit simply because it is the *wrong pin*

Arduino IDE and the 'new' Arduino stm32 core:

for anything more 'advanced' than a blinky sketch
it would probably be better to go with the arduino stm32 core and you need Arduino IDE for that instead
https://github.com/rogerclarkmelbourne/ ... stallation

the amount of enhancements/fixes in the 'new' Arduino_STM32 core takes things much further ahead of the original arduino stm32 core delivered with the maple IDE

Leonardo_evaldt
Posts: 19
Joined: Wed Jul 19, 2017 3:30 pm

Re: Maple Mini SERIAL PORT is Disabled

Post by Leonardo_evaldt » Tue Jul 25, 2017 3:44 pm

Hello Stevestrong. Thanks for reply.
I tried the Arduino IDE but the problem remains.
imagem.JPG
imagem.JPG (43.28 KiB) Viewed 284 times
This problem started to happen after I tried to install a sketch. For some reason COM port is not being recognized by windows XP.
After pass through perpetual bootloader, the COM port used to appears. Now it dont shows up. What could make the COM port disappeared?
Doesn't make any sense to me.

Leonardo_evaldt
Posts: 19
Joined: Wed Jul 19, 2017 3:30 pm

Re: Maple Mini SERIAL PORT is Disabled

Post by Leonardo_evaldt » Tue Jul 25, 2017 4:12 pm

Hello ag123. Thanks a lot for all this help.
Lets star with this: "please install your sketch in flash (e.g. alt=1 install to 0x8005000 for maple boot loader)"
Well, I Dont know what is this alt=1 that you are talking about, but look what happens when I try to instal some sketch in perpetual bootloader mode:
imagem3.JPG
imagem3.JPG (112.52 KiB) Viewed 282 times
Look at the yellow circles. It shows alt=1 and the Flash address 0x08005000. Seems exactly what you said.
The big deal here is that "before this problem I were able to install sketches IN or OUT perpetual bootloader mode. Now only in perpetual bootloader I can install sketches.
And look at the red line. The IDE is complain about the USB port. Why is that so?

Second Point. About "note that if your maple mini has the stm32duino boot loader installed it would have alt=0 (not used), alt=1 and alt=2 install to 0x8002000)
you can see the response by pressing reset and running
CODE: SELECT ALL
dfu-util -l
, if there is alt=2 install to 0x8002000 it is stm32duino boot loader"

I tried to run this (by "reset and running" I understood "Verify"). I dont know if I did it right, but look at the anwser:
imagem4.JPG
imagem4.JPG (62.66 KiB) Viewed 282 times
Did I do it right?

But I think the question here is "where is my COM Port"?

stevestrong
Posts: 1609
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: Maple Mini SERIAL PORT is Disabled

Post by stevestrong » Tue Jul 25, 2017 4:47 pm

You did not select the "Generic STM32F103C series" as board type in Arduino IDE.
Sorry, as no one knows Maple IDE, you can only get support if you use the Arduino IDE.

Leonardo_evaldt
Posts: 19
Joined: Wed Jul 19, 2017 3:30 pm

Re: Maple Mini SERIAL PORT is Disabled

Post by Leonardo_evaldt » Tue Jul 25, 2017 7:09 pm

Not a problem Stevestrong. I can work with both IDEs.
But I do not have this option "Generic STM32F103C series" as the picture shows:
imagem.JPG
imagem.JPG (84 KiB) Viewed 263 times
I searched on internet and I found a forum that suggest use "ARDUINO DUE". But it doesn't work too.
Any Idea?

User avatar
Rick Kimball
Posts: 1014
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: Maple Mini SERIAL PORT is Disabled

Post by Rick Kimball » Tue Jul 25, 2017 7:45 pm

The maple mini really isn't the board for you.
-rick

stevestrong
Posts: 1609
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: Maple Mini SERIAL PORT is Disabled

Post by stevestrong » Tue Jul 25, 2017 8:33 pm

You did not follow the steps recommended here:
ag123 wrote:
Mon Jul 24, 2017 8:41 am
it would probably be better to go with the arduino stm32 core and you need Arduino IDE for that instead
https://github.com/rogerclarkmelbourne/ ... stallation

Leonardo_evaldt
Posts: 19
Joined: Wed Jul 19, 2017 3:30 pm

Re: Maple Mini SERIAL PORT is Disabled

Post by Leonardo_evaldt » Tue Jul 25, 2017 9:23 pm

Hey People.

I used this tutorial:

https://github.com/rogerclarkmelbourne/ ... stallation

and the actualization of the Arduino library fixed the problem on my board. Now I am able to programming it.
Thank you very much to Stevestrong and ag123 for helping me.

Bye Guys...

Post Reply