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

Programming of nordic thingy:52

Yesterday, I upload the thingy sdk v2.1.0 in keil uVision5 and rebuild it. After rebuild, it showed one error namely "fatal error" due to the large size(122kb). please suggest how can i rectify this error or can i comment down some functions or remove some files of some sensors and keep whatever feature(sensor) i required to reduce the size of the program? If yes, then how to proceed..?

Parents
  • Hi!

    The free version of KEIL has got a maximum code size limit of 32kb.

    To reduce and optimize the Thingy FW down to that size without loosing functionality isn't going to be possible.

    can i comment down some functions or remove some files of some sensors and keep whatever feature(sensor) i required to reduce the size of the program?

    What sensors or features is it that you require?

    Best regards,
    Joakim.

  • Sir, today i run the keil as an administrator and successful to get the 7 day trial professional version.

    Now, the fatal error is not coming and thingy sdk programme is rebuild successfully..I make some changes in programme such as now if the button of thingy 52 is pressed it come as "released" on the nordic thingy 52 app and upon released it come as "pressed" and programmed it. It works successfully. I am also able to alternate the colour (for ex- red to green or green to red etc) and also able to change the intensity of l.e.d's by changing in the programme. I am able to do this changes and trying to do some more experiments..

    My ultimate target is to programme the thingy in such a way so that we can set a threshold eCO2 value and when a person blows on the thingy, if the eCO2 value crosses that threshold value, the led will glow and if don't cross the the threshold value, it will not glow. So for this, i think we need to make changes in environment sensor program or CCS811(gas sensor)  driver program..kindly help me to do this.

  • Hi!

    I guess that should be possible to acheive.

    I would suggest that you study the Thingy:52 FW and find out where the sensor data for the CCS811 is returned.
    Once you have the value from the gas sensor you should be able to perform or not perform a task in relation to the threshhold value.

    Cheers,
    Joakim.

Reply Children
No Data
Related