maple mini under eclipse + Nightly arduino eclipse plugin / linux

Pepe
Fri Jun 12, 2015 8:32 pm
Before change make a backup. :)
plugin: http://eclipse.baeyens.it/nightly-linux.html

file: Arduino_STM32/STM32F1/platform.txt

add lines:
build.use_archiver=false
build.system.path={runtime.platform.path}/system
bootloader.tool=maple_upload

change lines:
tools.maple_upload.path.linux={runtime.platform.path}/../tools/linux
compiler.path={runtime.tools.arm-none-eabi-gcc.path}/bin/

file: Arduino_STM32/tools/linux/maple_upload
before ${DFU_UTIL} line:

DIR=$( cd “$( dirname “${BASH_SOURCE[0]}” )” && pwd )
$DIR/reset.py
sleep 1

change line:
${DFU_UTIL} -d ${usbID} -a ${altID} -D ${binfile} -R

reset.py: https://github.com/leaflabs/libmaple/bl … s/reset.py

enjoy :)

some outputs:
compile: http://pastebin.com/3dzqgBfz
download: http://pastebin.com/NCtTsiJ2
settings: http://kepfeltoltes.hu/150613/fz_www.ke … es.hu_.png


stuartw
Sat Jun 13, 2015 5:16 am
Hello Pepe!

Could you perhaps elaborate on what this is about? if I read you right you are saying the latest Arduino Eclipse build plus the changes below makes things work for us with stm32F1? That would be great news…

I will give it a go anyway.


Pepe
Sat Jun 13, 2015 5:30 am
Hello!

Yes, some changes, compile and download working with stm32F1 (maple mini with bootloader 2.0 tested).


stuartw
Sat Jun 13, 2015 9:50 am
Very interesting, I will give it a go!

Unfortunately I have to wrestle windows (too many other build tools for projects there), but it
will be worth it if I can get good clean builds happening there.

My main reason for looking for eclipse support is debugging integration – I am amazed the Arduino
projects have got this far without better hardware debug support – not that its simple.
Life would be so much easier if they would do their builds in a more stable location rather than their
randomised build directory.

My eclipse foo must be weak today, even using the daily full eclipse build (windows, 32 bit) I cannot
get it to list any arduino targets other than the standard ones tonight, so obviously I am missing something.
With your project or making a new project, I cannot get a suitable board that I can select..

Using the current hourly Arduino build also.. (hourly? really? seems insane ;) )

Will continue to to fight the good fight however :)


Pepe
Sat Jun 13, 2015 10:42 am
debugging have not tried, but I found this topic,
STLink/gdb howto:
http://fab.cba.mit.edu/classes/4.140/tu … stm32.html
maybe it works

martinayotte
Sat Jun 13, 2015 1:24 pm
This method is working, since some people here on the forum are using it.
Personally, I’ve received my STLink earlier this week, I gave it a try, and it was working.

stuartw
Sun Jun 14, 2015 10:08 am
Yes, st-link (and segger j-link, which I prefer but both are functional) certainly works well for debugging stm32.

The step forward I am looking for (and I know a few others here seem to be also) is to have one single dev environment
that allows edit, build, upload, and debug with major delays between the stages. I have some hopes this project may lead
to that :)

I also use the Cypress PSOC devices, and they have their own more integrated system (which they really have to given the
hardware complexity of their customised secondary hardware), and some very good libraries, however there is definitely
also an advantage in having access to some of the community that surrounds Arduino (and also STM32duino, which is
very impressive in its growth and functionality, I cannot thank Roger, and others, enough for what they are doing).

The literal flood of cheap and functional boards based on the STM family is a huge resource, but some of the tools do need
to mature a little to really open it up – and good build/debug integration is I believe critical to that.

Or, perhaps I am just getting old and lazy, and command line gdb is just too hard these days ;) I really do hope to get
a good stack working under eclipse, to help my tired old lazy bones.

It feels like it is getting close!


RogerClark
Tue Jun 16, 2015 3:45 am
Eclipse CDT Standalone debugger, Windows version, is supposed to be available at the end of June.

So there may be an option to shell out from the IDE to that debugger.

At the moment that debugger is only available on Linux (and possibly OSX), so I’m holding off investigating how to integrate it until its truely cross platform. I’ve tried to use some other GUI debuggers but they only seem available on Linux.

Most people expect the IDE its self to communicate with the debugger, but the IDE team don’t have that as top of their list at the moment.


tekk
Wed Jul 15, 2015 8:29 am
Link is broken.

Forbidden

You don’t have permission to access /nightly/ on this server.


RogerClark
Wed Jul 15, 2015 9:35 am
tekk wrote:Link is broken.

Forbidden

You don’t have permission to access /nightly/ on this server.


tekk
Wed Jul 15, 2015 12:04 pm
My settings screen for Arduino in Eclipse looks different:
http://s13.postimg.org/r5xx296ev/Screen … _00_22.png

What changes have to be done for Windows?
Thanks.

EDIT:
My goal is to flash Black Magic Probe firmware onto my blue pill and then debug visually with eclipse.
I haven’t figured out way to make STM32 toolchain work under eclipse.


victor_pv
Mon Jul 20, 2015 7:21 pm
I gave this a shot last weekend, and could not get it working properly. It did work for AVR, but not for stm32. Some times I would get errors saying there is no project to compile, other times an error with make.
Has anyone used it successfully in Windows for the stm32 with our core?
If some, what needs to be added/changed?

michael_l
Thu Sep 03, 2015 3:27 pm
Pardon my ignorance but where can I find the downloads for Eclipse IDE nightly builds? And latest CDT would be nice too to get

franman11
Tue Sep 15, 2015 12:29 pm
Hello,

I am new to this forum so bear with me for my troubles.

I recently configured the STM32 files with the Arduino 1.6.5 IDE and it works fine.
I have been using the Arduino Eclipse IDE from baeyens for quite a while and have gotten accustomed to it. So when I try to configure the STM32 (more specifically, maple mini in my case), It seems to have trouble with the data types uint8_t, uint16_t… etc.. I discovered I am unable to locate the files stdint.h, stdlib.h, stdio.h or string.h.

Can anyone help me out with this?
Thanks


martinayotte
Tue Sep 15, 2015 1:46 pm
Inside your Arduino IDE folder, there are located in something like hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/arm-none-eabi/include/

TomCZ
Mon Apr 18, 2016 9:37 am
Hello Pepe,
could you write order step by step how it is possible to compile basic example Blink for maple mini +Nightly arduinoeclipse / linux. I have a new topic similar as yours in another thread (http://www.stm32duino.com/viewtopic.php?f=41&t=1023).

Thank you Pepe.

Tomas


Leave a Reply

Your email address will not be published. Required fields are marked *