Formula AllCode Robot Buggy

Moderator: Benj

Post Reply
medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Formula AllCode Robot Buggy

Post by medelec35 »

I have found two issues regarding the buggy.
1) Compiling will fail with :

Code: Select all

Launching the compiler...
D:\Common\Compilers\pic16\batchfiles\pic16_C30_comp.bat  "All code buggy test1" "D:\FC Testing\" "33EP256MU810"

D:\FC Testing>xc16-gcc -c -mcpu="33EP256MU810" -omf=coff -funsigned-char -fno-short-double -Os -I"D:\Common\Compilers\pic16\batchfiles\..\support\h" -I"D:\Common\Compilers\pic16\batchfiles\" -std=gnu99 "All code buggy test1".c -o "All code buggy test1".o 
Options have been disabled due to restricted license
Visit http://www.microchip.com/ to purchase a new key.
In file included from C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\includes.c:643:0,
                 from All code buggy test1.c:1763:
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_PWM.c: In function 'FC_CAL_PWM_SetDuty8Bit_1':
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_PWM.c:912:8: error: 'duty' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_PWM.c:912:8: note: each undeclared identifier is reported only once for each function it appears in
In file included from C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\includes.c:665:0,
                 from All code buggy test1.c:1763:
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_PWM.c: In function 'FC_CAL_PWM_SetDuty8Bit_2':
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_PWM.c:912:8: error: 'duty' undeclared (first use in this function)
In file included from C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\includes.c:686:0,
                 from All code buggy test1.c:1763:
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_PWM.c: In function 'FC_CAL_PWM_SetDuty8Bit_3':
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_PWM.c:912:8: error: 'duty' undeclared (first use in this function)
In file included from C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\includes.c:710:0,
                 from All code buggy test1.c:1763:
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_PWM.c: In function 'FC_CAL_PWM_SetDuty8Bit_4':
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_PWM.c:912:8: error: 'duty' undeclared (first use in this function)
In file included from C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\includes.c:734:0,
                 from All code buggy test1.c:1763:
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_PWM.c: In function 'FC_CAL_PWM_SetDuty8Bit_5':
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_PWM.c:908:8: error: 'duty' undeclared (first use in this function)
In file included from C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\includes.c:758:0,
                 from All code buggy test1.c:1763:
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_PWM.c: In function 'FC_CAL_PWM_SetDuty8Bit_6':
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_PWM.c:912:8: error: 'duty' undeclared (first use in this function)

Error returned from [xc16-gcc.exe]

D:\Common\Compilers\pic16\batchfiles\pic16_C30_comp.bat reported error code 1
Can get around this by using update and rolling back CAL_PWM.
The update system is really great and far superior to other products i have used!

After rollback to CAL_PWM Rev1 Flowchart compiles OK.
2) The flowchart sent to target, locks the buggy up with:
Buggy locked up.png
Buggy locked up.png (155.64 KiB) Viewed 3400 times
The time when picure of LCD was taken is 21:23 and flowchart was sent at 16:43. the battery is on 98% but wrongly showing low.
Backlight is permanently off.
My only option is to upload factory settings, to get display to work normally.

Attached flowchart was to test one random function.
Buggy was initially loaded with API_Master_Production - P4v3.hex
Attachments
All code buggy test1.fcfx
(7.68 KiB) Downloaded 175 times
Martin

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: Formula AllCode Robot Buggy

Post by Benj »

Thanks Martin,

PWM problem should be resolved now, investigating the Formula AllCode lockup issue, It is designed not to let you proceed if the battery is too low but if it's a false positive reading then I'll try and see why this is happening.

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Formula AllCode Robot Buggy

Post by medelec35 »

Hi Ben,
Thank you.

Yes, it's a false positive as when restored with factory firmware,
the LCD lit again and battery went back up to 98%.
Martin

reedas
Posts: 9
Joined: Fri Jan 05, 2018 3:59 pm
Has thanked: 2 times
Contact:

Re: Formula AllCode Robot Buggy

Post by reedas »

HI

@Benj Did you discover the solution to this issue?

I am using the formula allcode with a maze running algorithm on flowcode 8 and encountering the same false low battery halting on a fully charged rover.

Was it a specific macro or initialisation sequence that caused or resolved it?

tia

Andrew
mazedweller.fcfx
(21.85 KiB) Downloaded 123 times

Post Reply