sdutempl

sdutempl
7 ポイント. 0 回答 2 質問 0 フォロワー 0 フォロー

統計

  • 0 answers, 0 selected
  • 2 questions, 0 solved
  • 2 年, 10 ヶ月, 30 日 のメンバー
  • 7229 プロフィール閲覧
  • Last seen 12月 21, 2018

ポイント

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
9月 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
9月 15, 2017 registration

投票数

0 投票獲得 0/100 0up 0down
0 票獲得 0/100 0up 0down

Top 回答

回答がまだありません
サポート