FC10 COMPILE ERROR FOR SENSORS COMPONENTS

For general Flowcode discussion that does not belong in the other sections.
Post Reply
SILVESTROS
Posts: 124
http://meble-kuchenne.info.pl
Joined: Tue Dec 13, 2022 9:04 pm
Has thanked: 32 times
Been thanked: 2 times

FC10 COMPILE ERROR FOR SENSORS COMPONENTS

Post by SILVESTROS »

Hello,
when I try to copmpile a code I get following error

Microchip MPLAB XC8 C Compiler V2.10
Build date: Jul 30 2019
Part Support Version: 2.10
Copyright (C) 2019 Microchip Technology Inc.
using updated 32-bit floating-point libraries; improved accuracy might increase code size
. .

(908) exit status = 1
(908) exit status = 1

Error returned from [xc8.exe]


Autoclose turned off

chip: PIC18F23K22
PROGRAMMER : PICKIT3

Also in simulation I get no sensors data ...maybe there are mistakes in the code..any help?
Attachments
PIC18F23K22-SENSORS-DATA1.fcfx
(21.25 KiB) Downloaded 246 times

mnfisher
Valued Contributor
Posts: 1630
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 142 times
Been thanked: 761 times

Re: FC10 COMPILE ERROR FOR SENSORS COMPONENTS

Post by mnfisher »

Hi,

There is insufficient RAM for the esp8266 component to allocate an array:
G:\Downloads\PIC18F23K22-SENSORS-DATA1.h: 408: (1250) could not find space (180 bytes) for variable _FCV_08181_WLAN_ESP8266__SCANNAMES
How much RAM does the 18F23K22 have?

To answer my own question - 512 bytes - looking at the wlan_esp8266 component -it seems to allocate quite a large amount of RAM as global variables (not sure why the 100 char scannames needs 180 bytes ?)
There are also, for example, 10 x outN[20] strings so either 200 or 360 bytes gone here...

So the easy fix - change to a MCU with more RAM.

The harder fix - it might be possible to modify the component to use less memory?

Martin

SILVESTROS
Posts: 124
Joined: Tue Dec 13, 2022 9:04 pm
Has thanked: 32 times
Been thanked: 2 times

Re: FC10 COMPILE ERROR FOR SENSORS COMPONENTS

Post by SILVESTROS »

ok, PIC18F23K22 has 8K FLASH, 512 byte SRAM..I change with PIC18F25K22 that has 32K FLASH, 1536 byte SRAM...compile is ok, but in hardware not work...I get no data in variables...there is something wrong with code , or in sensors components ? maybe at code I think..can you check the code for errors?

chipfryer27
Valued Contributor
Posts: 1688
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 374 times
Been thanked: 583 times

Re: FC10 COMPILE ERROR FOR SENSORS COMPONENTS

Post by chipfryer27 »

Hi

Have you read my reply to your other similar post?

viewtopic.php?p=10143#p10143

Regards

SILVESTROS
Posts: 124
Joined: Tue Dec 13, 2022 9:04 pm
Has thanked: 32 times
Been thanked: 2 times

Re: FC10 COMPILE ERROR FOR SENSORS COMPONENTS

Post by SILVESTROS »

Yes, today I saw your reply...thanks...I've a problem with my network...

Regards

Post Reply