User Profile
User Widgets
Contributions
Re: MAX 10 JAM player programming failure
Hi dabo, Thanks a lot for the suggestions. I created a jam file with Program/Configure or Verify checkboxes unchecked with and without the real-time ISP enabled. I also used the quartus_jbcc.exe to generate the jbc file. We call the jbi_execute twice. Once with action "PROGRAM" and secondly with "VERIFY". Ill check how to enable the optional procedure. As for the results, it is unfortunately still the same. When I disable ISP, I see that the generated filesizes are higher but I get the exit_code 10 "exit_string = "Device programming failure"; If I enable ISP, the device is erased but not programmed. Thanks Jay1.8KViews0likes0CommentsMAX 10 JAM player programming failure
Hello, I had raised this issue before. The question was unfortunately closed off without a solution. https://community.intel.com/t5/Programmable-Devices/JAM-Player-exit-code-10-Device-Programming-Failure/m-p/1353174#M83032 We are using JAM player from an embedded MCU. To load program from quartus, we use the .pof file with the programmer and USB blaster II The program is ported to the embedded target and we have four pins connected to the MAX10 to program the FPGA. I tried two options: 1. Disabled the ISP and generated the JAM file and converted it to a hex file and used it to program the FPGA. I get the exit code 10 as mentioned before. The image in fpga is unaffected. 2. Enabled the ISP and used the generated the JAM file to program the FPGA. I got exit code 0!! from both Program and Verify action. After power cycling though, I saw the FPGA logic is absent and it is at the reset state. So did the above option just erase the flash? In that case, why would I get successful programming confirmation from JAM player? Or do I need to try something else to transfer the logic to SRAM if I use the ISP option?1.9KViews0likes3CommentsRe: JAM Player exit code 10 Device Programming Failure
Hi Aiman, Apologies for the delayed response. I had some access issues to the community forum. I have attached the settings. The Max 10 JTAG chain is connected to GPIO of our embedded mcu. We ported the jam player to the cpu. We generate the JAM file and then convert the JAM file to JBC format using the jbc.exe using "jbc -f2 -u xxx.jam xxx.jbc" Are the above options correct to use? We convert the jbc file to a C file with the entire buffer. Regards Jay8KViews0likes0CommentsRe: JAM Player exit code 10 Device Programming Failure
Hi Aiman, Is there any other options I can try? I can recreate the ISP situation I described above. If I disable ISP, I get exit_code 10 and device program in CFM is unchanged. If ISP is enabled, I get exit_code 0 but it erases the CFM. We are using 10M08SCU169A7G device and JTAGEN is disabled. So the JTAG pins are reserved for JTAG alone. Regards Jay8.1KViews0likes0CommentsRe: JAM Player exit code 10 Device Programming Failure
Hi Aiman, I would describe my setup once again. As I mentioned in previous posts, we are not using JAM player from the pc. We are using JAM player from an embedded MCU. To load program from quartus, we use the .pof file with the programmer and USB blaster II The program is ported to the embedded target and we have four pins connected to the MAX10 to program the FPGA. After you shared the tip about the ISP option, I tried two options: 1. Disabled the ISP and generated the JAM file and converted it to a hex file and used it to program the FPGA. I get the exit code 10 as mentioned before. The image in fpga is unaffected. 2. Enabled the ISP and used the generated the JAM file to program the FPGA. I got exit code 0!! from both Program and Verify action. After power cycling though, I saw the FPGA logic is absent and it is at the reset state. So did the above option just erase the flash? In that case, why would I get successful programming confirmation from JAM player? Or do I need to try something else to transfer the logic to SRAM if I use the ISP option? Regards Jay8.1KViews0likes0CommentsRe: JAM Player exit code 10 Device Programming Failure
Hi Aiman, I checked the page 5 you mentioned. https://www.intel.com/content/www/us/en/docs/programmable/683089/current/generating-byte-code-jam-stapl-files.html I have also attached the options I saw from the programmer when generating the jam file. The ISP clamp is turned off by default and I checked to make sure the ISP option is unchecked in the programmer options. I have attached the screen shots below. It is not clear for me how to disable the ISP option. We have an MCU which is used to program the MAX 10 on the board. The JAM player is ported to that MCU to run the update. Do I change the ISP mode from a quartus option in the .jam file generation or do i need to change anything in the jam player to send that command? For eg: in the jbi_execute function? Thanks in advance for your help. Regards Jay8.1KViews0likes0CommentsRe: JAM Player exit code 10 Device Programming Failure
Dear Aiman, Thats a great tip. Thank you very much. Could you let me know how to turn off the real time ISP feature? We are using JAM player from embedded processor. We can program in the string if I could know the command. Regards Jay8.1KViews0likes0CommentsRe: JAM Player exit code 10 Device Programming Failure
I can the exit code 10 is set in case 0x25 case 0x25: /* EXIT */ IF_CHECK_STACK(1) { *exit_code = (int) stack[--stack_ptr]; } done = 1; break; How or why it gets here is harder to find out as the stack array is modified in many of the case statements which go to 0x808.1KViews0likes0Comments