Posted on June 16, 2011 at 16:10Hi, I read Unique ID from address 0x48CD to 0x48D8, byte per byte, on two STM8S105C6 with functions provided by stm8s_flash.c [FLASH_readbyte()]. The results are: x wafer: 0x001B y wafer: 0x800D n wafer: 0x00 lot n...
Posted on April 16, 2010 at 11:21Hi all, I read your firmware code in ST site to spark an HID 250 Watt Lamp. I found out that you sense an unused pin ANALOG1 as Vsens during IgnitionStart and IgnitionCheck routine... those routines are from line 153...
Posted on November 18, 2011 at 14:57I see something strange... ADDW X, #20 ADDW X, #$1000 where is $ ended??? Do you know what it mean? I'm using C not assembly. I don't know... As I could see ADDW is 1 byte for instruction and 2 for loading address...
Posted on October 20, 2011 at 21:50Also I find out that on a STM8s105, the internal assert_param() in FLASH_ReadByte() function could catch addresses used by Unique ID, if you find problems try a simple: #define FLASH_UNIQUE_ID_ADDRESS 0x48C...
Posted on October 18, 2011 at 19:14It's not useless, it's may be usebad. :) assert_param will catch wrong parameters that could be passed to register by stlibrary functions. If not used, you could have bad things. Try out the #define location with '...
Posted on October 18, 2011 at 18:48Warning... If you need it, it's better using ''extern volatile'' variables in main, accessed by the interrupt.c file. A much better way is to make a set of ''set_var'' ''get_var'' ''clr_var'' functions in your main...