Page 1 of 1

Errors when generate HEX

Posted: Fri Jan 19, 2018 3:54 pm
by jojo31
Hello

I writed a basic program with LCD i2c.

No problem with simulation but when I tried to generate the HEX file, I have several errors
Errors.JPG
Errors.JPG (104.82 KiB) Viewed 2251 times
Could you have an idea about theses problems and how to resolve ?

Thnak you very much

Best regards

Re: Errors when generate HEX

Posted: Fri Jan 19, 2018 4:16 pm
by LeighM
Thanks for the project file.
Works on my installation.
Are you up to date with Flowcode?
and subsequent patches
http://www.matrixtsl.com/mmforums/viewt ... 63&t=19743

Re: Errors when generate HEX

Posted: Fri Jan 19, 2018 4:33 pm
by Benj
Confirmed working for me too. As a quick workaround you can do this to solve the problem.

Click View -> Component Debugger

Tick the Expose full component tree tick box.

Use the drop down at the top of the properties window to select the LCD component inside the lcd_I2C2 component.

Set all the available pin properties to valid pins.

This in-built component is only used for simulation but if the pins are left unconnected then it generates the errors you're seeing during compilation. In the latest component file these pins are auto set to match the top level SDA pin.

Remember to untick the expose component tree tick box when you're done.

Re: Errors when generate HEX

Posted: Fri Jan 19, 2018 10:18 pm
by jojo31
Now It's better because I have updated Flowcode and I have only some warnings.
HEX file is generated.
version.JPG
version.JPG (14.61 KiB) Viewed 2234 times
Capture.JPG
Capture.JPG (69.02 KiB) Viewed 2234 times
Thank you very much for your help.