sdutempl

sdutempl
7 Rep. 0 Answers 2 Questions 0 Followers 0 Following

Stats

  • 0 answers, 0 selected
  • 2 questions, 0 solved
  • Member for 1 years, 6 months, 11 days
  • 3255 profile views
  • Last seen December 21, 2018

Reputation

Total 7
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
+1
September 19, 2017 Commented I have a feeling there is something rather fundamental that is not properly configured in my setup. At the moment I am using breakpoints to inspect my string after the call to sprintf() and the data is either completely unchanged or corrupted (depending ... Here is a very simple example: I have a string variable: uint8_t strTmp[128]; I make a call to sprintf() as follows: strLen += sprintf( strTmp, " %02X", i); where i = 0, 1, 2, .. 15. Before the first call to sprintf(), the variable looks like this: Name : strTmp Details:'\0' Default:0xfa722 Decimal:1025826 Hex:0xfa722 Binary:11111010011100100010 Octal:03723442 After the call to sprintf(), the variable looks like this: Name : strTmp Details:'\0' Default:0xfa722 Decimal:1025826 Hex:0xfa722 Binary:11111010011100100010 Octal:03723442 (It hasn't changed... At other times, the data is completely corrupted.) I have the impression that something is improperly configured, though I have include the files , and Are there any compiler/linker directives that may have an impact (on the stack alignment, for example) that should be set as part of the environment? My project is using the RL78G14 and the GNURL78_v15.02 toolchain... I'm not sure where I can find the libraries (doesn't seem to be available in the Project->Preferences dialog), but I created the project in e2studio 6.0.0 and am using the CodeGenerator to provide the routines for IIC and UART functionality... I believe the libraries are project-built, but will confirm if I can find out where to find this info... Thanks for your help...
+1
September 15, 2017 registration

Votes

0 votes received 0/100 0up 0down
0 votes casted 0/100 0up 0down

Top Answers

No answer posted yet!
Support