Come Join Us (MPLAB Now Supports AVRs)

Go To Last Post
269 posts / 0 new

Pages

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Release Notes for MPLAB® X IDE v5.10

November 2, 2018

...

 

13   Repairs and Enhancements in v5.10

...

MPLABX-3553

CPU registers and IO's memory view windows may need to get refreshed in order to see the values correctly for AVR devices.

AVR devices

...

MPLABX-3642

AVR devices using TPI for programming are not currently supported.

AVR devices

...

 

16   Known Issues

...

16.5   Device Feature Support Issues

AVR MCU Development

If you are developing with AVR devices, it is recommended that you upgrade to MPLAB X IDE v5.10 and MPLAB XC8 v2.05. Several AVR issues have been addressed in these versions. Alternately, you can use AVR_GCC.

...

AVR mapped program memory is not viewable on ATmega4808, ATmega4809 devices (MPLABXE-1813)

AVR ATmega4808 and ATmega4809 devices support a feature for efficient access of data used by the application which resides in the flash program space. Currently, MPLAB X IDE will not identify this space as a separate viewable memory.

Workaround: The data is viewable where the data begins in the program memory space.

...

16.7   IDE Specific Issues

...

MPLABX-3836

When launching a Debug Wire debug session and the device signature is wrong, the launch is aborted. However, a dialog pops up asking if you want to disable Debug Wire even though you never entered a Debug Wire session.

...

MPLABX-3832

MPLABX START project import: EDBG selected does not stay selected

...

MPLABX-3615

The AVR-GCC installed with the Arduino IDE does not work with MPLAB X IDE

AVR devices

MPLABX-3605

Debug Wire protocol on AVR devices does not work for MPLAB PICkit 4. For example, the ATmega328p. Programming uses a different protocol and is fine.

ATmega328p

MPLABX-3595

Memory notification not occurring when notification happens on a config mem change for AVR devices.

AVR devices

...

MPLABX-3168

AVR Disassembler fails to disassemble MOVW

AVR devices

...

via MPLAB- X IDE | Microchip Technology

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

westfw wrote:
To be fair, XC8 is not based on "free software" of any sort.
MPLAB XC8 v2 is based on Clang though likely with HI-TECH's backend.

westfw wrote:
XC16 and XC32 are built on gcc, and instructions for building those (or otherwise removing the optimization restrictions) are widely available.
And instructions on how to unlock it.

There might be a way to unlock MPLAB XC8 v2.

Whether the timing and sizing improvements are significant enough would need some evaluation.

 


http://ww1.microchip.com/downloads/en/DeviceDoc/Readme_XC8_v200_for_PIC.htm#TOC_Overview

...

...  and this [C99] has been achieved through the addition of Clang as a new compiler front end application.

...

Clang C Language Family Frontend for LLVM

Embedded C Compilers and Tools for Software Development: HI-TECH Software

GitHub - cv007/XC3216: GCC compiler restrictions removal

via https://www.microchip.com/forums/FindPost/1050359

in GCC Build | Microchip

Exploring Microchip XC16 compiler | Details | Hackaday.io

by Jaromir Sukuba

01/09/2018

...

Though the sources are available, in professional circles not everybody will spent their expensive time building the compiler (that is far from being trivial exercise) with nobody to ask questions, so they buy directly the full version plus support from Microchip...

...or something. In fact, I'm able to use optimizations higher than -O1 on free version. Compiler complains I have no valid license, but the code builds and runs just fine, with apparent results of compiler optimization efforts. 

...

[how to]

...

So, what is described here is option to get full optimization level of XC16 compiler without need to recompile the sources, what is far from being simple task. On the other hand, the gains from full options are not particularly huge, but it doesn't hurt anyway.

...

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Why fight them though? If they don't want you to use their parts, don't use them. There are plenty of others offering free high quality tools.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

larryvc wrote:
Does the PICkit4 now make my MPLAB REAL ICE obsolete?
fyi, MPLAB REAL ICE is a mature product and it's on sale this month.

MPLAB REAL ICE In-Circuit Emulator

