march=arm7-m
Looks like a typo; that should probably be "armv7-m".
march=arm7-m
Looks like a typo; that should probably be "armv7-m".
darkstar007, cool.
I wonder whether TI plans to add Stellaris Lanchpad support to Energia IDE?
ardweebno, You can use official branch https://github.com/leaflabs/libmaple/ with BOARD=VLDiscovery
Ok! I have mirrored the production libmaple repository. Tried compiling the example main.cpp by doing:
make BOARD=VLDiscovery
and it blew an error about SerialUSB not being defined within main() scope. I am guessing that this is an oversight in the example code and will move on with normal usage. Am I right?
Discovery chip has no USB, so comment this line.
And you need to replace
#define USER_ADDR_ROM 0x08005000
#define USER_ADDR_RAM 0x20000C00
with
#define USER_ADDR_ROM 0x08000000
#define USER_ADDR_RAM 0x20000000
in wirish/board.cpp
Hi,
Sorry for being ignorant.
I just followed the Anton's advice how to setup the libmaple environment and failed:
http://we.easyelectronics.ru/anton19286/biblioteka-libmaple-na-stm32vldiscovery.html
Windows 7, cs-make.exe taken from the gcc-arm-none-eabi-latest-win32.zip package.
Just wanted to compile the main.cpp delivered in the libmaple package. I issued in the libmaple directory i.e. the directory where the mani.cpp is installed and makefile exists:
cs-make.exe main
and got:
The system cannot find the path specified
arm-none-eabi-g++ [...]
cc1plus.exe: error: unrecognized command line option "-fprint-gcc-sections"
cc1plus.exe: error: unrecognized command line option "-march=armv7-m"
cs-make: *** [main] Error 1
====
Is there any step-by-step guide how to run this basic example?
Thanks in advance,
Bogdan
Hi,
Just tried to install the libmaple again, this time on linux.
All worked smoothly, no make-related errors. It seems that all the issues I saw last time were related to the Windows distro.
Bogdan
anton, I've had success using your fork but some of the code isn't up to speed with leaflab's official branch. I tried using the latest code there from git and it compiles but doesn't run on the discovery board, even using the USER_ADDR_ROM, USER_ADDR_RAM changes.
Also, slightly unrelated but I can do pretty much everything with anton's fork, but I'm trying to merge the code I saw on the forums for hardware flow control and that uses more recent code from the official branch. Would anyone be interested in lending me a hand with flow control?
Hello there.
I just discovered the STM32F100 value line discovery board about a month ago. So far I had fun running a few blinking programs on it.
I am now trying to build an application on a real chip. It seems to me that I can download the program to the external chip using the on-board ST-link utility with the CN3 jumper removed and the SWD pins connected to the SWD pins of the external device. Is this correct or do I have to purchase the ST-link debugger to do the download?
Thanks.
ehobby - I am assuming you mean this STM32VLDISCOVERY board:
http://www.st.com/web/en/catalog/tools/FM116/SC959/SS1532/PF250863
You are correct, you can use the STM32FxDiscovery boards to program and debug other boards.
You don't need to buy an ST-LINK/V2.
If you do decide to buy an ST-Link, get the newer ST-LINK/V2 as it uses a updated protocol which is reputedly friendlier to some operating systems. The older ST-LINK did present a slight problem on a Mac.
gbulmer,
Thank you for the quick response. Yes, STM32VLDISCOVERY is the board I was referring to.
I have two of this boards. So for the test, I connected the 1st board with the USB cable, removed its CN3 jumpers, then made a 4-wire connector to connect the SWDs on both boards (I intended to use the 2nd board as an external chip here). However the ST-line program kept complaining that no target can be found (I tried this with CN3 jumpers both on and off for the 2nd jumper). Do you know what I did wrong?
Thanks.
ehobby - The manual with the board schematics and instructions on using the ST-LINK is at
http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/PF250863
It is called
"UM0919 User Manual STM32VLDISCOVERY STM32 value line Discovery"
This explains how to disconnect the ST-Link from the processor on the VL Discovery board, and then connect its SWD (CN2) connector to a target board.
It sounds like, maybe, the two ST-Link SWD headers are connected together, and not the ST-LINK of one board (CN2) to the STM32F100RBT6B MCU on the other.
Edit:
That document shows a schematic diagram for the ST-Link part of the board on page 20/22.
That shows CN3, the header with the two jumpers, connects to the STM32F100RBT6B SWCLK on pin 2, and SWDIO on pin 4.
Also, pin 1 of CN3 connects to 3.3V, and pin 3 to ground.
That is the same layout as the SWD socket (CN2) pin description on page 10, Table 2.
So remove the jumpers from CN3 on both boards, then connect the SWD socket (CN2) from the board used for ST-LINK to the CN3 socket of the 'target' development board.
Edit 2:
Based on the schematic on page 22, Figure 14, the SWD sockets pin 1 is not connected to power, so the target needs to be powered too. This enables all 4 pins of the SWD (CN2) header to be connected to the 4 pins of CN2, which makes sense (easy to connect).
gbulmer,
Yes, it works after I connect pin1 and pin3 to 3.3v and gnd, respectively!
Thank you very much for your help!!
There is an answer to a question about connecting Maple-STM32VLDiscovery. From the site http://sdizdarevic.com/post/41634655034/maple-ide-with-stm32-vl-discovery you can free download the package Maple-0011 supports programming via ST-Link STM32VLDiscovery for Windows. Its work!
My question. Can anyone port this distribution on the Maple-0012?
I hope that the post of the French language will be deleted, as not related to the topic of discussion.
Because there is no answer to my question, I rephrase it.
Can Maple-authors add support for programming ST-Link by analogy with the project http://sdizdarevic.com/post/41634655034/maple-ide-with-stm32-vl-discovery ? That would be the best solution for Maple-0013.
You must log in to post.