TinyCircuits Forum

TinyCircuits Products => TinyDuino Processors & TinyShields => Topic started by: mikejauregui on June 22, 2023, 02:25:12 PM

Title: Help needed: TinyZero + TinyShield Combo Sensor - fatal error: pgmspace.h
Post by: mikejauregui on June 22, 2023, 02:25:12 PM
Hi, I hope you're all doing well.

I am new to the platform, and I am super excited to be here.

I need some help with my project, I am using the TinyZero processor and the Tiny Shield combo sensor, I have downloaded the example files but I am unable to load it to the board, the error I see on the screen is:

In file included from /Users/migueljauregui/Documents/Arduino/Temperature_Humidity_TinyShield_example2/Temperature_Humidity_TinyShield_example2.ino:21:0:
/Users/migueljauregui/Documents/Arduino/libraries/SI7021-master/SI7021.h:26:12: fatal error: pgmspace.h: No such file or directory
   #include <pgmspace.h>
            ^~~~~~~~~~~~
compilation terminated.

exit status 1

Compilation error: exit status 1

Would you please guide me in the right direction as how can I fix it.

Thanks in advance,
Mike Jauregui
Title: Re: Help needed: TinyZero + TinyShield Combo Sensor - fatal error: pgmspace.h
Post by: Jason on June 23, 2023, 10:50:03 AM
Quote from: mikejauregui on June 22, 2023, 02:25:12 PM
Hi, I hope you're all doing well.

I am new to the platform, and I am super excited to be here.

I need some help with my project, I am using the TinyZero processor and the Tiny Shield combo sensor, I have downloaded the example files but I am unable to load it to the board, the error I see on the screen is:

In file included from /Users/migueljauregui/Documents/Arduino/Temperature_Humidity_TinyShield_example2/Temperature_Humidity_TinyShield_example2.ino:21:0:
/Users/migueljauregui/Documents/Arduino/libraries/SI7021-master/SI7021.h:26:12: fatal error: pgmspace.h: No such file or directory
   #include <pgmspace.h>
            ^~~~~~~~~~~~
compilation terminated.

exit status 1

Compilation error: exit status 1

Would you please guide me in the right direction as how can I fix it.

Thanks in advance,
Mike Jauregui


Just to be sure, have you followed the steps starting from here? https://learn.tinycircuits.com/Processors/TinyZero_Setup_Tutorial/#:~:text=%27Additional%20Boards%20Manager%20URLs%27%3A%20https%3A//files.tinycircuits.com/ArduinoBoards/package_tinycircuits_index.json (https://learn.tinycircuits.com/Processors/TinyZero_Setup_Tutorial/#:~:text=%27Additional%20Boards%20Manager%20URLs%27%3A%20https%3A//files.tinycircuits.com/ArduinoBoards/package_tinycircuits_index.json)

Also, be sure to use the library download we provide: https://github.com/TinyCircuits/TinyCircuits-TinyShield-Sensor-ASD2511/raw/master/libraries/SI7021.zip (https://github.com/TinyCircuits/TinyCircuits-TinyShield-Sensor-ASD2511/raw/master/libraries/SI7021.zip) (it may be a slightly modified version).
Title: Re: Help needed: TinyZero + TinyShield Combo Sensor - fatal error: pgmspace.h
Post by: mikejauregui on June 24, 2023, 06:52:38 PM
Thanks a lot Jason, I have reinstalled the library and now it is working properly.

Cheers!
Miguel