Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - PIC18F4550 - Demo

(you are viewing a thread; or go back to list of threads)

PIC18F4550 - Demo (by BoumPower (Switzerland))
Hi

First running demo (Blink.LD) for PIC18F4550 made with my LDmicroCompiler.

You can download the hex file from http://sourceforge.net/projects/ldcompiler/files/

This hex file can be uploaded to the PIC with the HID bootloader from Microchip.

the Button is on RB7 and the LED on RB4

If you connect the board with USB and run HyperTerminal (9600, 8, no parity, 1 stop bit, no flow control / local echo) you will see "Small Device OS v1.1.1a" : press any key (space for example).

With the "status" command, you get info on Blink demo

**** I ask again :
- add a new file format in LDmicro to support other target device
- add menu items to invoke external (command line) compiler

The attached file is the output of my compiler (with just some modification for IO) and it is merged with sdsOS (an other projet of mine) to provide USB-RS232 facilities.

Thanks for feedback, suggestion...

Best regards

Olivier
Tue Aug 10 2010, 08:48:01, download attachment blink.C
PIC18f4550 (by John Weedon)
I am new to this forum and trying to complete a project that
is using the PIC18F4550. I ran across this WEB site and just thought I would get some ideas on how to proceed. I have the USB interface completed to the PIC for setting baud rate, parity, starting address, ect. from a visual C++ application. These parameters are the settings for communicating as a slave on a Modbus network. That part is complete. The communication part of the Modbus network through the USART on the PIC is also complete. What led me hear was thinking it would be cool if I could have the end user have the ability to use ladder programming to control the IO locally and not just a dumb slave sitting on a Modbus network.
After reading your post I am not sure if you have completed programming and compiling the PIC18 with the LDmicro considering it is not listed as a supported device? You give the hex file, was that created and compiled with something you wrote?
Thanks,
John
Wed Aug 11 2010, 15:27:54
(no subject) (by Olivier)
Hi

The tool chain is the following :

- Design the ladder with LDmicro.exe of Jonhatan
- Compile the .ld file with my LDmicroCompiler (command line tool)

The result is a .c file that I include in a Microchip MPLAB project "sdsOS"

sdsOS project is a open-source stack for micro-controler (actualy microchip PIC) that help multi-task, USB RS232 like stream and other feature.

The sdsOS stack with the .c file include is compiled with microchip C18 compiler and the result is the .hex file

You can find all source file in the SVN of sdsOS http://sourceforge.net/projects/small-device-os/

Best regards
Thu Aug 12 2010, 00:33:50
(no subject) (by Olivier)
See it at :

http://www.youtube.com/watch?v=whBGMPqqrpI

The board is a PicStar hardware (PIC18F4550 based)
Fri Aug 13 2010, 08:37:58
LDMicroCompiler (by Belove)
Hello At compile time error occurs. What do I do, tell me?
Sun Aug 15 2010, 23:42:27, download attachment ERROR.zip
Error 14001 (by BoumPower (Switzerland))
Hi

I'm not familiar with Bill Gates (microsoft) product. It's my first application with "Visual C++ 2008 Express" and probably the last one...

After reading some forum, I found that it could be a uninstalled package : Microsoft Visual C++ 2008 Redistributable Package (x86)

http://go.microsoft.com/fwlink/?LinkId=120133

Please give me feed back of this.

Best regards
Mon Aug 16 2010, 02:27:48
LDMicroCompiler (by Belove)
Hello established vcredist_x86.exe error changed to another.
"Application failed to initialize (00xc0000135). To exit the application, click" OK "
Thu Aug 19 2010, 01:55:56, download attachment ERROR2.zip
(no subject) (by BoumPower)
I'm not familiar with microsoft products...

I hope that somebody will help us on how to make LDmicroCompiler running on a PC without the Visual C++ 2008 developpement IDE installed.

Someone told me few month ago to change Visual C++ with an other developpment tool... now I understand why...

Can you attach the 111.ld file (I will try to compile it)
Thu Aug 19 2010, 06:55:33
(no subject) (by Jonathan Westhues)
You might look at the makefile for LDmicro, for an example. It is certainly possible to build code using the MSVC compiler without any dependencies. LDmicro does this, as do thousands of other projects.

And excepting the Intel compiler, I'm not aware of a better C compiler for x86. All reputable benchmarks, including my own, put gcc noticeably slower. Since the Microsoft compiler is free (zero cost) to download, I don't see any reason except ideology not to use it.
Fri Aug 20 2010, 02:56:42
LDMicroCompiler (by Belove)
Hello 2 the error occurred because he was not installed net framework 3.5, but when you compile an empty file with the extension .c and the program quits.
Thanks of course to offer to help in the compilation of our file, but we are pursuing a different goal - teaching writing programs for different microcontrollers.
Fri Aug 20 2010, 03:00:38, download attachment error.zip
(no subject) (by BoumPower (Switzerland))
I'm happy that you have found what was wrong...

LDmicroCompiler is not yet stable, some ELEM are not implemented

Now I begin having running PLC, I correct and add feature every time I could... (I have a lot of new feature, especially for C output code)

Best regards
Fri Aug 20 2010, 03:19:10
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):