PIC18F2550 not programmable with LabVIEW for PIC18F4455
Posted: Mon Feb 23, 2009 3:25 pm
Hello all,
I've installed the flowcode 3.0 usb_pack as I'd like to control my PIC18F2550 by LabVIEW. The PIC18F2550 is suggested in the demo presentation of the usb_pack. Unfortunately the flowcode example "USB Slave Demo 3-Byte" of the usb_pack is for the PIC18F4455. After deleting "Output byte2 to portd" from the demo code it should work on the PIC18F2550. I've connected the LCD-display to port A to which byte1 is send. Additional to the simulated LCD-display the "USB Slave" is activated in demo mode of the flowcode.
After selecting the PIC18F2550 as target in the expert mode I try to compile the demo code with the deleted "Output byte2 to portd" to the chip.
There I get the following failure message:
File name: E:\BFurnier\E-H\Flowcode\usb_pack\USB Examples Slave\USB Slave Demo 3-Byte PIC18F2550.c
Generated by: Flowcode v3.4.7.48
Date: Monday, February 23, 2009 15:45:42
Licence: Professional
Registered to: Bernd Furnier, University of Applied Sciences Cob
http://www.matrixmultimedia.com
Launching the compiler...
D:\Programme\Matrix Multimedia\Flowcode V3\BoostC\boostc.pic18.flowcode.exe -v -t PIC18F2550 "USB Slave Demo 3-Byte PIC18F2550.c"
BoostC Optimizing C Compiler Version 6.70 (for PIC18 architecture)
http://www.sourceboost.com
Copyright(C) 2004-2007 Pavel Baranov
Copyright(C) 2004-2007 David Hobday
Licensed to FlowCode User under Single user Pro License for 1 node(s)
Limitations: PIC18 max code size:Unlimited, max RAM banks:Unlimited
USB Slave Demo 3-Byte PIC18F2550.c
Starting preprocessor: "D:\Programme\Matrix Multimedia\Flowcode V3\BoostC\pp.exe" "E:\BFurnier\E-H\Flowcode\usb_pack\USB Examples Slave\USB Slave Demo 3-Byte PIC18F2550.c" -i "D:\Programme\Matrix Multimedia\Flowcode V3\BoostC\include" -d _PIC18F2550 -la -c2 -o "USB Slave Demo 3-Byte PIC18F2550.pp" -v -d _BOOSTC -d _PIC18
...................................................................................
USB Slave Demo 3-Byte PIC18F2550.c success
success
Return code = 0
Launching the linker/assembler...
D:\Programme\Matrix Multimedia\Flowcode V3\BoostC\boostlink.pic.exe -ld "D:\Programme\Matrix Multimedia\Flowcode V3\BoostC\lib" libc.pic18.lib flowcode.pic18.lib "USB Slave Demo 3-Byte PIC18F2550.obj" -t PIC18F2550 -d "E:\BFurnier\E-H\Flowcode\usb_pack\USB Examples Slave" -p "USB Slave Demo 3-Byte PIC18F2550"
BoostLink Optimizing Linker Version 6.70
http://www.sourceboost.com
Copyright(C) 2004-2007 Pavel Baranov
Copyright(C) 2004-2007 David Hobday
Warning unreferenced functions removed:
FCD_LCDDisplay0_GetDefines in: E:\BFurnier\E-H\Flowcode\usb_pack\USB Examples Slave\USB Slave Demo 3-Byte PIC18F2550.c
FCD_LCDDisplay0_PrintASCII in: E:\BFurnier\E-H\Flowcode\usb_pack\USB Examples Slave\USB Slave Demo 3-Byte PIC18F2550.c
FCD_LCDDisplay0_Command in: E:\BFurnier\E-H\Flowcode\usb_pack\USB Examples Slave\USB Slave Demo 3-Byte PIC18F2550.c
FCD_LCDDisplay0_RawSend in: E:\BFurnier\E-H\Flowcode\usb_pack\USB Examples Slave\USB Slave Demo 3-Byte PIC18F2550.c
FCD_LCDDisplay0_Cursor in: E:\BFurnier\E-H\Flowcode\usb_pack\USB Examples Slave\USB Slave Demo 3-Byte PIC18F2550.c
FCD_USBSlave0_GetDefines in: E:\BFurnier\E-H\Flowcode\usb_pack\USB Examples Slave\USB Slave Demo 3-Byte PIC18F2550.c
FCD_USBSlave0_Check_Rx in: E:\BFurnier\E-H\Flowcode\usb_pack\USB Examples Slave\USB Slave Demo 3-Byte PIC18F2550.c
FCD_USBSlave0_Get_Byte in: E:\BFurnier\E-H\Flowcode\usb_pack\USB Examples Slave\USB Slave Demo 3-Byte PIC18F2550.c
FCD_USBSlave0_Get_String in: E:\BFurnier\E-H\Flowcode\usb_pack\USB Examples Slave\USB Slave Demo 3-Byte PIC18F2550.c
FCD_USBSlave0_Stop_Slave_Service in: E:\BFurnier\E-H\Flowcode\usb_pack\USB Examples Slave\USB Slave Demo 3-Byte PIC18F2550.c
LCD_263538_Dummy_Function in: E:\BFurnier\E-H\Flowcode\usb_pack\USB Examples Slave\USB Slave Demo 3-Byte PIC18F2550.c
usb_get_state in: D:\Programme\Matrix Multimedia\Flowcode V3\BoostC\include\USB\pic_usb.c
CUSTOM_Dummy_Function in: E:\BFurnier\E-H\Flowcode\usb_pack\USB Examples Slave\USB Slave Demo 3-Byte PIC18F2550.c
Building CASM file
Memory Usage Report
===================
RAM available:2048 bytes, used:443 bytes (21.7%), free:1605 bytes (78.3%),
Heap size:725 bytes, Heap max single alloc:127 bytes
ROM available:32768 bytes, used:4584 bytes (14.0%), free:28184 bytes (86.0%)
success
Return code = 0
Launching the programmer...
D:\Programme\Matrix Multimedia\Common\PPPv3\PPPv3.exe -cs 2 -nogui "USB Slave Demo 3-Byte PIC18F2550.hex"
Sending program...
Erasing the PICmicro
Writing program memory
..................................................................................................
Writing configuration memory
Programming failed: <6>
That took 26,797 seconds
Return code = 0
FINISHED
Would you tell me please what I've to correct for programming my PIC18F2550 on the e-blocks with the flowcode example for LabVIEW?
As I want to control the PIC18F2550 with labVIEW by using your DLL functions it'll be great if you send me a demo flowcode for the PIC18F2550 which you've already tested successfully.
Thank you very much.
Kind regards,
BeFu
- the target is the way -
I've installed the flowcode 3.0 usb_pack as I'd like to control my PIC18F2550 by LabVIEW. The PIC18F2550 is suggested in the demo presentation of the usb_pack. Unfortunately the flowcode example "USB Slave Demo 3-Byte" of the usb_pack is for the PIC18F4455. After deleting "Output byte2 to portd" from the demo code it should work on the PIC18F2550. I've connected the LCD-display to port A to which byte1 is send. Additional to the simulated LCD-display the "USB Slave" is activated in demo mode of the flowcode.
After selecting the PIC18F2550 as target in the expert mode I try to compile the demo code with the deleted "Output byte2 to portd" to the chip.
There I get the following failure message:
File name: E:\BFurnier\E-H\Flowcode\usb_pack\USB Examples Slave\USB Slave Demo 3-Byte PIC18F2550.c
Generated by: Flowcode v3.4.7.48
Date: Monday, February 23, 2009 15:45:42
Licence: Professional
Registered to: Bernd Furnier, University of Applied Sciences Cob
http://www.matrixmultimedia.com
Launching the compiler...
D:\Programme\Matrix Multimedia\Flowcode V3\BoostC\boostc.pic18.flowcode.exe -v -t PIC18F2550 "USB Slave Demo 3-Byte PIC18F2550.c"
BoostC Optimizing C Compiler Version 6.70 (for PIC18 architecture)
http://www.sourceboost.com
Copyright(C) 2004-2007 Pavel Baranov
Copyright(C) 2004-2007 David Hobday
Licensed to FlowCode User under Single user Pro License for 1 node(s)
Limitations: PIC18 max code size:Unlimited, max RAM banks:Unlimited
USB Slave Demo 3-Byte PIC18F2550.c
Starting preprocessor: "D:\Programme\Matrix Multimedia\Flowcode V3\BoostC\pp.exe" "E:\BFurnier\E-H\Flowcode\usb_pack\USB Examples Slave\USB Slave Demo 3-Byte PIC18F2550.c" -i "D:\Programme\Matrix Multimedia\Flowcode V3\BoostC\include" -d _PIC18F2550 -la -c2 -o "USB Slave Demo 3-Byte PIC18F2550.pp" -v -d _BOOSTC -d _PIC18
...................................................................................
USB Slave Demo 3-Byte PIC18F2550.c success
success
Return code = 0
Launching the linker/assembler...
D:\Programme\Matrix Multimedia\Flowcode V3\BoostC\boostlink.pic.exe -ld "D:\Programme\Matrix Multimedia\Flowcode V3\BoostC\lib" libc.pic18.lib flowcode.pic18.lib "USB Slave Demo 3-Byte PIC18F2550.obj" -t PIC18F2550 -d "E:\BFurnier\E-H\Flowcode\usb_pack\USB Examples Slave" -p "USB Slave Demo 3-Byte PIC18F2550"
BoostLink Optimizing Linker Version 6.70
http://www.sourceboost.com
Copyright(C) 2004-2007 Pavel Baranov
Copyright(C) 2004-2007 David Hobday
Warning unreferenced functions removed:
FCD_LCDDisplay0_GetDefines in: E:\BFurnier\E-H\Flowcode\usb_pack\USB Examples Slave\USB Slave Demo 3-Byte PIC18F2550.c
FCD_LCDDisplay0_PrintASCII in: E:\BFurnier\E-H\Flowcode\usb_pack\USB Examples Slave\USB Slave Demo 3-Byte PIC18F2550.c
FCD_LCDDisplay0_Command in: E:\BFurnier\E-H\Flowcode\usb_pack\USB Examples Slave\USB Slave Demo 3-Byte PIC18F2550.c
FCD_LCDDisplay0_RawSend in: E:\BFurnier\E-H\Flowcode\usb_pack\USB Examples Slave\USB Slave Demo 3-Byte PIC18F2550.c
FCD_LCDDisplay0_Cursor in: E:\BFurnier\E-H\Flowcode\usb_pack\USB Examples Slave\USB Slave Demo 3-Byte PIC18F2550.c
FCD_USBSlave0_GetDefines in: E:\BFurnier\E-H\Flowcode\usb_pack\USB Examples Slave\USB Slave Demo 3-Byte PIC18F2550.c
FCD_USBSlave0_Check_Rx in: E:\BFurnier\E-H\Flowcode\usb_pack\USB Examples Slave\USB Slave Demo 3-Byte PIC18F2550.c
FCD_USBSlave0_Get_Byte in: E:\BFurnier\E-H\Flowcode\usb_pack\USB Examples Slave\USB Slave Demo 3-Byte PIC18F2550.c
FCD_USBSlave0_Get_String in: E:\BFurnier\E-H\Flowcode\usb_pack\USB Examples Slave\USB Slave Demo 3-Byte PIC18F2550.c
FCD_USBSlave0_Stop_Slave_Service in: E:\BFurnier\E-H\Flowcode\usb_pack\USB Examples Slave\USB Slave Demo 3-Byte PIC18F2550.c
LCD_263538_Dummy_Function in: E:\BFurnier\E-H\Flowcode\usb_pack\USB Examples Slave\USB Slave Demo 3-Byte PIC18F2550.c
usb_get_state in: D:\Programme\Matrix Multimedia\Flowcode V3\BoostC\include\USB\pic_usb.c
CUSTOM_Dummy_Function in: E:\BFurnier\E-H\Flowcode\usb_pack\USB Examples Slave\USB Slave Demo 3-Byte PIC18F2550.c
Building CASM file
Memory Usage Report
===================
RAM available:2048 bytes, used:443 bytes (21.7%), free:1605 bytes (78.3%),
Heap size:725 bytes, Heap max single alloc:127 bytes
ROM available:32768 bytes, used:4584 bytes (14.0%), free:28184 bytes (86.0%)
success
Return code = 0
Launching the programmer...
D:\Programme\Matrix Multimedia\Common\PPPv3\PPPv3.exe -cs 2 -nogui "USB Slave Demo 3-Byte PIC18F2550.hex"
Sending program...
Erasing the PICmicro
Writing program memory
..................................................................................................
Writing configuration memory
Programming failed: <6>
That took 26,797 seconds
Return code = 0
FINISHED
Would you tell me please what I've to correct for programming my PIC18F2550 on the e-blocks with the flowcode example for LabVIEW?
As I want to control the PIC18F2550 with labVIEW by using your DLL functions it'll be great if you send me a demo flowcode for the PIC18F2550 which you've already tested successfully.
Thank you very much.
Kind regards,
BeFu
- the target is the way -