I try to build Flashforth for the ATmega128RFA1 (for the Smartresponse XE) with MPLAB X IDE 5.35.
I use the Projekt in flashforth/avr/FF-ATMEGA.X.
When I click build (or clean and build) I get the following errors:
Update: I found a configuration problem, which solves some of the problems.
But the errors with /Applications/microchip/xc8/v2.46/avr/avr/include/avr/builtins.h:59: Error: unknown opcodeextern'` remain.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I did the build for ATmega128RFA1.
In the config-xc8.inc file I had to disable the load led.
And I had to comment the registers WDTCR in the words WD+ and WD-.
Apparently the WDTCR register does not exist in the ATmega128RFA1.
With these change it builds and runs in the simulator. MPLABX 6.15 and XC8 2.45 on linux.
Hi ,
I'm trying to compile FF for pic24 , and also have a lot of these errors : Error: non-constant expression in ".if" statement.
What is this configuration problem if I may ask.
I can not find a solution so far.
Regards,
Ronny
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I had similar issues with attempting to compile. I had the following errors:
"/Applications/microchip/xc8/v2.46/avr/avr/include/avr/builtins.h:59: Error: unknown opcode extern'"
I also noticed that above Mikael's version of XC8 was 2.45. I went to the Microchip Download Archives, downloaded and installed 2.45, and everything works.
Fun.
Lief
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
XC v2.46 has made the below change, that causes the problem with builtins.h .
Need to check what can be done about it. Maybe xc.h should not be included from assembly code.
For now XC8 v2.45 must be used to compile FlashForth.
MISRA-compliant headers (XC8-3279) To ensure that the compiler can conform to language
specifications such as MISRA, the headers of the non-functional safety compiler have been
updated to ensure that the <builtins.h> header file is automatically included by <xc.h>,
that builtin_avr_flash_segments is defined only on architectures that support __memx
(that is, all architectures except avrtiny), and that declarations of the builtins are provided
in avr-libc.
Last edit: Mikael Nordman 2024-03-11
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I try to build Flashforth for the ATmega128RFA1 (for the Smartresponse XE) with MPLAB X IDE 5.35.
I use the Projekt in flashforth/avr/FF-ATMEGA.X.
When I click build (or clean and build) I get the following errors:
What am I doing wrong?
The
../src/ff-xc8.asm:5158: Error: non-constant expression in ".if" statement
might be a configuration problem.The other two leave me complete baffeld.
Last edit: Tobias 2024-02-18
Update: I found a configuration problem, which solves some of the problems.
But the errors with
/Applications/microchip/xc8/v2.46/avr/avr/include/avr/builtins.h:59: Error: unknown opcode
extern'` remain.I did the build for ATmega128RFA1.
In the config-xc8.inc file I had to disable the load led.
And I had to comment the registers WDTCR in the words WD+ and WD-.
Apparently the WDTCR register does not exist in the ATmega128RFA1.
With these change it builds and runs in the simulator. MPLABX 6.15 and XC8 2.45 on linux.
There should be no need to add any additional include files.
Have made any changes to the FF files ?
Hi ,
I'm trying to compile FF for pic24 , and also have a lot of these errors : Error: non-constant expression in ".if" statement.
What is this configuration problem if I may ask.
I can not find a solution so far.
Regards,
Ronny
I had similar issues with attempting to compile. I had the following errors:
"/Applications/microchip/xc8/v2.46/avr/avr/include/avr/builtins.h:59: Error: unknown opcode extern'"
I also noticed that above Mikael's version of XC8 was 2.45. I went to the Microchip Download Archives, downloaded and installed 2.45, and everything works.
Fun.
Lief
XC v2.46 has made the below change, that causes the problem with builtins.h .
Need to check what can be done about it. Maybe xc.h should not be included from assembly code.
For now XC8 v2.45 must be used to compile FlashForth.
Last edit: Mikael Nordman 2024-03-11
If you replace
with
then it compiles with XC v2.46.
BR Mikael
Version c499963, dated April 1, 2024 has been confirmed on macOS, to compile with xc8 2.46.