Jump to content


Photo
- - - - -

Newbie MIOS32 toolchain question


  • Please log in to reply
7 replies to this topic

#1 Lee

Lee

    MIDIbox Newbie

  • Programmer
  • Pip
  • 81 posts

Posted 12 October 2011 - 18:19

Hi everyone,

I've been trying to get my toolchain install sorted, but running up against a few snags. I'm not sure if all the wiki info is up to date, and not been able to find answers searching the forums so please go easy if the answers are out there! I've mainly been following the guide at http://www.midibox.o...oolchain_core

I'm running Windows 7 64 bit and my target board is the LPC17.

1. MinGW errors - it seems it doesn't play nicely with Win7 64 bit and the postinstaller script dies with a memory allocation error. However MinGW does seem to work afterwards - should I be concerned?

2. Environment variables - the guide linked above says to configure this:

set MIOS32_GCC_PREFIX=arm-none-eabi
set MIOS32_FAMILY=STM32F10x
set MIOS32_PROCESSOR=STM32F103RE
set MIOS32_BOARD=MBHP_CORE_STM32
set MIOS32_LCD=universal

I'd just like to check that these are all appropriate if my target build is the LPC17? Or will it be ok with having the same core CPU? Is there anything that needs setting up as LPC17 in order for compiled in libraries to build the right target?

3. Downloading from WebSVN. I can't seem to download any of the content from the WebSVN - I just get 35 bytes of nothing downloading. Could someone explain whether this is normal and I'll have to install the full SVN client end?

I'm just trying to pull down some of the tutorials and supporting libraries in order to try compiling examples to test everything. I hope to get this done while i'm waiting for my hardware parts to arrive! (I've got the LPCExpresso and bootloaded it ok so far...)

Many thanks guys

Lee

#2 Lee

Lee

    MIDIbox Newbie

  • Programmer
  • Pip
  • 81 posts

Posted 12 October 2011 - 18:55

Ok - ignore point 3, i've got Tortoise working away exporting the repo now...

Would still appreciate advice on points 1 and 2 though.

Thanks!

#3 Hawkeye

Hawkeye

    MIDIbox Guru

  • Frequent Writer
  • PipPipPipPip
  • 1,432 posts
  • LocationGermany, Munich

Posted 12 October 2011 - 19:17

Hi & welcome :)

regarding 1) if everything else works, don“t worry

2) you need to adjust for LPC17... these settings are for the old STM32 core... here are my environment variables for reference...

export MIOS32_FAMILY=LPC17xx
export MIOS32_PROCESSOR=LPC1768
export MIOS32_BOARD=LPCXPRESSO

Greets!
Peter

#4 Lee

Lee

    MIDIbox Newbie

  • Programmer
  • Pip
  • 81 posts

Posted 12 October 2011 - 19:21

Thanks Peter!

After some guesswork I set the environment vars to:

MIOS32_BOARD=MBHP_CORE_LPC17
MIOS32_FAMILY=LPC17xx
MIOS32_GCC_PREFIX=arm-none-eabi
MIOS32_LCD=universal
MIOS32_PROCESSOR=LPC1769

.. and had a successful make (tried one of the tutorial apps). No errors! I'm not sure how critical the MIOS32_BOARD value is?

I now have to wait until my parts arrive before I can try a download, but I'm very excited.

Now off to post my other question in the apps forum!

Many thanks

Lee

#5 Hawkeye

Hawkeye

    MIDIbox Guru

  • Frequent Writer
  • PipPipPipPip
  • 1,432 posts
  • LocationGermany, Munich

Posted 12 October 2011 - 19:31

Ah, interesting... me thinks I should update mine - last time I compiled, everything was fine :-)
Have fun coding for MIDIbox - it is really nice!

Greets,
Peter

#6 Cubess95

Cubess95

    MIDIbox Newbie

  • Members
  • Pip
  • 12 posts

Posted 03 May 2012 - 14:52

Hi, I'm also doing a project on LPC1769.
I have installed the toolchain as described here : http://www.midibox.o...oolchain_core

But I still have errors when i try the make command in the 1st tutorial folder (001_forwarding_midi). Here is a screen :
Posted Image

What I have done wrong ?

Maybe I have to type
"set MIOS32_PATH=/D/mios32/trunk
set MIOS32_BIN_PATH=/D/mios32/trunk/bin"
and
"MIOS32_BOARD=MBHP_CORE_LPC17
MIOS32_FAMILY=LPC17xx
MIOS32_GCC_PREFIX=arm-none-eabi
MIOS32_LCD=universal
MIOS32_PROCESSOR=LPC1769"
in a particular place ?
I have written it just after typing cmd in the command window, so the actual PATH was C:\Users\Cubess. Maybe the previous commands (set MIOS32, etc) don't have to be typed here ?

Sorry I'm also a Newbie.

Thx,

Cubess

#7 Cubess95

Cubess95

    MIDIbox Newbie

  • Members
  • Pip
  • 12 posts

Posted 03 May 2012 - 15:19

I have changed some things, add ":" in the two first command C:/.../mios32/trunk and C:/..../mios32/trunk/bin.

Now i have this :
C:/Users/.../mios32/trunk/include/makefile/common.mk:126: *** multiple target patterns. Stop.


Restart everything to the begining and now i have this :

rm -f project.hex
Creating object file for app.c
make: arm-none-aebi-gcc: Command not found
make: *** [project_build/app.o] Error 127

=(

Edited by Cubess95, 03 May 2012 - 17:56.


#8 Cubess95

Cubess95

    MIDIbox Newbie

  • Members
  • Pip
  • 12 posts

Posted 18 May 2012 - 16:23

Sorry for reposting, I just wanted to say that I finally found my problem ;)
Have a good day.

Cubess




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users