This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

External ROM Startup Access NOT RUNNING (driving me crazy!)

Hi all,

Here's the deal. I am using an Infineon C167CR-LM (internal ROMless) so I have to use external ROM. I developed a software and compiled using Tasking which is already up and running in the TQ emulator using CrossView also from Tasking. The hardware configuration is: 2 512K 8-bit ROMs where the code is loaded, and 2 512k 8-bit RAM.
I configured (by hardware, pulling down resistors) the Bustyp (P0L.7 high -unconnected- and P0L.6 low -pull down resistor-) as a 16 bit demultiplexed bus and pins P0H.3 and P0H.4 low for a 1 MByte Segment address line.

Everything goes smooth when I press the rest button (connected to the ResetIn pin), I can read the right levels for the configuration in those pins, and when I release it the data bus is having NO data or bits running through it, except for the pins with the pulldown resistors. These ones oscillate (probably something to do with the resistors) but the rest of the Data bus (the rest 14 pins) are in a low level. The address bus in the other hand seems to be going mad with whatever it is doing. My explanation is that the startup configuratio through the pulldown resistors was ok, and now it is trying to fetch the code from the ROM and this is not happening.

I one theory. In the Tasking compiler you can select in the Flash setup the external flash chips and their start addresses. I just believe this should not be done. Should it? The ROM is connectected to CS0 and therefore to Buscon0. The Ram is Buscon1 with ADDRSEL1 and CS1.
So one question. Why do I need to define the external Flash into an address if it is controlled by the Buscon0 and all I want to do with the Flash is fetch the code? My next try will be not to define this external Flash and rerun it.

The difference between the Hex file I get when I select and define the external flash and when I don't is huge!! It is not only one or 2 bits. Even the help in the Tasking appears to say (or that is what I understand) that this external flash declaration is only used by Cross View and that it has something to do with the ON-CHIP FLASH!!!???? There is no on-chip flash in this micro!!

Anyway I would really appreciatte some help, comments or even jokes to ease up my day!! =)))

Thanks guys,
Ernesto

0