Author Topic: Help on ARM Cortex-M3 Development Tools / IDE  (Read 7423 times)

0 Members and 1 Guest are viewing this topic.

Offline joelby

  • Frequent Contributor
  • **
  • Posts: 624
Re: Help on ARM Cortex-M3 Development Tools / IDE
« Reply #15 on: July 03, 2011, 09:35:55 PM »
There's an interesting list of ARM JTAG interfaces here: http://www.sharebrained.com/2011/07/01/open-jtag-interfaces/

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 5462
  • Country: my
  • reassessing directives...
Re: Help on ARM Cortex-M3 Development Tools / IDE
« Reply #16 on: July 12, 2011, 04:44:25 AM »
Let me know how the clone works out.
i just got my jlink prorammer and usb blaster. took pictures below, installed the segger software, it seems to detect this clone. ask to upgrade the firmware should i proceed? i'm afraid it will crash? havent program anything yet, need to learn first. :P even the segger name on pcb is cloned
i'll come back to this thread to study later. thanks everybody for input so far. i'll update when i got something programmed.
« Last Edit: July 12, 2011, 04:51:05 AM by Mechatrommer »

Offline PsI-On

  • Contributor
  • Posts: 25
Re: Help on ARM Cortex-M3 Development Tools / IDE
« Reply #17 on: July 12, 2011, 07:34:02 AM »
My jlink clone updated the firmware from v7 to v8 with no problems...

PsI

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 5462
  • Country: my
  • reassessing directives...
Re: Help on ARM Cortex-M3 Development Tools / IDE
« Reply #18 on: July 02, 2012, 01:38:09 AM »
ok resurrecting my old thread... now i got this CooCox CoIDE suggested by andyg in another thread. downloaded the devProKit for ARM toolchain earlier. set it in CoIDE and it seemed to just work without much hassle. but it only just the beginning since i only create Hello Project, it automated creating this arm boot startup code, CooCox OS, C library etc, i dont have any idea. anyway, but cool!... but anyway, i'm asking you arm developers guys... what do you use to develop your ARM software? please suggest both the IDE and toochain. thanks..

fyi: i downloaded few "clusters" of the sdk/toolchain etc, but i'm having a hard time putting them together with netbean, eclipse and programmers notepad.
for eg, library that came with my dev board kit... HY-MiniSTM32V 2011.1.5.zip

F:\HY-MiniSTM32V 2011.1.5\RTC+USART
F:\HY-MiniSTM32V 2011.1.5\SysTick
F:\HY-MiniSTM32V 2011.1.5\Temp
F:\HY-MiniSTM32V 2011.1.5\TIM
F:\HY-MiniSTM32V 2011.1.5\TouchPanel
F:\HY-MiniSTM32V 2011.1.5\uCOSII2.91
F:\HY-MiniSTM32V 2011.1.5\uCOSII2.91+UCGUI3.90A(FSMC)
F:\HY-MiniSTM32V 2011.1.5\USART
F:\HY-MiniSTM32V 2011.1.5\USB-Mass_Storage-SD Card
F:\HY-MiniSTM32V 2011.1.5\WWDG
F:\HY-MiniSTM32V 2011.1.5\EXTI+USART
F:\HY-MiniSTM32V 2011.1.5\FATFS V0.08A-SD Card
F:\HY-MiniSTM32V 2011.1.5\Flash
F:\HY-MiniSTM32V 2011.1.5\FreeRTOSV6.1.0
F:\HY-MiniSTM32V 2011.1.5\GLCD
F:\HY-MiniSTM32V 2011.1.5\GPIO
F:\HY-MiniSTM32V 2011.1.5\ID
F:\HY-MiniSTM32V 2011.1.5\IWDG
F:\HY-MiniSTM32V 2011.1.5\PWR
(no idea where to start)

devprokit(arm)
nuttx-6.18 rtos

please advice and guide on ARM programming. thanks.

Offline 0xdeadbeef

  • Frequent Contributor
  • **
  • Posts: 341
  • Country: aq
Re: Help on ARM Cortex-M3 Development Tools / IDE
« Reply #19 on: July 02, 2012, 04:17:34 AM »
I'm using CooCox (1.4.2) with the official Arm GCC 4.6 toolchain (arm-none-eabi-gcc-4_6-20111208) for development with an NXP LPC1768. In earlier versions there were bugs which made it hard to impossible to debug with J-Link and I therefore used other toolchains, but currently it works pretty well.
I don't use CoOs since I don't need it and it's said to not work for any optimization level other than -O0. Anyway, a time based scheduler with some priority wrapping is good enough for me. Talking of code optimization, the created code is pretty bad even at higher optimization levels, yet with higher levels, debugging becomes more or less a pain in the @ss.
The CooCox libraries are a good base to start, but they don't seem to have a common architecture and generally I prefer interfaces as lean as possible. So write my own mini libraries which tend to sacrifice abstraction for performance.
As a side note, I also used the Keil uVision to fix issues in the USB bootloader. Especially the debugger is quite a bit better than that of CooCox, but the code limit makes it unusable for even medium projects.

Offline calin

  • Regular Contributor
  • *
  • Posts: 130
  • Country: us
Re: Help on ARM Cortex-M3 Development Tools / IDE
« Reply #20 on: July 04, 2012, 01:34:14 PM »
I probably have the same  JLink clone .. works like a charm, upgraded firmware .. and using it under Linux.

