• AVR Freaks

TCP/IP with ENC28J60 on Harmony V3

New Member
  • Total Posts : 3
  • Reward points : 0
  • Joined: 2020/07/16 03:09:41
  • Location: 0
  • Status: offline
2020/07/16 17:16:12 (permalink)

TCP/IP with ENC28J60 on Harmony V3

TCP/IP with ENC28J60 on Harmony V3
I am trying to use Ethernet with PIC32MX270F512H and ENC28J60.
I am trying to output the code with Harmony v3 configurator, but it fails.
For the configuration of configurator, refer to the following site, and change the Driver Layer etc. to my configuration.
The details of the error are as follows.
[Info]: *** Generating Configuration ***
[Info]: Validating file list.
[Info]: Processing file list.
[Error]: An exception was thrown while attempting to markup a template file: C:\oku\pic\HarmonyV3\core\system\time\templates\system\system_initialize_data.c.ftl
[Error]: freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:
==> .vars["${SYS_TIME_PLIB?lower_case}"].COMPARE_SET_API_NAME [in template "system_initialize_data.c.ftl" at line 14, column 53]

Tip: It's the step after the last dot that caused this error, not those before it.
Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
Tip: It has been noticed that you are using ${...} as the sole content of a quoted string. That does nothing but forcably converts the value inside ${...} to string (as it inserts it into the enclosing string). If that's not what you meant, just remove the quotation marks, ${ and }; you don't need them. If you indeed wanted to convert to string, use myExpression?string instead.

FTL stack trace ("~" means nesting-related):
 - Failed at: ${.vars["${SYS_TIME_PLIB?lower_case}"... [in template "system_initialize_data.c.ftl" at line 14, column 51]
[Error]: - Failed at: ${.vars["${SYS_TIME_PLIB?lower_case}"... [in template "system_initialize_data.c.ftl" at line 14, column 51]
[Info]: An exception occured during file preprocessing.
[Info]: Stack trace filtered due to currently set log level. See "C:\Users\ShoheiOkumatsu\.mh3\mhc.log" for full details.
[Info]: To change log level filter see Tools->Options->Harmony in MPLABX
[Error]: Aborting project generation. Your project has not been modified.
[Info]: Manifest info has been written in file : C:\oku\pic\LAN\firmware\src\config\default\harmony-manifest-failure.yml

Exclude TIME from this configuration and code generation will succeed (but with a build error)
Is there a way to avoid the error in the code output?

0 Replies Related Threads

    Jump to:
    © 2020 APG vNext Commercial Version 4.5