/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / CircleOS 3.7 update Program

Username:     
Password:     
             

Forum

# 1   2009-05-16 00:49:53 CircleOS 3.7 update Program

eyeinwind
New member
Registered: 2009-01-03
Posts: 1

CircleOS 3.7 update Program

when I download the update Zip file, I excute "Restore_Primer2_Circle_Factory" bat file, and want to restore the CircleOS 3.7, there is the below error:

Connecting to RLink... OK
Connecting to target...

                       !!! Error 203: Wrong MCU device ID: 0x10016414

who can help me? I have checked partnumber in BAT file, it is correct: STM32F103VET6.

thanks

Offline

 

# 2   2009-05-16 03:10:55 CircleOS 3.7 update Program

logictechs
Member
Registered: 2009-05-07
Posts: 68

Re: CircleOS 3.7 update Program

Make sure you have the latest Ride upgrades from both here and Raisonance sites.  Ran into the same problem.

Offline

 

# 3   2010-06-15 17:45:34 CircleOS 3.7 update Program

brott
New member
From: Germany
Registered: 2010-06-10
Posts: 1

Re: CircleOS 3.7 update Program

Hi,

I have got the same problem (Wrong MCU DEVICE ID: 0x10016414).

Updated to the very last release of Ride7 but that didn't help.

I want to try the demo of freeRTOS.

Offline

 

# 4   2010-06-16 06:08:47 CircleOS 3.7 update Program

yrt
Administrator
From: Grenoble-France
Registered: 2008-06-11
Posts: 520
Website

Re: CircleOS 3.7 update Program

It's strange because 0x10016414 is the right ID of the Primer2 microcontroller (STM32F103VET6).
Did you try with latest version of CircleOS ? What is your Ride version ?

Offline

 

# 5   2010-07-02 13:53:30 CircleOS 3.7 update Program

rikubon
Member
Registered: 2009-08-21
Posts: 16

Re: CircleOS 3.7 update Program

I have encountered the same problem (Wrong MCU DEVICE ID: 0x10016414) with my Primer2, when I start to debug. I can program with the codes from the Tutorial (Cubic 1.0), but can not with a code which is a modified one of the ECG-Primer-1.1 (Build is done successfully). I upgraded the Circle OS but my Ride version is not the latest but 7.24.09.0251. It is not the latest but I think it is not the reason, since I can program with the codes from the Tutorial.

Does somebody give me a comment to solve this situation? I want to make a simple Doppler shift radar with Primer2; therefore I need a little bit higher sampling rate for ADC around 5kHz or so.

Offline

 

# 6   2010-07-03 14:06:15 CircleOS 3.7 update Program

ntrf.zns
Member
From: Belgorod, Russia
Registered: 2009-11-01
Posts: 134

Re: CircleOS 3.7 update Program

ECG-Primer is a project for Primer1. You need to set a new target processor in project settings (Advanced ARM -> Processor = STM32_Primer2_CircleOS).

Offline

 

# 7   2010-07-08 06:28:18 CircleOS 3.7 update Program

rikubon
Member
Registered: 2009-08-21
Posts: 16

Re: CircleOS 3.7 update Program

THX ntrf.zns. I am sorry for the late reply.

When I changed the project setting to "STM32_Primer2_CircleOS", then Ride7 claimed me as follows;