due to DEVELOPMENT TOOL DEALS microchipDIRECT (bottom)

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Wow they really don't want hobbyists playing with their chips!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Dev Tool Deals | Microchip Technology

...

 

MPLAB PICkit 4 In-Circuit Debugger (PG164140)

Use Coupon Code: TP1943

20% Off

...

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If you are developing with AVR devices, it is recommended that you upgrade to MPLAB X IDE v5.10 and MPLAB XC8 v2.05. Several AVR issues have been addressed in these versions.

MPLAB® XC8 C Compiler Version 2.05 Release Notes for AVR® MCU

(pages 6 and 7)

3. What's New

...

3.1. Version 2.05

[macOS XC8 is a 64-bit application]

[constants into program memory; not applicable for unified memory AVR]

Standard for free Unlicensed (Free) versions of this compiler now allow optimizations up to and including level 2. This will permit a similar, although not identical, output to what was previously possible using a Standard license.

[AVRASM2 bundled with MPLAB XC8 AVR]

...

(pages 8 and 9)

5. Fixed Issues

...

5.1. Version 2.05

[numerous]

...

(pages 9 and 10)

6. Known Issues

...

[install MPLAB X before installing MPLAB XC8]

[__memx and libgcc float]

[use __at() to specify an address instead of a linker option]

[data initialization by a linker option is not yet implemented]

[a long-term issue of limited function libgcc for reduced architecture tinyAVR]

[relaxation and greater than 128KB program space]

[limitations of named address spaces]

via Downloads tab at MPLAB- XC Compilers | Microchip Technology

AVR® Devices in MPLAB® XC8 v2.05 - Developer Help

 

edit: last URL

 

"Dare to be naïve." - Buckminster Fuller

Last Edited: Wed. Jan 23, 2019 - 12:12 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I guess I will be using Atmel Studio 7, and ATmega328Ps and ATmega1284Ps for the rest of my life, along with my $20 Chinese AVR MKII and $50 Atmel ICE, for the rest of my life.  My current 328 project is up to 85% of the available flash, so I am going to have to go to the bigger 1284 soon.  Luckily the device we are building is getting larger too, so there is room for the 40 pin DIP in the prototypes. 

 

I'm still using Visual Studio 2012 for Windows projects, and have found no need to go modern, although I see there is a free version of the latest non-enterprise Visual Studio.  With Windows 7 I am an old guy with a set of tools to do whatever I need at present.  After January next year I guess I will have to pay for Windows 7 updates, or maybe I will just take my code development machine off line, and use it as is until it dies.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

MarkThomas wrote:
... along with my $20 Chinese AVR MKII and $50 Atmel ICE, for the rest of my life.
Your life expectancy is much greater than an AVRISP2 or Atmel-ICE.  Occasional posts here on the death of such tools.

Atmel-ICE does have sales at MicrochipDirect and am glad the ones of China create clones of the excellent Atmel AVRISP mkII.

Dean's LUFA AVRISP2 function-like can be built on a breadboard or protoboard for when one is in a pinch; several third parties sell these as a PCBA or in an enclosure.

MarkThomas wrote:
My current 328 project is up to 85% of the available flash, ...
One mega328PB follow-on is mega4808.

MarkThomas wrote:
... so there is room for the 40 pin DIP in the prototypes.
fyi, mega4809 is forthcoming in DIP.

https://www.avrfreaks.net/forum/megaavr-0-series?page=2#comment-2587131

Oops, scratch that.

 

edits: typo, oops

 

"Dare to be naïve." - Buckminster Fuller

Last Edited: Sat. Jan 26, 2019 - 05:23 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

david.prentice wrote:
And my Tiny817-XMINI works reasonably fast on its mEDBG.

 

It will be interesting to see how MPLAB compares with AS7.

added 2-Jan'19 :

MPLAB® X IDE - Debugging with Unified Program and Debug Interface (UPDI) for AVR® MCUs - Developer Help

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes,   I have used MPLABX with the XMINI-Tiny817.      MPLABX works ok with the UPDI hardware but the software is less developed than AS7.

 

