Search found 45 matches

by Jimmie
12 Oct 2012 18:15
Forum: mikroC PRO for ARM General
Topic: Getting ST Perhipial library in a mikroC ARM project
Replies: 14
Views: 7207

Re: Getting ST Perhipial library in a mikroC ARM project

That sounds great :D . That would help me a lot.
by Jimmie
11 Oct 2012 13:48
Forum: mikroC PRO for ARM General
Topic: Getting ST Perhipial library in a mikroC ARM project
Replies: 14
Views: 7207

Re: Getting ST Perhipial library in a mikroC ARM project

The libraries I MikroC are e very easy to use but the bad thing is that you can’t see the code which makes debugging hard. Most of the times I want to change something in the library and then I have to rewrite the whole library, which sucks. I would like to see the code in the libraries so that I ca...
by Jimmie
10 Oct 2012 11:11
Forum: mikroC PRO for ARM General
Topic: Getting ST Perhipial library in a mikroC ARM project
Replies: 14
Views: 7207

Re: Getting ST Perhipial library in a mikroC ARM project

I never got it working. The ST standard library seems to be written for different compilers like Kiel, GNU and other, and I got stuck which compiler to select in the code. I think it would benefit MikroElektronika a lot if they would adapt the ST standard library to Mikroc. The ST standard library m...
by Jimmie
25 Sep 2012 08:11
Forum: mikroC PRO for ARM General
Topic: It takes time for RCC_BDCR.LSERDY to become 1
Replies: 14
Views: 9429

Re: It takes time for RCC_BDCR.LSERDY to become 1

Thanks for confirming.
I have spent days thinking it was in my code but now I can let this problem go. Maybe I will try changing the capacitors when I get time. I forgot to mention that I run STM32F407 on both the EasyMx Pro board and the mikromedia board.
by Jimmie
24 Sep 2012 15:02
Forum: mikroC PRO for ARM General
Topic: It takes time for RCC_BDCR.LSERDY to become 1
Replies: 14
Views: 9429

It takes time for RCC_BDCR.LSERDY to become 1

Hi I have hade problem with that it takes time(up to 30s) to start the RTC. I don’t know if it is something in my code or it is something wrong with the hardware. Anyway I was looking at the STM32F407xx datasheet and saw on page 93 that it says that external capacitance for the RTC crystal (32.768kH...
by Jimmie
15 Aug 2012 14:12
Forum: mikroC PRO for ARM General
Topic: Questions about the TFT display
Replies: 1
Views: 1917

Questions about the TFT display

Hi I have an easyMx Pro v7 for arm and I have some questions how to display some pictures on the TFT display. How do you convert a JPEG, BMP or any other picture format to a bitmap array located in the code memory? Are there any converter programs doing so that it’s written in the correct format? li...
by Jimmie
13 Aug 2012 08:20
Forum: Libstock Discussion
Topic: Libstock exclusive: FAT32 and Network Ethernet Libraries
Replies: 63
Views: 720793

Re: Libstock exclusive: FAT32 and Network Ethernet Libraries

Will the FAT32 library be available anytime soon for STM32?
by Jimmie
03 Aug 2012 20:24
Forum: mikroC PRO for ARM General
Topic: Sample project for USART using interrupts
Replies: 4
Views: 5970

Re: Sample project for USART using interrupts

try this for usart Rx interrupt: void usart_RX() iv IVT_INT_USART1 ics ICS_AUTO { if (UART1_Data_Ready()) { UART_Write_Text(UART1_Read()); } UART_Write_Text(" rx interrupt "); } void main() { UART1_Init(56000); UART_Write_Text("Start"); //USART_CR1.b5 = 1 ; USART1EN = 1; USART1_CR1.B5 = 1; NVIC_IntE...
by Jimmie
30 Jul 2012 14:49
Forum: mikroC PRO for ARM General
Topic: How to use PrintOut Library?
Replies: 3
Views: 3329

Re: How to use PrintOut Library?

Thanks that worked. But now I get problem that when I use PrintOut i get “Debug error: PC out of scope” and the program never gets back from where it branched. Why does it behave like this? Attaching test program: void PrintHandler(char c) { UART_Write(c); } void rtc_enterTimeAndDate() { unsigned in...
by Jimmie
29 Jul 2012 20:41
Forum: Development Boards
Topic: Changing vref on EasyMX PRO v7 and adding an RTC battery.
Replies: 4
Views: 1437

Changing vref on EasyMX PRO v7 and adding an RTC battery.

Hi is there any easy way to change vref on EasyMX PRO v7 for ARM from 1.8v to 3.3v?

I would also like to use the RTC on the MCU and would like to connect a battery on the vbat pin. Is there any easy way to do that?
by Jimmie
27 Jul 2012 14:25
Forum: mikroC PRO for ARM General
Topic: How to use PrintOut Library?
Replies: 3
Views: 3329

How to use PrintOut Library?

Hi I Want to try to use Printout library but there are no examples showing how it is used. I tested doing this: void PrintHandler(char c) { UART_Write(c); } void main() { UART1_Init(56000); UART_Write_Text("Start"); PrintOut( PrintHandler, "test"); } but got “Unresolved extern ísdigit´” error. How s...
by Jimmie
27 Jul 2012 09:05
Forum: mikroC PRO for ARM General
Topic: Need help setting up RTC on STM32F407. [solved]
Replies: 8
Views: 9294

Re: Need help setting up RTC on STM32F407. BUG?

Okay thanks. I don’t relay understand when I can write “REGISTER-NAME.NAME-OF-BIT” and when I have to write “REGISTER-NAMEbits.NAME-OF-BIT”. Why can I write these registers bits like this? /* Enable the PWR clock */ RCC_APB1ENR.PWREN = 1; /* Allow access to RTC */ PWR_CR.DBP = 1; But not this regist...
by Jimmie
26 Jul 2012 14:22
Forum: mikroC PRO for ARM General
Topic: Need help setting up RTC on STM32F407. [solved]
Replies: 8
Views: 9294

Re: Need help setting up RTC on STM32F407

Got the RTC running and here is the code for it: //RTC.C int RTC_Hours; int RTC_Minutes; int RTC_Seconds; static char txt[7]; unsigned long RTC_Time; unsigned long RTC_Date; static short RTC_Bcd2ToByte(short Value) { short tmp = 0; tmp = ((short)(Value & (short)0xF0) >> (short)0x4) * 10; return (tmp...
by Jimmie
25 Jul 2012 08:39
Forum: mikroC PRO for ARM General
Topic: Getting ST Perhipial library in a mikroC ARM project
Replies: 14
Views: 7207

Re: Getting ST Perhipial library in a mikroC ARM project

Hi I attached the project folder. I followed the readme file in: “STM32F4xx_DSP_StdPeriph_Lib_V1.0.1\Project\STM32F4xx_StdPeriph_Examples\RTC\HW_Calendar” and included all source files from : “STM32F4xx_DSP_StdPeriph_Lib_V1.0.1\STM32F4xx_StdPeriph_Templates” into the project. Then there were some mi...

Go to advanced search