STM32MP1 openstlinux hardware access
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-18 10:51 PM
Hi there,
we are developing a custom STM32MP135 board to run openstlinux on it. It will be our first experience with embedded linux (linux) systems, so we have some tasks that we don't know if it can be done.
These tasks are the following:
- Can we access the hardware directly?
- Can we get gpio interrupt on openstlinux.
- Can we send data over spi, i2c, canbus, usart etc.?
- Can we get rx interrupt from usart canbus etc.?
The MPU we have chosen is single core, can you guide us on how to do these tasks? Would these tasks be easier if we use dual core MPU?
- Labels:
-
STM32MP13 Lines
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-19 1:54 AM
Hi @FatihYazman
Please go to our Wiki to start with the STM32MP135, you might find answer to most of your questions :
1.1.3 STM32MP135x-DK - stm32mpu
Hope it help
Olivier
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-19 3:48 AM
I searched the wiki but couldn't find any answers on how to create a new project from stm32CubeIde and stm32Cube. Do you have any guidance on this?
Mostly guidance on a sample project.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-19 5:38 AM - edited ‎2024-04-19 5:39 AM
Hi @FatihYazman
I understood you plan to use linux .. so for sure not project with STM32Cube Package bare metal only
For linux let first decide at which level you want to work : Distribution or Developper package :
Which STM32MPU Embedded Software Package better suits your needs - stm32mpu
Then let have a look to :
1.1.3.2 Develop on Arm® Cortex®-A7 - stm32mpu
And if you want to use CubeIDE :
How to manage OpenSTLinux projects in STM32CubeIDE - stm32mpu
How to debug a user space application with STM32CubeIDE/User space static library project - stm32mpu
Olivier
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-19 5:49 AM
Thank you very much these are really helpful, I have one last question that I can't find an answer to, if I configure my hardware in cubemx, suppose I enable canbus, in this case will cubemx configure the linux kernal and how to access the canbus registers or how to send data from the linux application via canbus?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-03 7:28 AM
Hi @FatihYazman ,
CubeMX will just generate a DeviceTree to enable CANBUS. Thanks to this setting, kernel will be able to properly instantiate the CAN driver.
But no sample code is generated to use the driver from application.
You have to refer on generic Linux documentation for that.
Wiki can be good starting point : How to send or receive CAN data - stm32mpu
Olivier
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
