Dear mikroElektronika,
Thanks for your supports in the new release (mikroC PRO for dsPIC).
When I checked a new feature which allows to generate COFF file for software and hardware debugging under Microchip's MPLAB software, but it don't work with an embedded assembly code section.
I attached an example for you.
Please let me why???
Thanks!
Cannot generate coff file with an embedded assembly program
Cannot generate coff file with an embedded assembly program
- Attachments
-
- ASM_INLINE.rar
- (51.9 KiB) Downloaded 197 times
Re: Cannot generate coff file with an embedded assembly program
Hello, freewheel!
I've examined the code you have send. The problem was generated by line 98 in your asm_inline.c file, a not by asm commands. Even, variable 'c' has been eliminated by optimizer, it still make some trouble to COFF. Thank you for reporting. We will fix this issue and include it in next release.
Temporary solution:
Please, remove a line 98 from your code. The 'c' variable is already removed by optimizer, so it wouldn't take effect to your code.
Regards,
I've examined the code you have send. The problem was generated by line 98 in your asm_inline.c file, a not by asm commands. Even, variable 'c' has been eliminated by optimizer, it still make some trouble to COFF. Thank you for reporting. We will fix this issue and include it in next release.
Temporary solution:
Please, remove a line 98 from your code. The 'c' variable is already removed by optimizer, so it wouldn't take effect to your code.
Regards,
nlukic
mikroElektronika team
mikroElektronika team
Re: Cannot generate coff file with an embedded assembly program
Dear nlukic!
Thanks for your reply. I removed the line 98 and COFF file has been generated! But when I loaded it by Mplab IDE enviroment, it has an error "Failed to load C:\...\asm_inline.coff ".
Please explain me what happenning is?
Thank again!
Thanks for your reply. I removed the line 98 and COFF file has been generated! But when I loaded it by Mplab IDE enviroment, it has an error "Failed to load C:\...\asm_inline.coff ".
Please explain me what happenning is?
Thank again!
Re: Cannot generate coff file with an embedded assembly program
Hello, freewheel!
I've try it again, and it works fine for me. Check out the attachment! Are you sure you have loaded new generated coff into MPLAB?
Regards,
I've try it again, and it works fine for me. Check out the attachment! Are you sure you have loaded new generated coff into MPLAB?
Regards,
- Attachments
-
- asm_inline.rar
- (100.15 KiB) Downloaded 175 times
nlukic
mikroElektronika team
mikroElektronika team