Hi
I want to use Red Suite for coding and uploading my Maple. I've read that i need to use jtag. But i am not familliar with it (not sure what it really is). Can anyone give me some guide lines for this?
Uploading through Red Suite
(17 posts) (4 voices)-
Posted 3 years ago #
-
If your ide allows you to run scripts you can use the built in usb bootloader. You should probably follow this http://leaflabs.com/docs/unix-toolchain.html
Posted 3 years ago # -
I've read the link. And I guess I am still quite a newbie at this point, because i have no idea what to do. I have programmed in C/C++ before, but never had to worry about makefiles and toolchains and such. The main reason for using Red Suite is that i have used it in school and it includes a debugger.
Posted 3 years ago # -
@Sacdarius:
Welcome to the maple forum.
Being familiar with a text editor such as XEmacs or an IDE-debugger such Red Suite is a great reason to continue using it. There is no need to switch unless you really need to or want to. If you feel command line programming gives you the extra power or control you now need for a current project (and only you can answer that question for yourself) then you need to put in the time to teach yourself about make and toolchains. There is no easy solution. It may be the time to hit the reference manuals or internet search engines.
Users on this forum are most helpful if you describe in detail, what you are trying to do, what you understand (and what you do not understand), what you have done, what has worked, what has not worked, etc. Details are helpful. Having other users guess what you are asking is not helpful.
From your last post it is not clear what you mean when you wrote "i have no idea what to do." How do you want other users to respond?
You said you read the link which feurig shared. Did you try to follow the instructions on the unix-toolchain.html page? If yes, at what point did you get confused? Your feedback (describing where you got confused) with help improve the documentation, clearing up the specific problems you had and making things more clear for the next new user. This is how open communities grow and develop useful tools.
Also, in "I need help" posts it is informative to describe your system, the version of the leaflabs board you are using, the version of the leaflabs software you are using, etc.
Hope this helps.
Stephen from NYC (full disclosure: I am not a member of the LeafLabs staff)
BTW, If I understood the Red Suite website correctly you need the $1000 version of Red Suite to program the STM32F(1-2-4) series of processors.
Posted 3 years ago # -
If you feel command line programming gives you the extra power or control you now need for a current project (and only you can answer that question for yourself) then you need to put in the time to teach yourself about make and toolchains. There is no easy solution. It may be the time to hit the reference manuals or internet search engines.
[...]
You said you read the link which feurig shared. Did you try to follow the instructions on the unix-toolchain.html page? If yes, at what point did you get confused? Your feedback (describing where you got confused) with help improve the documentation, clearing up the specific problems you had and making things more clear for the next new user. This is how open communities grow and develop useful tools.
Perfectly said. Thanks, Stephen.
Posted 3 years ago # -
Okay, first of all. I am using Windows 7 Pro 64 bit. My board is the Maple rev. 5.
At the moment i'm just trying to upload a simple program like that LED blink example included in the mapleIDE. What i like to do by using Red Suite, is to be able to create different .h- files and .c-files, like those i see the libmaple consists of (adc.h, adc.c....etc),and thereby be able to organize related functions instead of having them all in one sketch. This is what i have been used to. The link feurig shared didn't include af walkthrough for windows, but i found this link
https://github.com/leaflabs/leaflabs-docs/blob/unix-toolchain-overhaul/source/unix-toolchain.rst#id34
which did include Windows.
I followed this link and installed git, python and so on.
I've reached step 7. The part where you white
$ cat >~/.bashrc <<EOF
> export PATH=\$PATH:~/libmaple/arm/bin/
> EOFThe guide tells me that the .bashrc file is placed in documents and settings/<your name>. From what I've read, documents and settings doesn't exist in Win7. But i found the .bashrc file in C:\SPB_Data. So i moved on assuming this was okay.
In the section "Test compilation" you are supposed to write this:
$ cd ~/libmaple
$ cp main.cpp.example main.cpp
$ make clean
$ makebut i get: make: command not found. And this is where I am stuck now.
By the way. Where did you read that you needed that expensive version of Red Suite?
Posted 3 years ago # -
The link feurig shared didn't include af walkthrough for windows, but i found this link
https://github.com/leaflabs/leaflabs-docs/blob/unix-toolchain-overhaul/source/unix-toolchain.rst#id34Yes, Windows instructions were added after v0.0.12. Regarding the .bashrc issues, I think I'll replace those with a GUI walk-through for how to alter your PATH via the Control Panel. That'll avoid issues like Documents and Settings not existing, etc.
but i get: make: command not found. And this is where I am stuck now.
Ah, yes. Windows users need to type
cs-make
instead ofmake
. The version from the unix-toolchain-overhaul branch is out of date; I've updated the version in master to reflect that:https://github.com/leaflabs/leaflabs-docs/blob/master/source/unix-toolchain.rst#test-compilation
The quickstart now reads:
# Note: Use "cs-make" instead of "make" on Windows $ cd ~/libmaple $ cp main.cpp.example main.cpp $ make clean $ make
These Windows instructions will be part of the next release; I'll make sure to resolve any Windows 7 issues by then.
Posted 3 years ago # -
Okay, so is the .bashrc file placed correctly?
I tried using cs-make, but still no luck. It says cs-make: command not found"Posted 3 years ago # -
@Sacdarius:
Thanks for taking the time to describe your command line efforts in detail. Please post to the forum if you are able to make progress using the recent updates. Seeing "yes, the updates solved my problems" posts to this forum will encourage other users to send in detailed descriptions of their problems. Everyone wins!
On the "products" page for coderedtech there is a table comparing different software.
Halfway into the table is the STMicroelectronics section with three rows listing the STM32F(1-2-4) families. Only the $999 software in the far right column ("full license") is marked as "Yes" for these microprocessors.
You mentioned using Red Suite in school. It is likely you were using the software with an education license. Often, these packages are very similar to the "full" versions of the software. Your software's "about" screen might give you some more info.
If, in your reading, you find any recent and useful tutorials describing make and the unix toolchain please let us know.
Thanks!
Stephen from NYC (full disclosure: I am not a member of the LeafLabs staff)
Posted 3 years ago # -
@StephenFromNYC
Yes we had a 60-days evaluation licens for the 999 dollar one. My licens has expired, but I can still use it, although there is a debug limit of 32k.Posted 3 years ago # -
Okay, so is the .bashrc file placed correctly?
I tried using cs-make, but still no luck. It says cs-make: command not found"No, it's not set properly, or you'd get a different message. Make sure that the directory containing cs-make.exe (the arm/bin/ directory from the ARM toolchain you extracted) is in your PATH. Check that it's present when you run this at the Git Bash prompt:
$ echo $PATH
Unfortunately, it looks like there are bugs in GNU make that prevent it from working well in 64-bit Windows 7:
http://lists.gnu.org/archive/html/make-w32/2011-05/msg00000.html
More information here:
http://okolovich.info/interruptexception-caught-with-code-0xc00000fd/
I get the same behavior (when running cs-make in a directory with a Makefile) regardless of my PATH having parentheses or not. You may be able to get it working on your machine, however; it looks like some people on the internet have had success.
If you're not able to get precompiled versions of Make to work, then unless you're willing to dig into this in some detail (i.e. build Make from the latest sources yourself), you are probably out of luck, and will have to wait until we officially support the command line toolchain on Windows 7. Sorry about that :(. The good news is that doing just that is a crucial part of the IDE improvements I'm working on right now.
EDIT: instead of using .bashrc, you might try setting the path via the GUI like so:
http://geekswithblogs.net/renso/archive/2009/10/21/how-to-set-the-windows-path-in-windows-7.aspx
Posted 3 years ago # -
@mbolivar
Path set through GUI - done :-)
New problem, when using cs-make i get: "c:\Users\Lasse: Interrupt/Exception caught (code =0xc00000fd , addr = 0x421952) and i'm guessing it's because i have spaces in my path.
The path is C:\Users\Lasse E. Andersen\libmaple\arm\binam i right?
Posted 3 years ago # -
New problem, when using cs-make i get: "c:\Users\Lasse: Interrupt/Exception caught (code =0xc00000fd , addr = 0x421952) and i'm guessing it's because i have spaces in my path.
Nope. That's the problem I linked to in my previous post. Apparently it has to do with parentheses in PATH. See my earlier links for a description of and workaround for the issue.
If that doesn't work for you, here's another way that I used just today to build libmaple using the Unix toolchain under Windows 7 64 Home Premium:
1. Download MinGW: http://sourceforge.net/projects/mingw/files/ (There's a link to the latest version in that page).
2. Install MinGW, making sure to install the MSYS base system along with it. This is an option that's not enabled by default in the installer customization dialog window.
3. Open a MinGW shell (under Start -> All Programs -> MinGW). This will also open up a Bash prompt, but it will differ in some ways from the Git Bash prompt.
4. In the MinGW Bash terminal (i.e. NOT the Git Bash window), change directory to where you have libmaple. That will probably look something like:
$ cd /c/Users/Lasse\ E.\ Andersen/libmaple
5. Still in the MinGW Bash terminal, run
make
(NOTcs-make
) as normal.If arm-none-eabi-gcc and friends are in your PATH, the compilation should succeed. I have successfully copied main.cpp.example to main.cpp and gone through a complete compile with this method.
Posted 3 years ago # -
Mbolivar, I was looking at the link that I referenced above this morning and noticed that it was linux and osx specfic. I was going to ask you (on my ever where is that list of things to ask mbolivar when I talk to him next... list :) ) about doing the command line in windows for my class this weekend http://www.suspectdevices.com/blahg/arm/bacon/cooking-with-the-maple-bacon-saturday-25aug12-1-5-freegeek-40/. I will have to re-read this and test it out.
Posted 3 years ago # -
@mbolivar
Successfully followed your 5 steps and compiled the test-session.cpp. Hurray!! :-)
But after entering make install I get the following error
$ make install
Install target: flash
./support/scripts/reset.py && sleep 1 && dfu-util -a1 -d 1EAF:0
003 -D build/maple.bin -R
/usr/bin/env: python: No such file or directory
make: *** [install] Error 127Posted 3 years ago #
Reply »
You must log in to post.