Thank you Hugh,
I think either i put the question in other way or there was some misunderstanding in analysing the problem statement.
I have already programmed with primer 2 and for this i use Ride 7 which is the Raisonance (you v also mentioned the same in your answer). There is no problem in this case because i can debug do everything and transfer the data (or the information) from primer 2 to labview and implement my desired algorithm.
Now i m switching the same program for olimex stmh103 which has stm32f103rbt6 microcontroller. In fact the one in primer2 is a high density and the microcontroller in olimex is a medium density. I have modified everything in my program.
The problem is that i cannot transfer the data to the same labview program. Labview is ok and i believe there has to be no change. Also to mention i used VISA VI for the reception and transmission of data from and to stm32 through usb.
Precisely putting up my question, the previous program which was written in stm32 high density has different configuration, eg. usb pull up (or usbdisconnect pin) is different in primer2 and olimex board. So i have done following changes:
Convert pin D.9 into C.11 (all the associated codings). For this i modified in ‘platform_config.h’ header file and also in ‘hw_config.c’ files. To mention, these are the files included in the usb library available from stm manufacturer.
Now i would like to know what necessary changes should i do so that the communication (that was previosly working through primer2 and labview interface) would be possible.
Regards and thanks in advance.
hsutherl:
Hello Durgesh,
I assume you’re using the LabView embedded module for ARM. And I further assume that LabView can now create an entire application for the Primer, ready to download. Once the application has been “built”, do you download it via the debug port, and then switch over to the STM32 port when running it?
I tried to look at the NI site but they make you sign in before providing even the most basic info (I was too lazy to dig out my password).
If the embedded module provides source code for the app, at least in theory you could study that, modify it for the Olimex board, then build it using whatever tools you’re comfortable with. (Hint: the Primer comes with the Raisonance Ride development tools. Or, the LabView module may provide a hex file - no clue about that.) To get the code into the Olimex board, you could use OpenOCD (you mentioned a JTAG adapter). If you’d rather use flashmagic or the ST serial port downloader tool, you’d have to provide a level shifter since the stmh103 doesn’t have one built in. At that point the Olimex board would presumably behave as a virtual COM port, and would talk to (the “running the app” part of) LabView.
A lot of work even if the source is available. If it isn’t, then you’re pretty much out of luck.
Your post is the first one I’ve seen here about LabView. I can’t be sure but I suspect you’d get more response on the National Instruments board.
Good luck!
-Hugh