ECIO40P dsPIC complie to chip error 7

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
User avatar
Jay Dee
Posts: 398
Joined: Tue Aug 18, 2009 6:42 pm
Has thanked: 121 times
Been thanked: 154 times
Contact:

ECIO40P dsPIC complie to chip error 7

Post by Jay Dee »

Hi guys,
Playing with the ECIO40P that I've finally got back to. I have a simple FC program just to test the LCD, the program seems to compile OK but after sending the code, reports an error 7. What is this?
using a win XP SP3 machine.
Kind regards, J.
Target folder: E:\_TECI_~1
Source name: E:\_TECI_V3_FLOWCODE\LCD Test.fcfx
Title:
Description:
Device: PIC16.33E.ECIO40P16
Generated by: Flowcode v6.1.0.0
Date: Thursday, November 06, 2014 13:54:44

Launching the compiler...
C:\Program Files\Flowcode 6\compilers\pic16\batchfiles\pic16_C30_comp.bat "LCD Test" "E:\_TECI_~1\" "33EP256MU806"
Launching compiler...

E:\_TECI_~1>pic30-gcc -c -mcpu="33EP256MU806" -funsigned-char -fno-short-double -Os -I"C:\PROGRA~1\FLOWCO~1\COMPIL~1\pic16\BATCHF~1\..\support\h" -I"C:\PROGRA~1\FLOWCO~1\COMPIL~1\pic16\BATCHF~1\..\MX_support" -Wall -std=gnu99 "LCD Test".c -o "LCD Test".o
.........
LCD Test.c: In function 'FCD_04071_LCD__PrintString':
LCD Test.c:139: warning: pointer targets in passing argument 1 of 'FCI_GETLENGTH' differ in signedness
LCD Test.c: In function 'FCD_04071_LCD__PrintNumber':
LCD Test.c:182: warning: pointer targets in passing argument 2 of 'FCI_TOSTRING' differ in signedness
LCD Test.c: In function 'FCD_04071_LCD__PrintFormattedNumber':
LCD Test.c:355: warning: pointer targets in passing argument 2 of 'FCI_TOSTRU32' differ in signedness
LCD Test.c:359: warning: pointer targets in passing argument 2 of 'FCI_TOSTRS32' differ in signedness

Compilation successful!
Completed compilation, return = 0

Launching the linker/assembler...
C:\Program Files\Flowcode 6\compilers\pic16\batchfiles\pic16_C30_link.bat "E:\_TECI_~1\LCD Test" 33EP256MU806 33E

E:\_TECI_~1>pic30-gcc -Wl,"E:\_TECI_~1\LCD Test".o,-L"C:\PROGRA~1\FLOWCO~1\COMPIL~1\pic16\BATCHF~1\..\C_tools\lib",--heap=256,--report-mem,--script="C:\PROGRA~1\FLOWCO~1\COMPIL~1\pic16\BATCHF~1\..\Support\33E\gld\p33EP256MU806.gld",-o"E:\_TECI_~1\LCD Test".cof
...........


Program Memory [Origin = 0x200, Length = 0x2a9fe]

section address length (PC units) length (bytes) (dec)
------- ------- ----------------- --------------------
.text 0x200 0x53c 0x7da (2010)
.const 0x73c 0x1a 0x27 (39)
.text 0x756 0xec4 0x1626 (5670)
.dinit 0x161a 0x8 0xc (12)

Total program memory used (bytes): 0x1e33 (7731) 2%


Data Memory [Origin = 0x1000, Length = 0x7000]

section address alignment gaps total length (dec)
------- ------- -------------- -------------------
.nbss 0x1000 0 0x16 (22)
.heap 0x1016 0 0x100 (256)

Total data memory used (bytes): 0x116 (278) <1%


Dynamic Memory Usage

region address maximum length (dec)
------ ------- ---------------------
heap 0x1016 0x100 (256)
stack 0x1116 0x6eea (28394)

Maximum dynamic memory (bytes): 0x6fea (28650)


E:\_TECI_~1>pic30-bin2hex "E:\_TECI_~1\LCD Test".cof

E:\_TECI_~1>pic30-objdump -S "E:\_TECI_~1\LCD Test".cof 1>"E:\_TECI_~1\LCD Test".asm
.......

HEX file creation successful!

Launching the programmer...
C:\Program Files\Flowcode 6\tools\mLoader\mLoader.exe -eciodsp16 "LCD Test.hex"
............
File loaded from...
=> LCD Test.hex
File sending!
.......................
File sent!

C:\Program Files\Flowcode 6\tools\mLoader\mLoader.exe reported error code 7


FINISHED

User avatar
Jay Dee
Posts: 398
Joined: Tue Aug 18, 2009 6:42 pm
Has thanked: 121 times
Been thanked: 154 times
Contact:

Re: ECIO40P dsPIC complie to chip error 7

Post by Jay Dee »

Hi Guys,
No Ideas? The Hex seems to have compiled just fine but it throws the error when trying to use the boot loader?
Is there a list of what error codes relate to?
I've tried it with just a plain ecio40p dsPIC and same issue as one in circuit.
Thanks, J,

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: ECIO40P dsPIC complie to chip error 7

Post by QMESAR »

Hi
Did you try to program with the ECIO programmer not from FC ?

http://www.matrixtsl.com/lc_index.php?p=all

Regards
QMESAR
Attachments
11.11.png
(28.59 KiB) Downloaded 2057 times

User avatar
Jay Dee
Posts: 398
Joined: Tue Aug 18, 2009 6:42 pm
Has thanked: 121 times
Been thanked: 154 times
Contact:

Re: ECIO40P dsPIC complie to chip error 7

Post by Jay Dee »

Thanks QMESAR,
Good point.. I'm away from the workshop on another job but will try that when I'm back in the UK.
J.

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

Re: ECIO40P dsPIC complie to chip error 7

Post by Benj »

Hello,

Try resetting the ECIO before the programmer kicks in. e.g. click compile to chip and then quickly press the reset button on the ECIO.

We had a similar issue with an older version of the bootloader so I wonder if this has gone into production. I'll dig out a stock item and make sure the USB connection is being closed after the bootloader has vacated.

User avatar
Jay Dee
Posts: 398
Joined: Tue Aug 18, 2009 6:42 pm
Has thanked: 121 times
Been thanked: 154 times
Contact:

Re: ECIO40P dsPIC complie to chip error 7

Post by Jay Dee »

Thanks Ben,
Still a few weeks away on this job but will report back what I find on my return or try to get the guys at the workshop to do it sooner.
Regards, J.

Post Reply