Hi All,
I have a been fighting with mikroE pressure click 4 example on mikroC pro and Necto.
only really interested in mikro C pro ARM just now
MC pro 6.2.0 with license
EasyMx PRO v7 with either STM32F107VG or STM32F407VG (tried to compile for both)
see next post for the rest...
pressure 4 click example wont build
-
- Posts: 2780
- Joined: 25 Dec 2008 15:22
- Location: Scotland
pressure 4 click example wont build
Best Regards
Mince
Mince
-
- Posts: 2780
- Joined: 25 Dec 2008 15:22
- Location: Scotland
Re: pressure 4 click example wont build
Hi,
Please add a path to these source files in the Edit Project Paths menu, usually it is this path :
\mikroC PRO for ARM\Packages\mikroBUS BDF API\Uses\
Regards,
Filip.
Please add a path to these source files in the Edit Project Paths menu, usually it is this path :
\mikroC PRO for ARM\Packages\mikroBUS BDF API\Uses\
Regards,
Filip.
-
- Posts: 2780
- Joined: 25 Dec 2008 15:22
- Location: Scotland
Re: pressure 4 click example wont build
Thank you Filip,
super fast response and accurate.
super fast response and accurate.
Best Regards
Mince
Mince
-
- Posts: 2780
- Joined: 25 Dec 2008 15:22
- Location: Scotland
Re: pressure 4 click example wont build
joy is short lived.
as the library is closed i cant debug very far (without going to ASM)
following the flow, i can see that I2C communication with the BMP280 is good, otherwise it would fail at pressure4_init.
However it is obviously blocked somewhere when trying to collect the Temperature...
can't debug into "pressure4_getPressure" as its a closed library.
swap temperature and pressure (pressure is not blocking) around, i then get a pressure value which i assume is some dummy value as it is not correct and doesn't change with pressure.
So on the surface it looks like the I2C hardware is good (passed pressure4_init), but there is something wrong with library, either device register address locations maybe. I also assume get pressure has a better handler and fills (calculates) in a dummy value "794.0636" and does not cause an I2C block.
Edit: Actually it is not correct to think the library is at fault... it's been downloaded 2792 times! nothing would last that long if it was broken.
https://libstock.mikroe.com/projects/vi ... re-4-click
as the library is closed i cant debug very far (without going to ASM)
following the flow, i can see that I2C communication with the BMP280 is good, otherwise it would fail at pressure4_init.
However it is obviously blocked somewhere when trying to collect the Temperature...
can't debug into "pressure4_getPressure" as its a closed library.
swap temperature and pressure (pressure is not blocking) around, i then get a pressure value which i assume is some dummy value as it is not correct and doesn't change with pressure.
So on the surface it looks like the I2C hardware is good (passed pressure4_init), but there is something wrong with library, either device register address locations maybe. I also assume get pressure has a better handler and fills (calculates) in a dummy value "794.0636" and does not cause an I2C block.
Edit: Actually it is not correct to think the library is at fault... it's been downloaded 2792 times! nothing would last that long if it was broken.
https://libstock.mikroe.com/projects/vi ... re-4-click
Best Regards
Mince
Mince
-
- Posts: 2780
- Joined: 25 Dec 2008 15:22
- Location: Scotland
Re: pressure 4 click example wont build
ran the weather click example (albeit for a BME280, register map is the same for Temp and Pressure)
I get readings now, the pressure is too high (this will just be math) but at least it reacts to pressure change and the temp is VERY high (again this will just be math) but also reacts to change.
This points me back at the BMP280 library!
I get readings now, the pressure is too high (this will just be math) but at least it reacts to pressure change and the temp is VERY high (again this will just be math) but also reacts to change.
This points me back at the BMP280 library!
Best Regards
Mince
Mince
Re: pressure 4 click example wont build
Hi,
I'm attaching Pressure 4 library, maybe it will be of assistance to see what is going on.
Regards,
Filip.
I'm attaching Pressure 4 library, maybe it will be of assistance to see what is going on.
Regards,
Filip.
- Attachments
-
- Pressure_4_Click-master-SW-library.zip
- (50.29 KiB) Downloaded 33 times
-
- Posts: 2780
- Joined: 25 Dec 2008 15:22
- Location: Scotland