Hello, I hope to be in the right place. I am using sdcc to produce .hex that I load to PICs through UART and a bootloader (http://tinypicbootload.sourceforge.net/). It is working, but the control PC sw, while programming, always complains that the first 4 instructions are not "nop" as should be the request for that particular bootloader. I wanted to have a clean and safe setup so I tried everything with no success at all:
-adding 4x nop at the beginning of the main()
-adding --code-loc 0x4
-modifying the linker script as follows (with the switch -Wlmy.lkr):
// File: 12f1840_g.lkr// Generic linker script for the PIC12F1840 processorLIBPATH.CODEPAGENAME=vectorsSTART=0x0END=0x3PROTECTEDCODEPAGENAME=page0START=0x4END=0x7FFCODEPAGENAME=page1START=0x800END=0xFFF...
Hello, I hope to be in the right place. I am using sdcc to produce .hex that I load to PICs through UART and a bootloader (http://tinypicbootload.sourceforge.net/). It is working, but the control PC sw, while programming, always complains that the first 4 instructions are not "nop" as should be the request for that particular bootloader. I wanted to have a clean and safe setup so I tried everything with no success at all:
-adding 4x nop at the beginning of the main()
-adding --code-loc 0x4
-modifying the linker script as follows (with the switch -Wlmy.lkr):
-adding to the main .c file the following:
But nothing changes, the first instructions are always similar to the following:
Any suggestion?
Last edit: Morpheus 2018-08-21