However, even when I correct the jump address from main.map the LED doesn't blink. Then I included the delay loop into main() to avoid function calls altogether (->main now at 0xa0), but still no blinking. Darn!

Hmm, if that's the case now, hard to say.

I don't have STM8 hardware on hand right now, but I ran your code from the original message in ucSim, telling it to break upon writes to PC_ODR (0x500A), and start execution from PC 0xD7 (main). It churns away and does what is expected, breaking at regular intervals. So, it appears at least the code does what is expected.

Are you sure you don't have a hardware problem? Is your LED hooked up correctly? (Although, given your use of PC5, I would guess you have an ST Nucleo board, because that's where they connect the 'user' on-board LED.)

Can you post the assembly code that was output from compilation? Or maybe the Hex file?

Regards,
Basil Hussain


_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to