Beginner - Need help to evaluate Crossworks
Dear Forum
I purchased an Open1768 an NXP WaveShare LPC1768 to develop a product with Crossworks.
http://www.waveshare.com/wiki/Open1768
Flash Magic is Version 7.45.3128
The platform is supplied with a LPC ISP(mini) adapter. I am using FlashMagic as the programming application.
I create a new project and select
- An executable for NXP LPC1700 and save as LED1
In common project settings I set
- Additional Output Format as hex (needed for FlashMagic)
I confirm target Proc as LPC1768 and Oscillator Frequency as 12MHz
Everything else is default.
After creating project I edit main.c
From
#include <__cross_studio_io.h>
void
main(void)
{
debug_printf("hello world\n");
debug_exit(0);
}
To:
#include <LPC17xx.h>
void
main(void)
{
LPC_PINCON->PINSEL0 = 0x000000; //Configure the Pins for GPIO;
LPC_GPIO0->FIODIR = 0xffffffff; //Configure the PORT pins as OUTPUT
LPC_GPIO0->FIOCLR = 0xffffff00; // Make all the Port pins as low
while(1)
{
}
}
I build successfully (Thumb Flash Debug)
Using Flash Magic, I transfer the Hex file to the Open1768 Board.
Transfer is successful with verify.
I press reset but the LED's on P0 Bit [0:3] do not light. They are wired to light when bit is low.
I cannot see what I am doing wrong. I have tried on two boards with two ISP Programmers to no avail.
I would really love to purchase the full licenced version of Crossworks but there seems little support for this CPU in respect to newbies.
Any help would be very appreciated.
Project files are attached
thank you in advance Mark
LED1.rar
-
It's here:
https://rowley.zendesk.com/forums/51134/entries/61610
Leon
Please sign in to leave a comment.
Comments
4 comments