Errors when generate HEX

A forums to allow bugs and problems with Flowcode v7 to be reported and resolved.

Moderator: Benj

jojo31
Posts: 12
Joined: Sun Jan 08, 2017 1:23 pm
Been thanked: 4 times
Contact:

Errors when generate HEX

Postby jojo31 » Fri Jan 19, 2018 3:54 pm

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.83 KiB) Viewed 708 times


Could you have an idea about theses problems and how to resolve ?

Thnak you very much

Best regards
Attachments
Test_LCD.fcfx
(8.99 KiB) Downloaded 26 times
Last edited by jojo31 on Sat Jan 20, 2018 3:49 pm, edited 1 time in total.

User avatar
LeighM
Matrix Staff
Posts: 1865
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 436 times
Been thanked: 622 times
Contact:

Re: Errors when generate HEX

Postby LeighM » Fri Jan 19, 2018 4:16 pm

Thanks for the project file.
Works on my installation.
Are you up to date with Flowcode?
and subsequent patches
viewtopic.php?f=63&t=19743

User avatar
Benj
Matrix Staff
Posts: 14219
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4360 times
Been thanked: 4096 times
Contact:

Re: Errors when generate HEX

Postby Benj » Fri Jan 19, 2018 4:33 pm

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.

jojo31
Posts: 12
Joined: Sun Jan 08, 2017 1:23 pm
Been thanked: 4 times
Contact:

Re: Errors when generate HEX

Postby jojo31 » Fri Jan 19, 2018 10:18 pm

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 691 times


Capture.JPG
Capture.JPG (69.02 KiB) Viewed 691 times


Thank you very much for your help.