Page 2 of 3

Re: How to Compiling CF's FW on win7 !

Posted: Fri May 31, 2013 5:26 am
by smokedasphalt
gl516 wrote:What's this " Mercurial"?
===================
I don't have to install this in my PC. Can you provide a download links for me , I will be installed on Windows 7....
http://mercurial.selenic.com/

Re: How to Compiling CF's FW on win7 !

Posted: Fri May 31, 2013 5:27 am
by gl516
Have you installed Mercurial? Make sure it is in your PATH. Then clone the firmware repository using hg clone URL. (Refer to my reply to JoshLillie in my previous comment.) Once you have the repository, cd into it and then run make CLOAD=1
===============================
I understand you mean, if the Mercurial installation. We will be able to pass under the MSDOS “hg clone” CF‘s source URL command to download. But I have been in the Bitbucket download the source package! (bitcraze - crazyflie - the firmware - e6f9fbdc42b3.zip)... The package file by default ? Or the source package placed in the right path?

Re: How to Compiling CF's FW on win7 !

Posted: Fri May 31, 2013 7:05 am
by smokedasphalt
gl516 wrote:(bitcraze - crazyflie - the firmware - e6f9fbdc42b3.zip)
No, don't download the zip. Just go to the bitbucket crazyflie firmware page and copy the url. The url for Bitcraze's firmware is
https://bitbucket.org/bitcraze/crazyflie-firmware . Hence, you need to use

Code: Select all

hg clone https://bitbucket.org/bitcraze/crazyflie-firmware
Another way to achieve the same is to have a look at the top of Bitbucket page, you will see a button called Clone. Click that, copy what it shows you and paste it in your command prompt (MSDOS).

Re: How to Compiling CF's FW on win7 !

