Release Notes for MPLAB® X Simulator

MPLAB® X IDE v1.20

 

May 29, 2012

 

Table of Contents

1       Device Support

2       Other Support

3       What's New in v1.20

4       Repairs and Enhancements Made in v1.20

5       Known Problems

1      Device Support

Click the link below to see device support for the simulator (SIM).

·         Device Support List

In MPLAB X IDE, two support lights for the simulator are visible in the Project Properties window next to the Simulator. The first light represents core (instruction set) support and the second light represents peripheral support. The colors mean:

·         Green – full support

·         Yellow – beta support

·         Red – no support yet

2      Other Support

See the Readme for MPLAB X IDE.htm for other support information.

3      What's New in v1.20

·         Two support lights for the simulator in the Project Properties window. The first light represents core (instruction set) support and the second light represents peripheral support.

4      Repairs and Enhancements Made in v1.20

SIMX-99

Change on Pin notification interrupt doesn't work on any of the CN pin for PIC32MX devices. I/O pin change doesn't set the CNIF flag in IFS1 register.

PIC32MX

SIMX-91

Turning off the Input capture module doesn't clear the internal capture count for PIC32MX devices.

PIC32MX

SIMX-90

Capture buffers are loaded in reverse order for Input capture in 32 bit mode for PIC32MX devices.

PIC32MX

SIMX-85

Enhancement request to implement run time self flash programming in simulator for PIC32MX family devices.

PIC32MX

SIMX-39

TMR2 not incrementing in PIC24F08KL302

PIC24F08KL302

SIMX-29

movpag #lit,TBLPAG moves #lit to DSRPAG

dsPIC33EP512MU814

MPLABX-715

[MPLAB X-SIM32] Core timer count isn't simulated for PIC32MX

PIC32MX

MPLABX-332

[16-bit Simulator] Read/Write operation of Configuration registers space through table instructions is not simulated correctly.

dsPIC33F, dsPIC30F, PIC24F, PIC24H

5      Known Problems

The following is a list of known problems. For information on common problems, error messages and limitations please see Troubleshooting in the online help file for the Simulator.

5.1      PIC32 MCUs

5.1.1    Cycle Accuracy Issues

At this time the PIC32 simulator has some variations in cycle accuracy when compared to the real silicon. The PIC32 simulator does not simulate things like the cache, pre-fetch buffer, wait states and Bus matrix divisions. The Bus matrix is fixed at 1:1 with the processor clock. This can have an effect of making algorithm timing loops appear to be slower than they are in real silicon. Each instruction is accurate in execution and timing in itself.

5.1.2    Core Limitations

The following features aren’t simulated for the PIC32MX Core:

•       Prefetch cache

•       PB Clock divider

•       Bus matrix configurations

•       Flash wait states

5.2      Issues Being Tracked – Sim

SIMX-93

External interrupts INT0- INT4 doesn't generate interrupt on Negative edges on INTx pins for PIC32MX

PIC32MX

SIMX-92

External interrupts INT0- INT4 doesn't generate interrupt on positive edges on INTx pins for PIC32MX

PIC32MX

SIMX-84

CLONE -CLRASM bit of ADC control register, has no effect on terminating the auto-sample after first sequence is completed, for PIC32 devices

PIC32MX

SIMX-83

PIC32: Sleep/Idle mode: External Interrupt or Peripheral Interrupt is not getting generated when device is in low power mode for PIC32 devices

PIC32MX Family

SIMX-82

Attempt to read from config memory location causes trap for PIC32 with simulator

PIC32

SIMX-81

PIC32: MUL, MADD, MULT , MSUB etc gives incorrect result if interrupt occurs at certain stage of pipe line in simulator for PIC32 devices

PIC32MX Family

SIMX-80

UART1 and UART2 do not generate receive error interrupt (UxEIF)when receiver overrun error has ocurred

PIC32 and possibly PIC24 and 33F devices as well

SIMX-78

PIC32[WDT]: Under Simulator debugger settings , reset on WDT time out and WDT Time out field settings are not saved and reverts back to default for PIC32 devices.

