2021-12-29 11:05 AM
Hello :)
I was doing setup from that tutorial on STM32F7508-DK:
https://www.youtube.com/watch?v=2LQpaz44Ug4&ab_channel=STMicroelectronics
I replaced ADC with I2C and make callback from Master Receive instead of ADC Callback.
void HAL_I2C_MasterRxCpltCallback (I2C_HandleTypeDef * hi2c)
{
float tab_current_temp[64];
tempValue = conversion(convtempData, tab_current_temp);
// RX Done .. Do Something!
}
Timer settings were left default.
Does anyone have any idea where is the problem?
Also, when debugging from the STM32CubeIDE following message appears:
2021-12-29 12:26 PM
You mix here and dont report what is problem.
Try start with basic create project with LCD working, then add next parts
2021-12-31 09:07 AM
@MM..1 The main problem is that if I run target in TouchGFX then the screen becomes black.
With other project it works fine, but after adding that what is in the tutorial effect is the same. I assume that it is something connected with timers, but I don't know how to change it.
I will try to do it with baby steps.
2022-01-02 06:27 PM
Hello Awe.1,
Form what I see, debugging does not seem to work. So you cannot really know why the screen is black.
This is one of the drawbacks of using F750 or H750 due to these MCUs being "flashless", meaning that the code is in external Flash.
To make debugging possible, some steps need to be performed beforehand. Unfortunately, I'm not an expert in debugging for flashless MCUs.
Additionally, I don't know what your conversion() function is doing but I hope it's not a heavy process. In fact, you should not do real calculation directly in the callback.
If you use the I2C in interrupt mode, your code should not be blocked even though it fails fetching data. However, the initialization itself can be a blocking point. Maybe your code is stuck in the I2C config.
/Alexandre