CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Interrupt Vector Remapping - HID Bootloader - 18F4550
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Apr 30, 2009 6:16 pm     Reply with quote

Do you have the R/W pin on the LCD connected to ground ?
Or is it floating ?
cjc
Guest







PostPosted: Thu Apr 30, 2009 7:51 pm     Reply with quote

It is to ground, as required. Again, everything works fine without the Microchip HID Bootloader. The CCS bootloader works and normal loads work.

-Chris

PCM programmer wrote:
Do you have the R/W pin on the LCD connected to ground ?
Or is it floating ?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Apr 30, 2009 8:01 pm     Reply with quote

Quote:
Microchip HID

Post a link to the source code for this bootloader, if available.
cjc
Guest







PostPosted: Thu Apr 30, 2009 8:06 pm     Reply with quote

If you google Microchip Application Libraries v2009-03-24 it'll go to the Microchip page; it's in their whole framework package.

I'd post the link, but apparently you need to have an account to do so.

-Chris[/i]
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri May 01, 2009 6:51 pm     Reply with quote

I don't want to do a 42 MB download.
If you think their bootloader is interfering with your LCD pins, then you
should examine their source code and look for accesses to those pins.

Or, you could add another channel to your Logic Analyzer screen, which
will show when the PIC is executing code within the LCD driver. Choose
a free pin, such as Pin B0. At the start of each LCD routine (that can be
called by your external program), set Pin B0 high. At the end of each
routine, set B0 low. Then if possible, configure the logic analyzer to
trigger on any pulses on the other channels that occur when B0 is low.
This will tell you if some other code is accessing the LCD pins (or port),
outside of the LCD driver. Any activity that occurs when B0 is high
is (likely) due to the Flex driver (Unless an interrupt).
cjc
Guest







PostPosted: Sun May 03, 2009 8:35 pm     Reply with quote

Another weekend wasted... no success.

When using the 4-bit version, whether the flex or CCS driver, it takes a dive in the send_nibble function. Writing directly to the port, using output_bit, or testing and using output_high/_low it simply doesn't output data to any pin - tried numerous combination.

I also tried another approach that I used to use on AVR and 8051 MCUs that worked well using a shift-reg and FF, and it produced more or less the same results. Will continue to explore this but not too encouraged.

I'm not sure how much longer to keep fighting it; it seems like it should work, and the main code seems fine since it works standalone and with other bootloaders, as well as having all output to the UART instead of the LCD...

I'm open to alternatives... I'd like an HID bootloader to make it easier for the user to update firmware, but at the rate it's going I may just concede and use the CDC version instead and hope for the best.

Bootloader experts - any thoughts on this? Please?

-Chris
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Mon May 04, 2009 1:44 am     Reply with quote

Reviewing the thread, I see that your initial assumptions regarding possible problems of interrupt vector remapping have been neither confirmed nor disproved. Furthermore, you didn't go the bottom of several strange findings reported through this thread. Although you may find a working solution by chance, this isn't the way to tackle software issues systematically.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group