Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM990004 works when programmed with .hex through MPLAB IPE, but not when compiled and programmed from source code using MPLAB X #15

Open
MattStarfield opened this issue Nov 7, 2017 · 4 comments

Comments

@MattStarfield
Copy link

When I follow the instructions to Compile and Program using the 2.0.0 Release project source code from here, the code successfully compiles and programs, but the board shows no flashing LED activity. I can verify that the code is running on the board because I can use a serial terminal to send {"message":{"command":"hello"}} and get a valid response.

If I use MPLAB IPE to push dm990004-production.hex to the board, it immediately starts flashing LEDs at power on.

There seems to be something different between the source code and the .hex production file. Can anyone offer some help in figuring out why my source code behaves differently than the .hex code?

@MattStarfield
Copy link
Author

I've come to believe this issue is due to the fact that this src code was developed for Harmony v1.0.9 and is incompatible with Harmony v2.0.4. I think the compile process is missing links to the BSP files included in the src code.

@MattStarfield
Copy link
Author

@mmbradley - can you weigh in on my suspicion that this src code released Dec 2016 for the DM990004 AWS-IoT-Ethernet dev board may not be compatible out of the box with Harmony v2.0.4? If so, would there be any chance to get some help with a modified src code release that will compile and run with MPLAB X v4.01 and Harmony v2.0.4?

I'm new to the Microchip programming environment and from what I've been reading in the forums, the process to bring code from Harmony v1.x to v2.x is a little more intense than a motivated noob may be able to knock out.

Any help would be greatly appreciated! :)

@MattStarfield
Copy link
Author

MattStarfield commented May 11, 2018

UPDATE (and to answer @JoAnze), the problem was as I suspected - the project was initially built with MPLAB Harmony v1.09, so the Project Properties in MPLAB X all point to a Harmony folder that is no longer readily available and thus MPLAB X can't find the Harmony libraries it needs to compile the source code. You'll need to set the project properties to look for the Harmony libraries in the appropriate folder (not the non-existent Harmony v1.09 folder).

These steps should help out...

  • First, install the latest version of MPLAB X Harmony
  • With the project open in MPLAB X and set as Main Project,
  • Go to File > Project Properties
  • Select "General"
  • In the "Source Folders" section, click the "Add" button
  • Navigate to the install folder for the latest version of Harmony you installed
  • Select folder "..harmony/v1_09" and click the "Remove" button

screenshot_1

@MattStarfield
Copy link
Author

MattStarfield commented May 11, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant