cancel
Showing results for 
Search instead for 
Did you mean: 

Using EEprom AT24C256 in TouchGFX not work

DTrem.1
Associate II

Hi Everyone,

i´m new to TouchGFX and have some problems implementing a library for AT24C256 EEPROM.

Under the following link I found a library that someone makes available. I would like to use this and have integrated it into STMCubeIDE accordingly. If I want to call up the functions in the Screen1View, I get the error that there is no reference to this function. I suspect that I have packed the header file and the source file in the wrong folder. Where must even integrated files be stored correctly so that touchgfx can find them?

Thanks for help.

Best

Dominik

5 REPLIES 5

Error from​ compiler or linker?

If from linker make sure the library source files are visible in tree view.

Watch also for C/C++ naming and declaration expectations. ​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
DTrem.1
Associate II

Hi,

yeah it´s from linker, but my source file is visible in my tree view...

0693W00000D0DglQAF.jpg0693W00000D0DgvQAF.jpg 0693W00000D0DimQAF.jpgI´m a little bit confused about this problem :\

Use extern "C" declarations in your include file when playing mixed source types. Watch CPP name mangling.​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
DTrem.1
Associate II

This solves my problem. Have forgotten the declaration totally.... :grinning_face_with_sweat:

Thank you very much, you save me a lot of time!

DTrem.1
Associate II

I've tried it for 2 days now, unfortunately the code doesn't work somehow. It can be compiled and loaded onto the stm, but either the writing process to the eeprom does not seem to work or the reading process. I don't know what to do next because I tried the code on an arduino and everything works fine there.

on the side of the programmer who wrote the library does the code work on a nucleo, can it be that touchgfx causes problems here?

Does anyone have an idea what is wrong?