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

Problem with simulated serial mode

To have the serial port S0 free for the application, I want to use the simulated serial mode.
The UART ASC0 mode works correctly (burned to external FlashROM), but not the simulated serial mode (seems to have no connection).
The controller does not answer to the PC (checked with an oscilloscope).
I'm using P8.6 and P8.7 as data lines (changed in inst167.a66) and a RS232 transceiver.
BAUDRATE is 9600, CPU_CLOCK is 19660800.
What could be wrong?

Parents
  • Hi Simon!
    Did you read the README.TXT in the \C166\MONITOR - directory?
    It describes all necessary steps.

    1.
    First you have to generate the monitor with option: SIMULATED SERIAL MODE.
    Take care for the CONFIG.INC-file!
    Example:
    %DEFINE (DATA_START) (0BA600H)
    %DEFINE (CODE_START) (000000H)
    %DEFINE (VECTAB) (80000H)

    Compile it and then burn it to your Flash-ROM.
    After a reset the controller is ready to load the program with µVision.


    2.
    Create a new target with your program and choose "Monitor in ROM" (Options for Target/Debug/Settings...).
    Don't select "Use on-chip ROM". Your data AND program has to be located in RAM.
    My RAM starts from 0x80000 (size 0x40000).
    Reserve the addresses for ASC0 and monitor data (DATA_START+512Bytes min.)

    Target Dialog:
    External Memory
    Start Size
    ROM 0x80000 0x20000
    RAM 0xA0000 0x20000
    Interrupt Vector Table Address 0x80000
    Reserve: 08H-0BH,0xBA600-0xBFFFF

    I'm working with my own minimal system (ST10F168 + 256k RAM).
    BTW: After all I found that the maximal baudrate in simulatetd serial is 19200.
    I hop this will help you. Otherwise we need mor details about your hardware and configuration.

    Ulf

Reply
  • Hi Simon!
    Did you read the README.TXT in the \C166\MONITOR - directory?
    It describes all necessary steps.

    1.
    First you have to generate the monitor with option: SIMULATED SERIAL MODE.
    Take care for the CONFIG.INC-file!
    Example:
    %DEFINE (DATA_START) (0BA600H)
    %DEFINE (CODE_START) (000000H)
    %DEFINE (VECTAB) (80000H)

    Compile it and then burn it to your Flash-ROM.
    After a reset the controller is ready to load the program with µVision.


    2.
    Create a new target with your program and choose "Monitor in ROM" (Options for Target/Debug/Settings...).
    Don't select "Use on-chip ROM". Your data AND program has to be located in RAM.
    My RAM starts from 0x80000 (size 0x40000).
    Reserve the addresses for ASC0 and monitor data (DATA_START+512Bytes min.)

    Target Dialog:
    External Memory
    Start Size
    ROM 0x80000 0x20000
    RAM 0xA0000 0x20000
    Interrupt Vector Table Address 0x80000
    Reserve: 08H-0BH,0xBA600-0xBFFFF

    I'm working with my own minimal system (ST10F168 + 256k RAM).
    BTW: After all I found that the maximal baudrate in simulatetd serial is 19200.
    I hop this will help you. Otherwise we need mor details about your hardware and configuration.

    Ulf

Children
No data