Posted: Sat Jun 01, 2013 3:42 am
by JoshLillie
smokedasphalt wrote:@JoshLillie - Have you installed Mercurial for windows? Is it in your PATH? (Type hg in the command prompt and you should see some output instead of an error.) Once that is done, clone whichever repository you want by running hg clone URL after replacing URL with the link to the repository. (for example, if you want to clone the firmware by Bitcraze, the command looks like hg clone https://bitbucket.org/bitcraze/crazyflie-firmware)
Sweet! Think I got it. In the words of Borat, "Great Success!!"

Code: Select all

C:\CF\crazyflie-firmware>make
  AS    startup_stm32f10x_md.o
  CC    list.o
  CC    tasks.o
  CC    queue.o
  CC    timers.o
  CC    heap_4.o
  CC    port.o
  CC    misc.o
  CC    stm32f10x_adc.o
  CC    stm32f10x_dbgmcu.o
  CC    stm32f10x_dma.o
  CC    stm32f10x_exti.o
  CC    stm32f10x_flash.o
  CC    stm32f10x_gpio.o
  CC    stm32f10x_i2c.o
  CC    stm32f10x_iwdg.o
  CC    stm32f10x_rcc.o
  CC    stm32f10x_spi.o
  CC    stm32f10x_tim.o
  CC    stm32f10x_usart.o
  CC    main.o
  CC    led.o
  CC    uart.o
  CC    adc.o
  CC    nrf24l01.o
  CC    exti.o
  CC    nvic.o
  CC    motors.o
  CC    mpu6050.o
  CC    i2cdev.o
  CC    i2croutines.o
  CC    hmc5883l.o
  CC    ms5611.o
  CC    crtp.o
  CC    ledseq.o
  CC    freeRTOSdebug.o
  CC    imu.o
  CC    pm.o
  CC    radiolink.o
  CC    eskylink.o
  CC    system.o
  CC    comm.o
  CC    console.o
  CC    pid.o
  CC    crtpservice.o
  CC    param.o
  CC    commander.o
  CC    controller.o
  CC    sensfusion6.o
  CC    stabilizer.o
  CC    log.o
  CC    worker.o
  CC    filter.o
  CC    cpuid.o
  CC    cfassert.o
  CC    configblock.o
  CC    eprintf.o
  CC    crc.o
  CC    fp16.o
  CC    debug.o
  VTMPL version.c
  CC    version.o
  LD    cflie.elf
  COPY  cflie.hex
  COPY  cflie.bin
CrazyLoader build!
   text    data     bss     dec     hex filename
  48060     400   19344   67804   108dc cflie.elf
rm version.c

C:\CF\crazyflie-firmware>dir
 Volume in drive C has no label.
 Volume Serial Number is 94A9-BE19

 Directory of C:\CF\crazyflie-firmware

05/31/2013  10:38 PM    <DIR>          .
05/31/2013  10:38 PM    <DIR>          ..
05/31/2013  10:37 PM    <DIR>          .hg
05/31/2013  10:36 PM                97 .hgignore
05/31/2013  10:36 PM               388 .hgtags
05/31/2013  10:37 PM    <DIR>          bin
05/31/2013  10:38 PM            48,464 cflie.bin
05/31/2013  10:38 PM           941,467 cflie.elf
05/31/2013  10:38 PM           136,340 cflie.hex
05/31/2013  10:38 PM           628,478 cflie.map
05/31/2013  10:36 PM    <DIR>          config
05/31/2013  10:36 PM    <DIR>          drivers
05/31/2013  10:36 PM    <DIR>          hal
05/31/2013  10:36 PM    <DIR>          init
05/31/2013  10:36 PM    <DIR>          lib
05/31/2013  10:36 PM             4,957 Makefile
05/31/2013  10:36 PM    <DIR>          modules
05/31/2013  10:36 PM             1,736 README
05/31/2013  10:36 PM    <DIR>          scripts
05/31/2013  10:36 PM    <DIR>          utils
               8 File(s)      1,761,927 bytes
              12 Dir(s)  29,958,193,152 bytes free

C:\CF\crazyflie-firmware>

Re: How to Compiling CF's FW on win7 !

Posted: Sat Jun 01, 2013 4:22 am
by smokedasphalt
Sweet! Think I got it. In the words of Borat, "Great Success!!"
:D

Re: How to Compiling CF's FW on win7 !

Posted: Mon Jun 03, 2013 12:50 am
by gl516
smokedasphalt wrote:
gl516 wrote:(bitcraze - crazyflie - the firmware - e6f9fbdc42b3.zip)
No, don't download the zip. Just go to the bitbucket crazyflie firmware page and copy the url. The url for Bitcraze's firmware is
https://bitbucket.org/bitcraze/crazyflie-firmware . Hence, you need to use

Code: Select all

hg clone https://bitbucket.org/bitcraze/crazyflie-firmware
Another way to achieve the same is to have a look at the top of Bitbucket page, you will see a button called Clone. Click that, copy what it shows you and paste it in your command prompt (MSDOS).
=====================
good news . okay ! i will try to do it ! TKS to guys !!!! :P

Re: How to Compiling CF's FW on win7 !

Posted: Mon Jun 03, 2013 2:46 am
by gl516
smokedasphalt wrote:
Sweet! Think I got it. In the words of Borat, "Great Success!!"
:D
================
sorry .. I still didn't succeed, "hg clone "on my Win7 MSDOS is shown as "not internal or external command..." (I have already downloaded the Mercurial 2.6.2 Inno Setup installer - x86 Windows and installed it.) But I don't know whether to install right???

Re: How to Compiling CF's FW on win7 !

Posted: Mon Jun 03, 2013 3:04 am
by smokedasphalt
gl516 wrote: sorry .. I still didn't succeed, "hg clone "on my Win7 MSDOS is shown as "not internal or external command..." (I have already downloaded the Mercurial 2.6.2 Inno Setup installer - x86 Windows and installed it.) But I don't know whether to install right???

Hi, during the last step of the Mercurial installation, did you check the "Add the installation path to the search path" checkbox? If yes, then restart your command prompt and try to run hg again. If no, then go to the directory where you installed Mercurial, and look for an executable called add_path. Run it, restart your command prompt and try running hg again.

Re: How to Compiling CF's FW on win7 !

Posted: Mon Jun 03, 2013 3:29 am
by gl516
smokedasphalt wrote:
gl516 wrote: sorry .. I still didn't succeed, "hg clone "on my Win7 MSDOS is shown as "not internal or external command..." (I have already downloaded the Mercurial 2.6.2 Inno Setup installer - x86 Windows and installed it.) But I don't know whether to install right???

Hi, during the last step of the Mercurial installation, did you check the "Add the installation path to the search path" checkbox? If yes, then restart your command prompt and try to run hg again. If no, then go to the directory where you installed Mercurial, and look for an executable called add_path. Run it, restart your command prompt and try running hg again.
=========================
My hg The installation path is C: \ \ Program files \ mercuiral \...
The diagram below
hg.jpg
Good news,,, I think I have already download success! But I still can't complete the firmware compile. Tips!

Re: How to Compiling CF's FW on win7 !

Posted: Mon Jun 03, 2013 3:43 am
by smokedasphalt
Have you installed python2.7? Can you run the command python in your command prompt? If you can't, then please install python2.7 from here http://python.org/download/ and follow the instructions to set up the pythonpath from here http://www.anthonydebarros.com/2011/10/ ... windows-7/