Search found 7 matches
- 04 Mar 2020 00:58
- Forum: mikroC PRO for ARM General
- Topic: MikroC VTFT Project Code Generation Deletes User Code?
- Replies: 1
- Views: 1385
MikroC VTFT Project Code Generation Deletes User Code?
Hi All, I keep having issues when transitioning back and forth between VTFT GUI editor and the MikroC compiler that random elements of my main code get deleted when VTFT generates its new code and merges. Sometimes the discrepancy gets picked up and requests the differences in code to be manually me...
- 27 Feb 2020 23:34
- Forum: mikroC PRO for ARM General
- Topic: Array of Visual TFT objects
- Replies: 1
- Views: 1222
Re: Array of Visual TFT objects
Nevermind - got it! Correct code was to declare the pointer array as object of TButton. TButton_Round * const TButtonPtr[4] = {&ButtonModule1, &ButtonModule2, &ButtonModule3, &ButtonModule4}; for(i=0;i<=3;i++){ TButtonPtr[i]->Color=CL_RED; DrawRoundButton(TButtonPtr[i]); } This thread was useful: ht...
- 27 Feb 2020 06:39
- Forum: mikroC PRO for ARM General
- Topic: Array of Visual TFT objects
- Replies: 1
- Views: 1222
Array of Visual TFT objects
Hi there, I'm trying to cycle through a bunch of TButtons I have to change their colour. const char *TButtonPtr[4] = {&ButtonModule1, &ButtonModule2, &ButtonModule3, &ButtonModule4}; for(i=0;i<=3;i++){ TButtonPtr[i]->Color=CL_RED; DrawRoundButton(TButtonPtr[i]); } Compiler doesn't like this line: TB...
- 19 May 2014 03:53
- Forum: Libstock Discussion
- Topic: Libstock exclusive: FAT32 and Network Ethernet Libraries
- Replies: 63
- Views: 720538
Re: Libstock exclusive: FAT32 and Network Ethernet Libraries
Hi, I'm having a problem with the FAT32 library on the Mikromedia plus STM32. I am datalogging using swap files. Once I fill up the amount of sectors available in the swap file, I create a new swap file and continue logging to the new file. Everything works well until I have created about ~125 logs,...
- 18 Apr 2014 02:14
- Forum: Library Development Discussion
- Topic: FAT32 library for MMC/SD cards
- Replies: 84
- Views: 91937
Re: FAT32 library for MMC/SD cards
Hi, I'm having a problem with the FAT32 library on the Mikromedia plus STM32. I am datalogging using swap files. Once I fill up the amount of sectors available in the swap file, I create a new swap file and continue logging to the new file. Everything works well until I have created about ~125 logs,...
- 24 Feb 2014 04:33
- Forum: mikroC PRO for ARM General
- Topic: RTC sub-second issue
- Replies: 2
- Views: 2198
Re: RTC sub-second issue
Has anyone used the subsecond register on ARM, or have example code they can point me to? I see in the note section of the STM reference manual it states: "Note: SS can be larger than PREDIV_S only after a shift operation. In that case, the correct time/date is one second less than as indicated by R...
- 22 Feb 2014 06:01
- Forum: mikroC PRO for ARM General
- Topic: RTC sub-second issue
- Replies: 2
- Views: 2198
RTC sub-second issue
Hi, I am having troubles with subsecond register on the Mikromedia Plus stm32 I have a datalogger which logs data with a timestamp. I am doing multiple logs (~35) per second, so wanted to log sub-second as well. HOWEVER, as soon as I read the sub-second register (RTC_SSR), the seconds no longer incr...