Hello to the whole community. Excellent project! I really love it. I am trying to compile FF for the PIC24HJ128GP502 (UART project, not USB) and I am getting the following errors:
../src/ff-pic24-30-33.s:142: Error: non-constant expression in ".if" statement
../src/ff-pic24-30-33.s:244: Error: non-constant expression in ".if" statement
../src/ff-pic24-30-33.s:866: Error: non-constant expression in ".if" statement
../src/ff-pic24-30-33.s:1014: Error: non-constant expression in ".if" statement
../src/ff-pic24-30-33.s:1260: Error: non-constant expression in ".if" statement
../src/ff-pic24-30-33.s:2787: Error: non-constant expression in ".if" statement
However, by adding the following line: .equ USB_CDC, 0
in the p24hj_config.inc file the compilation is successful. Is this the correct way to do it?
Thanks in advance. Best regards.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello to the whole community. Excellent project! I really love it. I am trying to compile FF for the PIC24HJ128GP502 (UART project, not USB) and I am getting the following errors:
../src/ff-pic24-30-33.s:142: Error: non-constant expression in ".if" statement
../src/ff-pic24-30-33.s:244: Error: non-constant expression in ".if" statement
../src/ff-pic24-30-33.s:866: Error: non-constant expression in ".if" statement
../src/ff-pic24-30-33.s:1014: Error: non-constant expression in ".if" statement
../src/ff-pic24-30-33.s:1260: Error: non-constant expression in ".if" statement
../src/ff-pic24-30-33.s:2787: Error: non-constant expression in ".if" statement
However, by adding the following line: .equ USB_CDC, 0
in the p24hj_config.inc file the compilation is successful. Is this the correct way to do it?
Thanks in advance. Best regards.
Yes, that is the correct way to do it.
It seems to be missing from the PIC24HJ configuration file.
Mikael