PIC24FJ512GA606 download error!

For general Flowcode discussion that does not belong in the other sections.
Steve-Matrix
Matrix Staff
Posts: 1234
http://meble-kuchenne.info.pl
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 167 times
Been thanked: 277 times

Re: PIC24FJ512GA606 download error!

Post 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?

seokgi
Posts: 165
Joined: Thu Dec 03, 2020 1:43 pm
Has thanked: 5 times
Been thanked: 6 times

Re: PIC24FJ512GA606 download error!

Post 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

Steve-Matrix
Matrix Staff
Posts: 1234
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 167 times
Been thanked: 277 times

Re: PIC24FJ512GA606 download error!

Post 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.

seokgi
Posts: 165
Joined: Thu Dec 03, 2020 1:43 pm
Has thanked: 5 times
Been thanked: 6 times

Re: PIC24FJ512GA606 download error!

Post 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.

Steve-Matrix
Matrix Staff
Posts: 1234
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 167 times
Been thanked: 277 times

Re: PIC24FJ512GA606 download error!

Post by Steve-Matrix »

You need to change the target device to the correct one in the "project options" screen under the "build" menu.

seokgi
Posts: 165
Joined: Thu Dec 03, 2020 1:43 pm
Has thanked: 5 times
Been thanked: 6 times

Re: PIC24FJ512GA606 download error!

Post by seokgi »

That is Project Option window.
But I do not find Build Option.

Please teach me slowly.

Thank you.

Happy New Year!
Attachments
K-004.png
K-004.png (44.02 KiB) Viewed 3377 times

medelec35
Matrix Staff
Posts: 1432
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 506 times
Been thanked: 468 times

Re: PIC24FJ512GA606 download error!

Post 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 3373 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 3373 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.
Martin

seokgi
Posts: 165
Joined: Thu Dec 03, 2020 1:43 pm
Has thanked: 5 times
Been thanked: 6 times

Re: PIC24FJ512GA606 download error!

Post 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.

seokgi
Posts: 165
Joined: Thu Dec 03, 2020 1:43 pm
Has thanked: 5 times
Been thanked: 6 times

Re: PIC24FJ512GA606 download error!

Post by seokgi »

As your advice, if you select and compile, the target device is changed. It is possible to check without MCU.

medelec35
Matrix Staff
Posts: 1432
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 506 times
Been thanked: 468 times

Re: PIC24FJ512GA606 download error!

Post 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.
Martin

Post Reply