passing parameters from python to embedded C

Status
Not open for further replies.

curious_mind

Full Member level 4
Joined
Apr 14, 2019
Messages
212
Helped
0
Reputation
0
Reaction score
2
Trophy points
18
Activity points
1,603
I am developing a simple embedded application on a virtual platform without the real target. My application uses API which uses pointer de referencing to fetch data from a required memory location. Since I am building on a virtual platform, I want to use a python front end to pass data parameters to the location dereferenced by the API. Can anybody suggest appropriate method to do so?
 

I do not know ctypes. besides I looked at IPC and TCP method of intercommunication's between two applications ( Viz. C and Python). Could not arrive at any conclusion. Here is my actual requirement:

I am developing a bare metal application. My C file calls several lower level drivers pertaining to hardware interfaced with processor. These driver files accesses the actual harddware through pointer dereference (for read and write). Since I have to develop this on virtual platform, I require C file to be executed independantly and take on the parameters from UI (pyhton) which mocks the hardware registers (with location)
 
Last edited:

Interprocess communication is an option, but direct memory access or running a dll seems much simpler. All relevant methods are provided by ctypes.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…