Microchip PIC24FJ128GL306

From SEGGER Knowledge Base
Jump to navigation Jump to search

The Microchip PIC24FJ128GL306 family features a 16-bit RISC (Reduced Instruction Set Computer) processor core based on a modified Harvard architecture. This architecture separates program memory and data memory into distinct buses, allowing the CPU to access instructions and data simultaneously. The 16-bit architecture provides increased computational performance and a larger address space compared to 8-bit microcontrollers, while maintaining efficient and deterministic instruction execution.

Supported devices

Refer to the supported device list for a full list of all supported PIC24FJ128GL306 family devices, their corresponding names and connection diagrams.

Target interfaces

Interface J-Link support Flasher support
(E)ICSP NO.png YES.png

Memory blocks

Flash bank Base address J-Link support Flasher support Loader
Name Bank size
User program memory 0x00000000 (0x00000000)[1] NO.png YES.png Default up to 44K Words
Device configuration 0x0002BE00 (0x00015F00)[1] NO.png YES.png Default 34 Words
EEPROM 0x01002E00 (0x00801700)[1] NO.png YES.png Default 256 Words

¹ Base addresses are given as <byte oriented address> (<PIC24 oriented 24-bit word address>).

Device specific handling

Connect

Please ensure that a capacitor of typically 10µF is connected to the Vcap pin of the device.

Reset

The device is reset via MCLR pin.

Interface mode

The device can generally be programmed in ICSP mode; however, there is also a fast EICSP mode. In this mode, a loader is flashed into an area specifically reserved for this purpose. On a new device, this loader is not present and must be programmed once. This happens automatically. You can use the “Force writing the programming executive” option to have this loader reprogrammed. Both interface speeds can be set separately. EICSP mode is enabled by default.

Security

The device can be protected using the 'Config words' which must be present in the hex file .

Limitations

  • This device family supports only 'Low voltage programming' (LVP).
  • Config Words can only be erased via "Bulk erase"

Troubleshooting

Device ID does not match

At the start of the programming process, the Flasher attempts to connect to the device and read its device ID. Each PIC device has a unique ID.

If a device ID error occurs, there may be several possible causes.

To obtain detailed information on the error, increase the "VerboseOutput" level in the U-Flash configuration to at least "INFO" and transfer the project to the Flasher again.

caption

Device ID = 0000 or 3FFF

  1. There is a fault in the wiring
  2. The device is kept in reset by an external reset generator or watchdog
  3. The supply voltage is insufficient

Device ID is wrong

  1. The wrong device was selected in U-Flash
  2. There is another device on the board assembled
  3. The supply voltage is too low and/or the ICSP speed is too high