I have been busy with other things.    I should find some time and make more effort with AVR.

 

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Release Notes for MPLAB® X IDE v5.15

February 20, 2019

...

 

13   What's New in v5.15

·Improved debugWire experience for AVR MCU family. Use Project Properties dialog, "mEDBG" category, "Communication" options category, "Interface " to select ISP or debugWIRE. MPLAB X IDE sets/clears configuration bits accordingly.

·Support for ATSAM MCUs using the Atmel-ICE tool family (Xplained boards).

14   Repairs and Enhancements in v5.15

...

 

MPLABX-3605

 

Debug Wire protocol on AVR devices does not work for MPLAB PICkit 4. For example, the ATmega328p. Programming uses a different protocol and is fine.

 

...

 

17   Known Issues

...

 

17.5   Device Feature Support Issues

AVR MCU Development

If you are developing with AVR devices, it is recommended that you upgrade to MPLAB X IDE v5.10 and MPLAB XC8 v2.05. Several AVR issues have been addressed in these versions. Alternately, you can use AVR_GCC.

...

AVR mapped program memory is not viewable on ATmega4808, ATmega4809 devices (MPLABXE-1813)

AVR ATmega4808 and ATmega4809 devices support a feature for efficient access of data used by the application which resides in the flash program space. Currently, MPLAB X IDE will not identify this space as a separate viewable memory.

Workaround: The data is viewable where the data begins in the program memory space.

 

...

 

17.7   IDE Specific Issues

The following are issues for the MPLAB X IDE.

...

 

MPLABX-4008

AVR-GCC Toolchain on a mounted drive in Linux does not get discovered with correct version information in MPLAB X IDE.

MPLABX-3991

Const declared variables display incorrect addresses in the watch window for AVR devices

MPLABX-3894

AVR STS instruction displayed incorrectly in multiple MPLAB X IDE displays:

·Program memory view

·Disassembly listing view

·Trace

 

...

 

MPLABX-3871

Using AVR 4809 and XC8 v2.00 the disassembly view seems to get lost when pausing in some projects. PC value is not lost during debugging. Continued debugging refreshes the disassembly view/reopening Disassembly view refreshes the display.

 

...

 

MPLABX-3840

BOOTEND and APPEND configuration values are not in the configuration window

ATmega4809

MPLABX-3839

Error in disassembly of rcall/call AVR instructions

 

[mega4809]

MPLABX-3836

When launching a Debug Wire debug session and the device signature is wrong, the launch is aborted. However, a dialog pops up asking if you want to disable Debug Wire even though you never entered a Debug Wire session.

 

...

 

MPLABX-3832

MPLABX START project import: EDBG selected does not stay selected

 

...

 

MPLABX-3725

LDS instruction generated has wrong operands in Disassembly view.

ATmega324PB

 

...

 

MPLABX-3678

On some projects, when first using MPLAB XC8 2.00 in MPLAB X v5.00, the build fails with No Chip name.  The interim fix is to change the compiler drivers manually, under Tools>Options>Embedded>Build Tools>XC8 v2.00, C Compiler = xc8-cc, Assembler = xc8-cc, and then click OK.

8-bit MCUs

MPLABX-3657

Adding Library project for MPLAB XC8 v2.00 changes makefile to search for .hex/.elf in library project dist folder instead of .a file

8-bit MCUs

...

 

MPLABX-3615

The AVR-GCC installed with the Arduino IDE does not work with MPLAB X IDE

AVR devices

MPLABX-3595

Memory notification not occurring when notification happens on a config mem change for AVR devices.

AVR devices

 

...

 

MPLABX-3168

AVR Disassembler fails to disassemble MOVW

 

AVR devices

 

...

 

via MPLAB- X IDE | Microchip Technology (Downloads tab, Release Notes zip, Readme for MPLAB X IDE.htm)

 

edit: typo

 

"Dare to be naïve." - Buckminster Fuller

Last Edited: Fri. Feb 22, 2019 - 01:19 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

"Dare to be naïve." - Buckminster Fuller

Last Edited: Fri. Feb 22, 2019 - 01:25 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

