Menu

PIC24HJ Issues

Fulgore1
2021-08-25
2021-08-25
  • Fulgore1

    Fulgore1 - 2021-08-25

    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.

     
  • Mikael Nordman

    Mikael Nordman - 2021-08-25

    Yes, that is the correct way to do it.
    It seems to be missing from the PIC24HJ configuration file.

    Mikael

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.