cancel
Showing results for 
Search instead for 
Did you mean: 

doubts about how to start the PC @8080

lmx1
Associate II
Posted on December 10, 2013 at 23:55

Hi guys,

I have posted a doubt in stm8-discovery...but due to none response, I am trying to post it here...

 

this is the problem

[DEAD LINK /public/STe2ecommunities/mcu/Lists/STM8Discovery/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/STM8Discovery/Dubts%2c%20how%20to%20reset%20stm8s&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580004008F0975979A844820611B699DF2ED1&TopicsView=https://my.st.com/public/STe2ecommunities/mcu/Lists/STM8Discovery/AllItems.aspx&currentviews=14]stm8 doubt

I cant start the program, because the PC doesn  start at 0x8080 :S, it only works in stvd in debug mode afther setting by hand the PC :S

Any one knows why?

thanks in advance

tux
1 REPLY 1
fggnrc2
Associate II
Posted on December 11, 2013 at 10:01

Hi TuxD3v!

Every STM8 microcontroller starts executing code at 0x6000, which is the entry address of the STM8 bootloader.

If the STM8 bootloader detects that it hasn't to run, it jumps to the user code, i.e. 0x8080.

All you see in STVD is therefore ok.

The led doesn't blink because when its driving pin is configured as output the output port register bit (PD_ODR bit 0) is null, so the corresponding pin isn't driven high.

In my opinion, it's better to configure PD0 as output and toggle PD_ODR instead.

Regards

EtaPhi