Closed pongchileong closed 4 months ago
Hey @pongchileong,
Recently there is a release of new version(1.1.0 ) of"CY8CKIT-028-SENSE" library. I tried recreating your issue from my end, I did not face any build error while recreating.
The following conditions were checked with the code you provided:
I would suggest you to retry building your project using the steps mentioned in "CY8CKIT-028-SENSE shield support library" and also try using the latest version of "CY8CKIT-028-SENSE" and "emwin" library in your project.
If your build error prevails then please do attach the screenshots of build error or the error log.
Hope this resolves your issue.
Thanks and Regards, Daniyal Shaikh
Hi Daniyal Shaikh,
I tried the new release and example code and it works as expected.
Thanks for following up.
Regards, Pong Chi Leong
Prerequisites
Can you reproduce the problem reliably? Yes Did you check current release notes for known issues? Yes If this is not the latest release, have you checked newer releases? It is latest release Description: Example code is unable to build as per instructions in link. A clear and concise description of what the bug is. Need to add emWIN library and changes to Makefile Steps to Reproduce: Follow instructions in link.
Expected Result:
Actual Result: Failed to build
Frequency (1/1, 1/50, 1/100): NA
Build/Commit: NA Please specify the release, like 1.4.1. If there is no release, give us the commit for the code you used.
Target:
The chip or kit you are working with CY8cKIT-062S2-43012 + CY8CKIT-028-SENSE Host OS and Version:
MacOS, Windows, Linux Windows Compiler: MTB 3.1 Include the version!
Environment
Provide the context surrounding this problem. Perhaps an IDE, a debug probe, an RTOS, etc. (and versions)
Add CY8CKIT-028-SENSE and emWIN library
Add to Makefile COMPONENTS+=EMWIN_NOSNTS LDFLAGS+=-u _printf_float
Changes to original main.c /***
/***
include "cyhal.h"
include "cybsp.h"
include "cy8ckit_028_sense.h"
include "GUI.h"
include
/**
/***
/***
/***
/***
***/ int main(void) { cy_rslt_t result; cyhal_i2c_t i2c_obj; char buf[50]; // xensiv_dps3xx_t pressure_sensor; float pressure, temperature;
cyhal_i2c_cfg_t i2c_cfg = { .is_slave = false, .address = 0, .frequencyhal_hz = 400000 };
if defined (CY_DEVICE_SECURE)
endif
// GUI_DispString("Pressure: %f, Temp: %f", pressure, temperature); GUI_GotoXY(0,0); sprintf(buf,"Pressure: %4.2f",pressure); GUI_DispString(buf); GUI_GotoXY(0,10); sprintf(buf,"Temp: %2.2f",temperature); GUI_DispString(buf);
}
/ [] END OF FILE /
THANKS!