Jump to content

teunizz

EstablishedMember
  • Content Count

    69
  • Joined

  • Last visited

Everything posted by teunizz

  1. After a fresh install of Windows XP, I have a problem with registering the plugins voor SB 6.86. Registering of SB and plugins (preg.exe) works OK. However, when I start SB IDE, I see the following messages: How do I solve this?
  2. teuniz@linux-1g99:~/.wine/drive_c/Program Files/SourceBoost> wine preg.exe fixme:reg:RegSetKeySecurity :(0x7c,4,0x398e00): stub fixme:exec:SHELL_execute flags ignored: 0x00000400 From here the mousecursor changes in a waitingcursor and nothing happens anymore, I have to kill the program.
  3. SB IDE and compiler runs fine. When I run preg.exe to register SB, I can enter the name and registrationcode. However, when I click on "OK" the window freezes and nothing happens. OS: OpenSUSE 10.3 WINE version 0.9.55 SB version 6.84
  4. Not my experience, just code once and compile and run on Windows, Mac and Linux without the need to tweak the code. What are you talking about? You can download the latest release of Qt 4.2.3 at Trolltech website including the sourcecode. It's not older than a couple of months... Maybe the GPL'ed version of Qt lags behind the commercial version regarding some features. But if you need to keep your program closed source you need the commercial version anyway. Any way, I don't have the illusion that the guys from SB will try any attempts to make it available for other platform
  5. Today I installed SB 6.70 on openSuSE 10.2 with Wine 0.9.35. Installation went well. I am able to start the IDE and to compile and link the sample/demo sourcecode. The only problem I have is to register. When I start preg.exe with Wine, I'm able to insert the name and the registrationkey. Then, after some time, I get the following message: boostc.pic16.exe: failed to register (code:259) boostc.pic18.exe: failed to register (code:259) What am I doing wrong here? I hope somebody can help me because SB is the only windowsprogram I am still using. It's crazy to reboot every time f
  6. I'm using Qt from Trolltech. IMHO, this is the only real hasselfree library to create OS-independant programs. Code once and you can compile it on Windows, Mac and Linux.
  7. Pls give us a Linux-version first... *I get tired from rebooting the computer when I need to modify the software in the Pic's. These days I can do everything with Linux (drawing electronic schematics, create boardlayouts, drawing mechanics, (all the CAD-stuf), programming the userinterface for the pc, write the documentation, etc. The only exception are the Pics, this is very annoying...
  8. Bug description: A variable declared as unsigned long, can not contain values higher than 2147483647. Steps to reproduce: Compile the following code for a PIC18F4620 and run it in the debugger, at the same time watch the variable "var". #include <system.h> void main() { unsigned long var; var = 2147483648; while(1); } Expected behaviour: A variable declared as unsigned long should be able to contain values in the range of 0 ~ 4294967295. Is the problem 100% reproduceable: Yes, this problem is 100% reproducable. IDE version: SourceBoost 6.60 Comp
  9. Dave, Pavel, More than two months ago I reported a serious bug in 32bit math: http://forum.sourceboost.com/index.php?showtopic=1903 Till today there's no fix. Not even a confirmation or reaction. Pls can you confirm this bug and tell us when there will be a fix available? Regards, Teuniz
  10. Bug description: Dividing a member of an array of signed long's gives wrong result. Steps to reproduce: unsigned char i; signed long array[3]; i = 2; array[i] = 107643; array[i] /= 377; Expected behaviour: After running this code array[2] should have the value 285 but instead it has the value 486646907. Is the problem 100% reproduceable: Yes, this problem happens every time. IDE version: 6.40 Compiler: BoostC Compiler version: 6.40 Target device: PIC18F4620 OS: Windows XP Comments: This is a very annoyi
  11. Dave, Pavel, When will these bugs be fixed? http://forum.sourceboost.com/index.php?showtopic=1742 http://forum.sourceboost.com/index.php?showtopic=1790 http://forum.sourceboost.com/index.php?showtopic=1837 http://forum.sourceboost.com/index.php?showtopic=1755 Regards, Teunizz
  12. BoostC compiler fails with the following code: #include <system.h> union{ unsigned short pntr; unsigned char segment; unsigned char index; } buf_out; void main(void) { while(++buf_out.index) { i++; } while(1); } Building... BoostC Optimizing C Compiler Version 6.35 (for PIC18 architecture) http://www.sourceboost.com Copyright© 2004-2006 Pavel Baranov Copyright© 2004-2006 David Hobday Licensed to XXXXX under Single user Full License for 1 node(s) Limitations: PIC18 max code size:Unlimited, max RAM banks:Unlimited, Non commercial u
  13. I like this one as well: C Programming Reference Regards, Teuniz
  14. Maybe this will help? From the PIC18FXXXX programming spec DS39622F page 34 http://ww1.microchip.com/downloads/en/DeviceDoc/39622F.pdf Regards, Teuniz
  15. Try this: unsigned char read_eeprom(unsigned char addr) { eeadr = addr; // low byte eeadrh = 0; // high byte clear_bit(eecon1,EEPGD); // select eeprom memory set_bit(eecon1,RD); // set read bit return(eedata); } void write_eeprom(unsigned char addr, unsigned char data) { eeadrh = 0; // high byte eeadr = addr; // low byte eedath = 0; // high byte eedata = data; // low byte clear_bit(eecon1,EEPGD); // select eeprom data memory set_bit(eecon1,WREN); // enable w
  16. Compile the following code and run the debugger, add the variable "var" to the watchwindow, then you will see it's "little endian". #include <system.h> union{ unsigned long four; unsigned short two[2]; unsigned char one[4]; }test; unsigned char array[]={0x11,0x22,0x33,0x44}; unsigned long result; int main(void) { test.four = 0x44332211; result = test.four; result = test.two[0]; result = test.one[0]; result = *((unsigned long *)test.one); result = *((unsigned short *)test.one); result = *((unsigned char *)test.one); result = *((unsigned long *)a
  17. Hi, Why can't I add elements of a struct to the watchwindow in the debugger? Regards, Teuniz
  18. Hi, I found a bug in BoostC 6.25. #include <system.h> unsigned char subtract(void); struct{ unsigned short a; unsigned long b; } test; unsigned char result; void main() { test.a = 545; test.b = 1000944; result = subtract(); while(1); } unsigned char subtract(void) { unsigned long var; var = test.b - test.a; if(var==1000399) return(1); else return(0); } After var = test.b - test.a var is 0 instead of 1000399! Regards, Teuniz
  19. Try this: unsigned int a; for(a=0; a<212; a++) { delay_s(60); }
  20. When will SourceBoost 6.16 be available? I would like to use 32 bit var's without having troubles with incorrect code generation for 32 bit long array elements as operands. Grtz, Teuniz
  21. "This is not true for pic16f676. From the datasheet: ""RA4 TTL CMOS Bi-directional I/O w/ programmable pull-up"" I can't find it in the datasheet, what datasheet are u using and at what page? I'm using the datasheet 40039c.pdf from Microchip.
  22. I found this in the pic midrange manual: "The RA4 pin is a Schmitt Trigger input and an open drain output. All other RA port pins have TTL input levels and full CMOS output drivers." http://ww1.microchip.com/downloads/en/DeviceDoc/31009a.pdf
  23. Yep: unsigned char array[256]; or: unsigned char array[]={0x80,0x83,0x86,0x89,0x8c,0x8f,0x92,0x95,0x98,0x9c,0x9f,0xa2,0xa5,0xa8,0 xab,0xae, 0xb0,0xb3,0xb6,0xb9,0xbc,0xbf,0xc1,0xc4,0xc7,0xc9,0xcc,0xce,0xd1,0xd3,0xd5,0xd8, 0xda,0xdc,0xde,0xe0,0xe2,0xe4,0xe6,0xe8,0xea,0xec,0xed,0xef,0xf0,0xf2,0xf3,0xf5, 0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfc,0xfd,0xfe,0xfe,0xff,0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xfe,0xfd,0xfc,0xfc,0xfb,0xfa,0xf9,0xf8,0xf7,
×
×
  • Create New...