MPLAB XC8 PRO Dongle is on sale at half price (was 1495USD)

MPLAB XC8 Compiler PRO Dongle License

via Dev Tool Deals | Microchip Technology

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

with my experience using mplabx with pic controllers i think ill pass

If something can be read without effort then great effort has gone into its writing

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Release Notes for MPLAB® X IDE v5.20

May 14, 2019

...

 

13   What's New in v5.20

[Device packs are now numerous with some updates ("across the board") and added functionality]

...

 

14   Repairs and Enhancements in v5.20

[mostly PIC and such]

...

 

17   Known Issues

...

17.6   Device Feature Support Issues

AVR MCU Development

If you are developing with AVR devices, it is recommended that you upgrade to MPLAB X IDE v5.10 and MPLAB XC8 v2.05. Several AVR issues have been addressed in these versions. Alternately, you can use AVR_GCC.

...

AVR mapped program memory is not viewable on ATmega4808, ATmega4809 devices (MPLABXE-1813)

AVR ATmega4808 and ATmega4809 devices support a feature for efficient access of data used by the application which resides in the flash program space. Currently, MPLAB X IDE will not identify this space as a separate viewable memory.

Workaround: The data is viewable where the data begins in the program memory space.

...

17.8   IDE Specific Issues

...

 

MPLABX-4400

AVR devices

Upon importing a START project for AVR devices into MPLAB X IDE, you may observe incorrect Program Memory size being displayed in the Dashboard. This is due to outdated information in the DFP that is included in the START project. To see correct memory values and percentages in the Dashboard, it is recommended to switch to the DFP supplied by MPLAB X IDE rather than what is included in the START project.

 

MPLABX-4008

AVR MCUs

AVR-GCC Toolchain on a mounted drive in Linux does not get discovered with correct version information in MPLAB X IDE.

 

MPLABX-3991

atmega324pb

Const declared variables display incorrect addresses in the watch window for AVR devices

 

MPLABX-3894

AVR

AVR STS instruction displayed incorrectly in multiple MPLAB X IDE displays:

·Program memory view

·Disassembly listing view

·Trace

 

...

 

MPLABX-3871

[ATmega4809]

Using AVR 4809 and MPLAB XC8 v2.00 the disassembly view seems to get lost when pausing in some projects. PC value is not lost during debugging. Continued debugging refreshes the disassembly view/reopening Disassembly view refreshes the display.

 

....

 

MPLABX-3840

ATmega4809

BOOTEND and APPEND configuration values are not in the configuration window

 

MPLABX-3839

[ATmega4809]

Error in disassembly of rcall/call AVR instructions

 

MPLABX-3836

ATmega328PB, other AVR debugWIRE devices

When launching a Debug Wire debug session and the device signature is wrong, the launch is aborted. However, a dialog pops up asking if you want to disable Debug Wire even though you never entered a Debug Wire session.

 

...

 

MPLABX-3725

ATmega324pb

LDS instruction generated has wrong operands in Disassembly view.

 

...

 

MPLABX-3615

AVR devices

The AVR-GCC installed with the Arduino IDE does not work with MPLAB X IDE

 

MPLABX-3595

AVR devices

Memory notification not occurring when notification happens on a config mem change for AVR devices.

 

...

 

MPLABX-3168

AVR devices

AVR Disassembler fails to disassemble MOVW

 

...

 


due to https://www.avrfreaks.net/forum/mplab-snap-we-are-not-amused#comment-2698696 (XMEGA added to MPLAB Snap, and, more)

 

MPLAB X IDE | Microchip Technology (Downloads tab)

 

edit : 'Device Support.htm'

  • MPLAB Snap is beta complete for all AVR except mega808 and mega809 (future instances of megaAVR 0-series)
  • MPLAB PICkit 4 is tested (iow not beta) for mega4809, mega3209, mega3208
  • simulator is tested for XMEGA128A1, XMEGA128A1U, XMEGA128A4U, mega1284, and more

 

"Dare to be naïve." - Buckminster Fuller

Last Edited: Thu. May 23, 2019 - 03:39 AM

Pages