hello Georg,
good idea! Didn’t think it was so easy :-)
I now changed the SW such that the bootloader is activated by default (safe
state) after uploading the hexfile. To skip this pass "-x“ as a commandline
argument.
Best wishes,
also Georg
>
> Message: 4
> Date: Mon, 22 Dec 2014 23:26:38 +0100
> From: Georg Ottinger <ge...@otelo.or.at>
> Subject: Re: [Sdcc-user] STM8 bootloader flash software (Georg
> Icking-Konert)
> To: sdcc-user@lists.sourceforge.net
> Message-ID: <54989a9e.3080...@otelo.or.at>
> Content-Type: text/plain; charset="windows-1252"
>
> Hi Georg,
>
> as pristine STM8s automatically end up in Bootloader mode - and the
> Optionbyte can be written from the internal Bootloader - it would make
> sense to add a command line flag that would enable the option bytes -
> something like this:
>
> addr = 0x487E; //OPTBL
> if (!stm8_write_memory(stm, addr, (uint8_t *)"\x55\xAA", 2)) {
> fprintf(fp_stderr, "Failed to OPTION Bytes memory at address
> 0x%08x\n", addr);
> goto close;
> }
>
> best wishes, Georg
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user