Page 2 of 4

Re: PIC24FJ512GA606 download error!

Posted: Wed Dec 29, 2021 12:00 pm
by Steve-Matrix
The error messages you post (e.g. "Target Device ID (0x60100000) is an Invalid Device ID. Please check your connections to the Target Device") sound like a hardware issue, so it's strange that it is working within MPLAB. I assume the command line parameters within MPLAB are different to those being used in Flowcode.

Are you able to post any output from MPLAB so we can compare the settings?

Re: PIC24FJ512GA606 download error!

Posted: Thu Dec 30, 2021 2:09 am
by seokgi
That is MPLAB IPE v5.50 message.

Loading code from D:\Project\Ing\201008-SJ_HiTech-Auto_Lifting_Lamp_CTL\Program\Auto_Lifting_Lamp_CTL_211228_1-PIC24FJ512GA606.hex...
2021-12-30 11:07:29 +0900 - Hex file loaded successfully.


*****************************************************

Connecting to MPLAB PICkit 3...

Currently loaded firmware on PICkit 3
Firmware Suite Version.....01.56.09
Firmware type..............dsPIC33F/24F/24H
Target voltage detected
Target device PIC24FJ512GA606 found.
Device Revision ID = 5
DEVSN0 = 00000000
DEVSN1 = 00000000
2021-12-30 11:08:11 +0900 - Programming...


Device Erased...

Programming...

The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0x41ff
Programming/Verify complete
2021-12-30 11:08:22 +0900 - Programming complete

Re: PIC24FJ512GA606 download error!

Posted: Thu Dec 30, 2021 11:31 am
by Steve-Matrix
MPLAB is finding a PIC24FJ512GA606 device, but in Flowcode you are compiling for a PIC24FJ512GB610. That could be the problem. Change the target in Flowcode to the correct chip and hopefully it will work.

Re: PIC24FJ512GA606 download error!

Posted: Fri Dec 31, 2021 7:50 am
by seokgi
Thank you for your interest.
When will it be possible to edit?
Or tell me how to fix it and I'll do it.

happy New Year.

Re: PIC24FJ512GA606 download error!

Posted: Fri Dec 31, 2021 11:57 am
by Steve-Matrix
You need to change the target device to the correct one in the "project options" screen under the "build" menu.

Re: PIC24FJ512GA606 download error!

Posted: Sat Jan 01, 2022 1:01 am
by seokgi
That is Project Option window.
But I do not find Build Option.

Please teach me slowly.

Thank you.

Happy New Year!

Re: PIC24FJ512GA606 download error!

Posted: Sat Jan 01, 2022 8:55 am
by medelec35
Hi, Happy new year to you.
When you what to change the target of your project, you use the Build ribbon then Project options as can be seen in the image below:
Build ribbon.png
Build ribbon.png (51.71 KiB) Viewed 3452 times
A tip for changing target.
Right-click on any random target, then select search.
Enter the partial name of the new target in the find window, in your case

Code: Select all

512ga606
Find target.png
Find target.png (69.56 KiB) Viewed 3452 times
Click on Find next.
When you change your target, you much make sure all configuration settings within the Project Options match your hardware.
Then check all pin connections for every component and inputs/outputs are also correct.

There are great tutorials if you want to learn more about how to use Flowcode
If you select Education at the top of the page, there is a full course.
If you don't have the E-blocks 2 hardware, then just rely on the simulator.
Alternatively, Just for getting you started you can use one of the getting starting guides by selecting the Support, Support Home menu at the top of the page.

Re: PIC24FJ512GA606 download error!

Posted: Sun Jan 02, 2022 10:04 am
by seokgi
happy New Year.
Thank you for answer.
The core of the question is, if you select PIC24FJ512GA606 and run compilation or download, the existing selection will be changed to PIC24FJ512GB610.

Re: PIC24FJ512GA606 download error!

Posted: Sun Jan 02, 2022 10:11 am
by seokgi
As your advice, if you select and compile, the target device is changed. It is possible to check without MCU.

Re: PIC24FJ512GA606 download error!

Posted: Sun Jan 02, 2022 11:26 am
by medelec35
If you select Build ribbon, Compile to Hex, the compiler text should show you what device is selected.
for example:

Code: Select all

Using FCD settings for compiler
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\AVR\batchfiles\avra.bat  "C:\Program Files (x86)\Flowcode\Common\Compilers\avrv5\" atmega328p "D:\Matrix\Components Converting to Style Sheet Type\Embed Comp Test Only.elf" "D:\Matrix\Components Converting to Style Sheet Type\Embed Comp Test Only.c" "D:\Matrix\Components Converting to Style Sheet Type\Embed Comp Test Only.lst"
You can see the atmega328p is the target device.