Skip to main content
Senior III
August 6, 2026
Question

DMA_CHANNEL_NPRIV error

  • August 6, 2026
  • 5 replies
  • 95 views

I get the following error

 

If i take the code from github shared by ST for Nucleo Lora it compiles. But when i am trying to do some changes by mixing the code from Cube Mx i get the above error. Can anyone please help to resolve the above issue.

 

 

5 replies

Andrew Neil
Super User
August 6, 2026

You need to give some more details:

  • What code, exactly, are you using?
  • What Nucleo board?
  • What tool versions?
  • etc, etc, …

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
STuser2Author
Senior III
August 6, 2026

This the base project i have taken. 

https://github.com/STMicroelectronics/STM32CubeWL/tree/main/Projects

I want to come as close as possible with Cube Mx to the above project. I created the following CubeMx project but i have few clarifications

  1. The github code is based on the  STM32WL55JCIx - NUCLEO - WL55JC1 and i did the porting for Wio-E5 series (STM32WLE5JC) with some LED changes and it is working. I have not used CubeMx here.
  2. I have created new CubeMx project but with the micro of STM32WLE5JC and similar porting mechanism i have done, and ended up in the above compilation error.

How do i proceed?

Andrew Neil
Super User
August 6, 2026

That’s the top-level above a whole load of projects - which project, specifically, are you using.

Did you also note this:

And this:

 

 

You still haven’t said what CubeMX version you’re using, or what IDE.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
STuser2Author
Senior III
August 6, 2026

Thank you for the reply. 

The Cube Mx version is 

 

 

The Cube Ide version is

 

Project is the project i am referring to.

STuser2Author
Senior III
August 7, 2026

I generated two CubeMx project for the two controller families and using only UART with DMA, the below is the difference 

The other difference is the header files added as below based on the controller selection 

Drivers\CMSIS\Device\ST\STM32WLxx\Include\stm32wle5xx.h

Drivers\CMSIS\Device\ST\STM32WLxx\Include\stm32wl55xx.h

and there are major differences in the above header files. Please guide me how do i proceed porting the code from 55xx to 5xx. 

Thank you in advance.