This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

division by zero

hi

i downloaded (Nordic-Thingy52-FW-master)

it had many problem for compiling that i had to remove all c files and header file and install them again

all the errors solved but one is still remain

error is : ..\..\..\libs\sr3_audio\drv_audio_pdm.c(54): error:  #39: division by zero

i use keil 5.24.2

i am thankful if someone can help me solve that

Parents Reply Children
  • 1- yes i downloaded that

    2- i use keil to compile

    i could compile project without error and i uploaded on thingy52 but it doesnt work

    this is setting of my project

    3-Nordic-Thingy52-FW-master\project\pca20020_s132\arm5_no_packs

    i use this project

    what is mistake?

  • Hi.

    I asked if you did the prerequisitions listed on GitHub before you installed?

    Did you do the following:
        
    1) Install Git v2.xx.xx, Available from https://git-scm.com/. Use default configurations.

    2) Install GNU ARM embedded toolchain v4.9-2015q3. Available from launchpad.net/.../4.9-2015-q3-update. Use default configurations.
        
    3) Install Make must and put in the system path. For example gnuwin32.sourceforge.net/.../make.htm.
     
    4) Create a user at https://www.invensense.com/. Under "Downloads" download "Embedded MotionDriver 6.12". Unzip the downloaded motion_driver_6.12 folder and navigate to motion_driver_6.12/mpl libraries/arm/Keil. Unzip the folder libmpllib_Keil_M4FP.zip. Copy the extracted library libmpllib.lib into <your Thingy folder>/libs/libmpllib_Keil_M4FP/. Finally, unzip /motion_driver_6.12/mpl libraries/arm/gcc4.9.3/liblibmplmpu_m4_hardfp.zip and copy the extracted library liblibmplmpu.a into the folder <your Thingy folder>/libs/liblibmplmpu_m4_hardfp/.


    You should run setup_sdk.bat after you did point 1, 2, 3, and 4.

    If it's still not working, can you please upload a zip file of your project?

    - Andreas

Related