crt0_STM32x_HD.csad.text.Reset_Handler+0x7c): undefined reference to `main' 

any help?

Offline

 

# 8   2010-07-08 10:33:05 CircleOS 3.7 update Program

ntrf.zns
Member
From: Belgorod, Russia
Registered: 2009-11-01
Posts: 134

Re: CircleOS 3.7 update Program

Looks like it won't compile out-of-the-box.

You need to change linker script and startup file:

LD Likner -> Startup
  Use default = no
  Startup = $(RkitLib)\ARM\CircleOS\Application_Startup.o

LD Linker -> Scripts
  Use default = no
  Script file = $(ApplicationDir)\Circle_App.ld

EDIT: No! It RIDE problem. It resets all Linker-related settings to default as soon as you set new processor!

Last edited by ntrf.zns (2010-07-08 10:36:45)

Offline

 

# 9   2010-07-09 06:35:20 CircleOS 3.7 update Program

yrt
Administrator
From: Grenoble-France
Registered: 2008-06-11
Posts: 520
Website

Re: CircleOS 3.7 update Program

Hi,

This bug was known (reset options when processor changed), and it normally has been fixed with the last version of Ride (7.30).

Yves

Offline

 

# 10   2010-07-09 07:09:59 CircleOS 3.7 update Program

rikubon
Member
Registered: 2009-08-21
Posts: 16

Re: CircleOS 3.7 update Program

Thank you very much, ntrf.zns. I could pass the compilation and linking by changing the Project setting as you wrote above.

My goal is to test the ADC on Primer2, but the complied object did not work. OK, I know it must not work as it is, since it is designed only for Primer 1. So I removed the most of lines from Application_Ini() and Application_Handler(), and instead of the original lines except for , I just added the lines taken from the tutorial like the following.

enum MENU_code Application_Ini ( void )
   {

  if(strcmp(UTIL_GetVersion(), NEEDEDVERSION) < 0)
      {
      return MsgVersion();
      }

   LCD_DrawRect ( myx, myy, SQUARE_WIDTH, SQUARE_WIDTH, RGB_BLUE);
   LCD_FillRect ( myx+1, myy+1, SQUARE_WIDTH-2, SQUARE_WIDTH-2, RGB_YELLOW);

   return MENU_CONTINUE_COMMAND;
   }

The compilation was successfully done and I could start the debugging. But no rectangle could see on my Primer2. This is just a test to understand how Ride7 (and Primer2) works. After getting the small win, I wanted to add more codes related to ADC handling. But I failed.... ;-(

I could see the rectangle by making a new project (not based on ECG-Primer-1.1 project), but at that time, I can not add any ADC related codes. For example, I received the following error (and more) with Application_Ini() below...

C:\Program Files (x86)\Raisonance\Ride\Examples\MyApp7.c:53: error: 'ADC_InitTypeDef' undeclared (first use in this function) 

enum MENU_code Application_Ini(void)
    {
    // Ensure that the current OS version is recent enough
    if(strcmp(UTIL_GetVersion(), NEEDEDVERSION) < 0)
        {
        return MsgVersion();
        }

    // TODO: Write your application initialization function here.
   
    UTIL_SetPLL(SPEED_VERY_HIGH);

    ADC_InitTypeDef  ADC_InitStructure;
    /* PCLK2 is the APB2 clock */
    /* ADCCLK = PCLK2/6 = 72/6 = 12MHz*/
    RCC_ADCCLKConfig(RCC_PCLK2_Div6);

    /* Enable ADC1 clock so that we can talk to it */
    RCC_APB2PeriphClockCmd(RCC_APB2Periph_ADC1, ENABLE);
    /* Put everything back to power-on defaults */
    ADC_DeInit(ADC1);
   
    return MENU_CONTINUE_COMMAND;
    }

When I add a line to include stm32f10x_adc.h, then I faced the errors like below...

C:\Program Files (x86)\Raisonance\Ride\Examples\/circle_api.h:42: error: redefinition of typedef 's32

I am in a brick wall. Any advices are greatly appreciated.

Offline

 

# 11   2010-07-09 09:56:10 CircleOS 3.7 update Program

rikubon
Member
Registered: 2009-08-21
Posts: 16

Re: CircleOS 3.7 update Program

Thank you very much, yrt. My Ride 7 is version 7.24.... OK. I will replace it with the latest one and report the result later. I think a simple Primer2 project, which simply retrieves samples from ADC with some sampling rates, would be helpful for possible users in future. If I can solve this situation, I will try to post such a simple project.  wink

Offline

 

# 12   2010-07-09 14:36:43 CircleOS 3.7 update Program

rikubon
Member
Registered: 2009-08-21
Posts: 16

Re: CircleOS 3.7 update Program

I have upgraded Ride7 to 7.30.10.0159 and confirmed that the above bug yrt mentioned has been fixed. But the latest version of Ride7 did not take effect on my issue in the post #10. Any help?

Offline

 

# 13   2010-07-14 09:01:07 CircleOS 3.7 update Program

rikubon
Member
Registered: 2009-08-21
Posts: 16

Re: CircleOS 3.7 update Program

Finally, I have understood what was wrong. By upgrading the Ride7, the ST libraries has not been included in Ride7 anymore, and we need to add the ST peripheral libraries in our own project. This seems to be a terrible situation. Primer2 seemed to be easy to develop, but as for me, the starting up development with Primer2 was not easy at all. If there is a simple but complete ADC project, everybody can build and run as it is with Ride7,  it must be very helpful for newbies like me. Now I am going to complete such the project. If somebody needs it, e-mail me. Thanks all the persons who gave me some useful comments.

Offline

 

# 14   2011-03-02 12:16:18 CircleOS 3.7 update Program

maad145
New member
Registered: 2011-03-02
Posts: 2

Re: CircleOS 3.7 update Program

where can i download CircleOS 3.7 please anyone who could help me

Offline

 

Board footer