ECIO40P dsPIC complie to chip error 7

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

Moderator: Benj

User avatar
Jay Dee
Posts: 352
Joined: Tue Aug 18, 2009 6:42 pm
Has thanked: 116 times
Been thanked: 134 times
Contact:

ECIO40P dsPIC complie to chip error 7

Postby Jay Dee » Thu Nov 06, 2014 3:09 pm

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: 352
Joined: Tue Aug 18, 2009 6:42 pm
Has thanked: 116 times
Been thanked: 134 times
Contact:

Re: ECIO40P dsPIC complie to chip error 7

Postby Jay Dee » Tue Nov 11, 2014 8:19 pm

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: 1124
Joined: Sun Oct 05, 2014 3:20 pm
Has thanked: 346 times
Been thanked: 555 times
Contact:

Re: ECIO40P dsPIC complie to chip error 7

Postby QMESAR » Tue Nov 11, 2014 8:28 pm

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
11.11.png (28.59 KiB) Viewed 1728 times

User avatar
Jay Dee
Posts: 352
Joined: Tue Aug 18, 2009 6:42 pm
Has thanked: 116 times
Been thanked: 134 times
Contact:

Re: ECIO40P dsPIC complie to chip error 7

Postby Jay Dee » Tue Nov 11, 2014 9:15 pm

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: 14299
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4394 times
Been thanked: 4123 times
Contact:

Re: ECIO40P dsPIC complie to chip error 7

Postby Benj » Wed Nov 12, 2014 12:30 pm

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: 352
Joined: Tue Aug 18, 2009 6:42 pm
Has thanked: 116 times
Been thanked: 134 times
Contact:

Re: ECIO40P dsPIC complie to chip error 7

Postby Jay Dee » Wed Nov 12, 2014 4:26 pm

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.
These users thanked the author Jay Dee for the post:
Benj (Wed Nov 12, 2014 4:31 pm)
Rating: 5.26%