Page 1 of 1

Formula AllCode Robot Buggy

Posted: Sun Oct 04, 2020 9:29 pm
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 3596 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

Re: Formula AllCode Robot Buggy

Posted: Mon Oct 05, 2020 10:05 am
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.

Re: Formula AllCode Robot Buggy

Posted: Mon Oct 05, 2020 2:42 pm
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%.

Re: Formula AllCode Robot Buggy

Posted: Sun Mar 21, 2021 3:55 pm
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 128 times