Just want to know how to set the priority of interrupts with STM32 MCU with mikroC PRO.
Thanks a lot,
Henry
Search found 34 matches
- 11 May 2015 18:17
- Forum: mikroC PRO for ARM General
- Topic: Nested Interrupt
- Replies: 1
- Views: 1451
- 23 Feb 2015 20:54
- Forum: mikroC PRO for ARM General
- Topic: Flash
- Replies: 7
- Views: 3243
Re: Flash
Hi,
In order to jump to the new location for the application program by the bootloader code, I also tried to set the reset entry value (address of 0x00000004) to 0x3000 with
FLASH_Write_Word(0x00000004, 0x3000);
The value did not change. Any clue on that?
Thanka a lot,
Henry
In order to jump to the new location for the application program by the bootloader code, I also tried to set the reset entry value (address of 0x00000004) to 0x3000 with
FLASH_Write_Word(0x00000004, 0x3000);
The value did not change. Any clue on that?
Thanka a lot,
Henry
- 23 Feb 2015 12:43
- Forum: mikroC PRO for ARM General
- Topic: assembly in C for ARM
- Replies: 3
- Views: 2217
Re: assembly in C for ARM
Hi Darko,
It is STM32F103
Henry
It is STM32F103
Henry
- 21 Feb 2015 09:56
- Forum: mikroC PRO for ARM General
- Topic: assembly in C for ARM
- Replies: 3
- Views: 2217
assembly in C for ARM
Trying to build a bootloader with MiKroC Pro for ARM and need to use assembly in C to jump to the application program. Tried these assembly instructions:
asm MOVR1 #0x3000;
or
asm MOV R1 #0x3000;
The C complier said the assembly instruction MOVR1 or MOV was not found.
Any clue on that?
Henry
asm MOVR1 #0x3000;
or
asm MOV R1 #0x3000;
The C complier said the assembly instruction MOVR1 or MOV was not found.
Any clue on that?
Henry
- 21 Feb 2015 07:53
- Forum: mikroC PRO for PIC Wish List
- Topic: Goto in asm. Basic for OS design.
- Replies: 6
- Views: 9613
Re: Goto in asm. Basic for OS design.
Hi there,
Do we have the same goto assembly instruction in MiKroC Pro for ARM?
Thanks a lot,
Henry
Do we have the same goto assembly instruction in MiKroC Pro for ARM?
Thanks a lot,
Henry
- 20 Feb 2015 12:38
- Forum: mikroC PRO for ARM General
- Topic: Flash
- Replies: 7
- Views: 3243
Re: Flash
Hi there, Could you direct me to the creator of the USB HID bootloader example? It is a very good example and I need to ask a couple of questions: 1. how do we build the application program, complie it from 0x00000000 and then flash them to the desired memory location along with the vector table? Or...
- 20 Feb 2015 12:04
- Forum: mikroPascal PRO for ARM General
- Topic: relocate application to use a bootloader
- Replies: 8
- Views: 5989
Re: relocate application to use a bootloader
Hello, Despite the statement, that it is not possible, I have managed to write a bootloader in mikropascal, to write an application with relocated interrupt vectors and to update the application via CAN. And to jump from the bootloader to the application and vice versa. If you like to know details,...
- 20 Feb 2015 04:28
- Forum: mikroC PRO for ARM General
- Topic: Flash
- Replies: 7
- Views: 3243
Re: Flash
Hi there, Wrote some codes to test whether we can change the vector table for my future OTA (over-the-air software update) application: void app (void) org 0x3000 { FLASH_Write_Word(0x8009010, 0x12345678); // write buffer with 32 long words } void main(void) org 0x5000 { NVIC_VTOR = (0x4000 << 8); /...
- 19 Feb 2015 09:02
- Forum: mikroC PRO for ARM General
- Topic: Flash
- Replies: 7
- Views: 3243
Re: Flash
Hi,
Using this? -
NVIC_VTOR = 0x2000;
Thanks for any reply,
Hery
Using this? -
NVIC_VTOR = 0x2000;
Thanks for any reply,
Hery
- 19 Feb 2015 08:57
- Forum: mikroC PRO for ARM General
- Topic: Flash
- Replies: 7
- Views: 3243
Re: Flash
Hi Filip,
Thanks for the advice.
And what command we can use to relocate the vector table in MiKroC?
Henry
Thanks for the advice.
And what command we can use to relocate the vector table in MiKroC?
Henry
- 17 Feb 2015 20:33
- Forum: mikroC PRO for ARM General
- Topic: Flash
- Replies: 7
- Views: 3243
Flash
Tried to build a OTA bootloader for in application programming of STM32F103. The bootloader code starts at 0x00000000. The application code starts at 0x00003000. It is thus needed to set the reset entry value (address of 0x00000004) to 0x3000. Tried two methods: FLASH_Write_Word() or NVIC_VTOR = 0x3...
- 19 Dec 2014 17:53
- Forum: mikroC PRO for ARM General
- Topic: Flash library
- Replies: 1
- Views: 1824
Flash library
Hi there, Try to use the flash library for STM32F103 as: unsigned long status; unsigned long status2; unsigned long data_; status = FLASH_ErasePage(0x08008000); status2 = FLASH_Write_Word(0x08008000, 0xAAAAAAAA); prepareForFlash() ; The compiler eliminates both 'status' and 'status2' saying that the...
- 14 Apr 2014 04:47
- Forum: mikroProg™ programmer and debugger
- Topic: Debug Error : PC out of scope
- Replies: 4
- Views: 2803
Re: Debug Error : PC out of scope
I got the same problem - PC out of scope error in debug mode.
Can anyone provide any insight?
Thanks a lot,
Henry
Can anyone provide any insight?
Thanks a lot,
Henry
- 25 Feb 2014 01:13
- Forum: mikroPascal FAQ
- Topic: RTC
- Replies: 6
- Views: 4516
Re: RTC
Hi Marina,
TIM2_DIER.UIE = 1
does set the UIE bit to 1 as I spent more time on debugging it and realized that it was cleared by another command.
Henry
TIM2_DIER.UIE = 1
does set the UIE bit to 1 as I spent more time on debugging it and realized that it was cleared by another command.
Henry
- 23 Feb 2014 17:01
- Forum: mikroPascal FAQ
- Topic: RTC
- Replies: 6
- Views: 4516
Re: RTC
Hi Marina, The compiler was re-installed and the problem goes away. It may be related to the compiler in some ways. Now, I am trying to work on Timer 2 and have some problems: 1. The compiler cannot recognize TIM2_CR1.DIR valuable as it cannot take this command: TIM2_CR1.DIR=0; 2. I tried to use thi...