BTW, if you want an STLink 2 cheap0 grap one of the STM32 Discovery boards from ST. They even gave them away for free (in US and Canada true) but they also sell them for something like 7$ a piece. Look here: http://www.st.com/internet/evalboard/product/253215.jsp 

You get also a basic DEV board with an Cortex M0 (STM32F0xxx) or you can go "bad" and get an Cortex M4 board

http://www.st.com/internet/evalboard/product/252419.jsp .. but that is like 14$.

From what I know StLink works only with ST chips and knows only SWD. JLink works a treat with ST mcus


Offline quint

  • Contributor
  • Posts: 28
Re: Help on ARM Cortex-M3 Development Tools / IDE
« Reply #21 on: July 04, 2012, 03:40:24 PM »

The ATM discovery boards actually work with other cortex m3 chips.  At least I've gotten them to work as programmer/debugger for lpc1343 cortex m3.  The latest builds of openOCD (v.6) support stlink v2 protocol so you can use, for example, the stm32f0 discovery board as a cheap programmer right out of the box.  See this post for info:
https://github.com/mossmann/hackrf/wiki/LPC43xx-Debugging

Offline calin

  • Regular Contributor
  • *
  • Posts: 130
  • Country: us
Re: Help on ARM Cortex-M3 Development Tools / IDE
« Reply #22 on: July 05, 2012, 03:03:21 PM »
Nice .. actually it does make sense to work the STLink uses SWD which is standard  (not JTAG). Just that the STLink USB protocol was not known. I had no idea stlink was added in OpenOCD ... I knew only about this project  https://github.com/texane/stlink. I got this one working with an STM32F discovery board (cortex M4) .. able to program and debug. But OpenOCD is much better .. nice find.

Still JLink is a really nice tool to have around if you work with ARM stuff. I love it, fast, so far reliable. The thing works a treat under linux .. coupled with Linaro-s GCC toolchain builds for arm you get a pretty decent "development environment" right there.
« Last Edit: July 05, 2012, 03:07:48 PM by calin »

Offline electroguy

  • Regular Contributor
  • *
  • Posts: 78
  • Country: au
Re: Help on ARM Cortex-M3 Development Tools / IDE
« Reply #23 on: July 05, 2012, 03:12:11 PM »
has anyone tried Atollic?
http://www.atollic.com/index.php/targets/armtargetsupport

just wondering how it compares to coocox?

unfortunately the free version has a 32kb limitation i think?
There are 10 types of people that understand binary, those that do and those that don't!

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 5462
  • Country: my
  • reassessing directives...
Re: Help on ARM Cortex-M3 Development Tools / IDE
« Reply #24 on: July 06, 2012, 02:47:05 AM »
has anyone tried Atollic?
$2595? you must be kidding a person like me. now i got a rough picture of what the keil arm tool cost like, as i havent got a quotation from them, keep asking bullshit questions and countless of broken download from their site. thanks for the advice anyway, i'll give it a try... downloading...

Offline olsenn

  • Frequent Contributor
  • **
  • Posts: 986
Re: Help on ARM Cortex-M3 Development Tools / IDE
« Reply #25 on: July 06, 2012, 03:04:52 AM »
That SEGGER J-Link doesn't look like a clone. Are you sure it isn't an official product? I purchased the J-Link-EDU from digikey but never had a chance to use it yet.

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 5462
  • Country: my
  • reassessing directives...
Re: Help on ARM Cortex-M3 Development Tools / IDE
« Reply #26 on: July 06, 2012, 03:37:04 AM »
Quote
Are you sure it isn't an official product?
if this question is directed at me then. i'm pretty sure, since (1) i got this from china, (2) cheap and (3) the seller admitted it is a clone. as i dont have any "hardground" toolchain and project yet, so this unit is still "untested" other than detection test by segger jlink uploader SW iirc months ago.

i'll be glad olsenn if you can make teardown of you original jlink-edu and post pictures here or somewhere else as you like.

« Last Edit: July 06, 2012, 03:40:59 AM by Mechatrommer »

Offline olsenn

  • Frequent Contributor
  • **
  • Posts: 986
Re: Help on ARM Cortex-M3 Development Tools / IDE
« Reply #27 on: July 06, 2012, 04:30:31 AM »
Quote
i'll be glad olsenn if you can make teardown of you original jlink-edu and post pictures here or somewhere else as you like.


There are pictures on Google. The one you show there is identical to the real ones. Even the ones sold to other companies like Atmel (SAM-ICE) are identical in terms of layout. Have a look.

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 5462
  • Country: my
  • reassessing directives...
Re: Help on ARM Cortex-M3 Development Tools / IDE
« Reply #28 on: July 06, 2012, 02:16:50 PM »
has anyone tried Atollic?
$2595? you must be kidding a person like me. now i got a rough picture of what the keil arm tool cost like, as i havent got a quotation from them, keep asking bullshit questions and countless of broken download from their site. thanks for the advice anyway, i'll give it a try... downloading...
really, someone should justify the $2K+ for something similar looking as CooCox, eclipse or netbeans (my 1st impression). if they dont start learning what proper "MDI" is, i believe sooner or later they will be out of business or find another hobby.

@olsenn: a link or keyword might be usefull. i tried but my "keyword" didnt give me any usefull picture, except this, which still not sure original or clone (i got more ram (or level shifter?) in the chip) http://www.jstuber.net/lego/nxt-programming/jlink-internal-picture.html (click the thumbnail for bigger picture)
« Last Edit: July 06, 2012, 02:20:18 PM by Mechatrommer »


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf