| View previous topic :: View next topic |
| Author |
Message |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Apr 30, 2009 6:16 pm |
|
|
Do you have the R/W pin on the LCD connected to ground ?
Or is it floating ? |
|
 |
cjc Guest
|
|
Posted: Thu Apr 30, 2009 7:51 pm |
|
|
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
|
|
Posted: Thu Apr 30, 2009 8:01 pm |
|
|
Post a link to the source code for this bootloader, if available. |
|
 |
cjc Guest
|
|
Posted: Thu Apr 30, 2009 8:06 pm |
|
|
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
|
|
Posted: Fri May 01, 2009 6:51 pm |
|
|
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
|
|
Posted: Sun May 03, 2009 8:35 pm |
|
|
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
|
|
Posted: Mon May 04, 2009 1:44 am |
|
|
| 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. |
|
 |
|