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?
PIC24FJ512GA606 download error!
-
- Matrix Staff
- Posts: 1269
- http://meble-kuchenne.info.pl
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 169 times
- Been thanked: 285 times
Re: PIC24FJ512GA606 download error!
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
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
-
- Matrix Staff
- Posts: 1269
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 169 times
- Been thanked: 285 times
Re: PIC24FJ512GA606 download error!
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.
-
- Matrix Staff
- Posts: 1269
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 169 times
- Been thanked: 285 times
Re: PIC24FJ512GA606 download error!
You need to change the target device to the correct one in the "project options" screen under the "build" menu.
-
- Matrix Staff
- Posts: 1464
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 514 times
- Been thanked: 474 times
Re: PIC24FJ512GA606 download error!
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: 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
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.
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: 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
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
Re: PIC24FJ512GA606 download error!
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.
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.
-
- Matrix Staff
- Posts: 1464
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 514 times
- Been thanked: 474 times
Re: PIC24FJ512GA606 download error!
If you select Build ribbon, Compile to Hex, the compiler text should show you what device is selected.
for example:
You can see the atmega328p is the target device.
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"
Martin