PIC32MX Family

SIMX-77

Few instructions are not implemented in simulator. Enhancement request to implement those for PIC32 devices

PIC32

SIMX-69

Software reset operation does not reset the execution to reset vector on certain condition for PIC32 devices. Also, RSWRST is not write protected and unlock sequence is not implemented

PIC32MX

SIMX-67

PIC32: OSCCON register fields such as PLLODIV, PBDIV, PLLMULT are not loaded from device config register on reset for PIC32 device

PIC32MX Family

SIMX-64

UART reception does not work in non-loopback mode when input text file is provided through UART IO window for PIC32 simulator

PIC32

SIMX-63

PIC32: Analog comprator expects its input pins to be configured as 'Digital' pins to responds to inputs in simulator for PIC32 devices

PIC32MX Family

SIMX-61

[MPLAB X-SIM32] In 16 bit mode, specific project causing unimplemented memory access and never reaches main. Works fine in MPLAB 8

PIC32MX

SIMX-60

[MPLAB X-SIM32] JALX instruction in certain cases causing com.microchip.mplab.mdbcore.simulator.SimulatorException" error for PIC32MX devices

PIC32MX

SIMX-58

Cycle count changes of instructions in dsPIC33E/PIC24E are not reflected in simulator.

dsPIC33E/PIC24E

SIMX-53

[SIM32-ISA] Add Immediate Unsigned Word (3-Operand, PC-Relative) instruction is producing incorrect result

PIC32MX

SIMX-37

interrupt on Timer 5 has to come every 0x2000F cycles but with MPLAB X the interrupt on Timer 5 comes every 0xF cycles.

 

SIMX-28

MUL.UU, MUL.US, MUL.SU, and MUL.SS instructions not working

dsPIC33EPXXXMU806/810/814

SIMX-27

3 level do loop nested not supported in simulator - generates an exception in the start of second nested do loop

dsPIC33EPXXXMU806/810/814

SIMX-26

Unable to select MCV08A,MCV14A,MCV18A,MCV28A.

MCV08A, MCV14A, MCV18A, MCV28A

SIMX-5

After timer is being turned on, it takes one extra cycle to start counting up. Also, after being turned off, it continue to count for one more cycle. This causes incorrect count in the gated mode

PIC32MX

5.3      Issues Being Tracked – MPLAB X IDE

MPLABX-1122

Can't initiate two instances of SIM debug sessions at the same time using MDB, gives a "socket not available" exception.

 

MPLABX-994

The simulator hardware stack window currently does not exist, but should be shortly available in a future release.

 

MPLABX-785

16-bit simulator resets/hangs sometimes while printing large strings. Affect version MPLAB X Beta 7.01

dsPIC33FJ64GP206

MPLABX-783

(Occasionally) simulator does not stop at breakpoint during debug run

16-bits as reported on the web

MPLABX-758

[MPLAB X-SIM32] Simulation is slow on certain projects for PIC32MX devices

PIC32MX

MPLABX-730

[MPLAB X-SIM32]-EICSS filed of SRSctl register is not getting updated when interrupt get generated in SIM32 for PIC32 devices

PIC32MX family

MPLABX-705

[MPLAB SIM] Advance breakpoints(read/write) do not break the execution

16 bit and 32 bit

MPLABX-337

[16-bit SIM] In MPLAB X Beta 5, read/write/erase operation of Flash memory and erase operation on Boot block are not implemented for PIC24F KA devices

PIC24F04KA200/1, PIC24F08KA101/2, PIC24F16KA101/2

MPLABX-336

[16-bit SIM] In MPLAB X Beta 5, read/write/erase operation of EEPROM is not implemented for PIC24F KA devices

PIC24F08KA101/2 and PIC24F16KA101/2

MPLABX-324

[16-bit SIM] Instruction Stalls associated with RAW data dependency are not simulated correctly

dsPIC33F, dsPIC30F, PIC24F, PIC24H

MPLABX-150

setm ACCAU sets all 16 bits when using the 16 bit simulator

dsPICC33FJ256GP710