cancel
Showing results for 
Search instead for 
Did you mean: 

uint32_t variable value using STVD and cosmic FSE compiler.

jjsnz
Associate

Hello,

I'm working on a project using STVD and the COSMIC FSE compiler to program a stm8s207 processor and having trouble assigning large values to a uint32_t or unsinged int variable. I follow different syntax but they all yield the same result.

These are my variables.

 uint32_t x = (01020303uL);

 uint32_t a = (21020303uL);

 uint32_t b = (65535uL);

 uint32_t c = (65537uL);

When I run the debugger and watch the values for this variables this is what I get.

x 2666496

a 26802

b 838861344

c 33883905

What could I be missing in my program or project properties in order to get this to work?

0 REPLIES 0