Search found 14 matches

by dmene
Tue Mar 15, 2022 4:25 pm
Forum: Bug Reports
Topic: STM32G071 ADC resolution is always 12 bits Topic is solved
Replies: 14
Views: 7216

Re: STM32G071 ADC resolution is always 12 bits Topic is solved

Hi,
The code hangs on:

Code: Select all

static void adc_lld_wait_enable_adc(ADC_TypeDef *adc) {

  while ((adc->ISR & ADC_ISR_ADRDY) == 0U) {
    /* Waiting for ADC to be stable.*/
  }
}

Daniel
by dmene
Wed Mar 02, 2022 12:49 pm
Forum: Bug Reports
Topic: Compilation errors with KEIL Topic is solved
Replies: 1
Views: 1624

Compilation errors with KEIL Topic is solved

Hello, Compiling for STM32G0 with KEIL 5.33, chcoreasm.s gives 3 errors: os\common\ports\ARMv6-M\compilers\RVCT\chcoreasm.s - .zombies b .zombies + _zombies b _zombies - _port_exit_from_isr + __port_exit_from_isr - .waithere b .waithere + _waithere b _waithere Daniel
by dmene
Wed Mar 02, 2022 12:57 am
Forum: Bug Reports
Topic: STM32G071 ADC resolution is always 12 bits Topic is solved
Replies: 14
Views: 7216

Re: STM32G071 ADC resolution is always 12 bits Topic is solved

Hi, I did this test, something is writing in the structure. uint32_t CFGR1x, CFGR1y, CFGR1z; /* ADC configuration and start.*/ CFGR1x = ADC_CFGR1_RES_10BIT | ADC_CFGR1_EXTEN_RISING | ADC_CFGR1_EXTSEL_SRC(5) | ADC_CFGR1_DMAEN | ADC_CFGR1_DMACFG ; adcp->adc->CFGR1 = CFGR1x; // cfgr1; CFGR1y = adcp->ad...
by dmene
Tue Mar 01, 2022 9:29 pm
Forum: Bug Reports
Topic: STM32G071 ADC resolution is always 12 bits Topic is solved
Replies: 14
Views: 7216

Re: STM32G071 ADC resolution is always 12 bits Topic is solved

Hi,

The cfgr1 variable has an incorrect value.
I defined a variable:
uint32_t CFGR1x;

/* ADC configuration and start.*/
adcp->adc->CFGR1 = cfgr1;
CFGR1x = cfgr1;

Then the value of CFGR1x is 0x00000543 (it should be 0x0000054B)

Daniel
by dmene
Tue Mar 01, 2022 8:40 pm
Forum: Bug Reports
Topic: STM32G071 ADC resolution is always 12 bits Topic is solved
Replies: 14
Views: 7216

Re: STM32G071 ADC resolution is always 12 bits Topic is solved

Sori,
.cfgr1 = ADC_CFGR1_RES_10BIT |

CFGR1 0x00000543
by dmene
Tue Mar 01, 2022 8:36 pm
Forum: Bug Reports
Topic: STM32G071 ADC resolution is always 12 bits Topic is solved
Replies: 14
Views: 7216

Re: STM32G071 ADC resolution is always 12 bits Topic is solved

const ADCConversionGroup adcgrpcfg1 = { .circular = true, .num_channels = ADC_GRP1_NUM_CHANNELS, .end_cb = adcCallback, // NULL, .error_cb = adcErrorCallback, .cfgr1 = ADC_CFGR1_RES_12BIT | ADC_CFGR1_EXTEN_RISING | ADC_CFGR1_EXTSEL_SRC(5), .cfgr2 = 0xCD, .... } adcStartConversion(&ADCD1, &ad...
by dmene
Tue Mar 01, 2022 6:42 pm
Forum: Bug Reports
Topic: STM32G071 ADC resolution is always 12 bits Topic is solved
Replies: 14
Views: 7216

Re: STM32G071 ADC resolution is always 12 bits Topic is solved

yes, the setting does not reach the ADC, regardless of the setting, bits 3 and 4 of CFGR1 remain at 0.

Daniel
by dmene
Tue Mar 01, 2022 4:05 pm
Forum: Bug Reports
Topic: STM32G071 ADC resolution is always 12 bits Topic is solved
Replies: 14
Views: 7216

STM32G071 ADC resolution is always 12 bits Topic is solved

Hello,
I am doing tests with the ADC of the STM32G071 and it is not possible to change the
resolution is always 12 bits.

.cfgr1 = ADC_CFGR1_RES_10BIT |
ADC_CFGR1_EXTEN_RISING |
ADC_CFGR1_EXTSEL_SRC(5),
Daniel
by dmene
Mon Feb 14, 2022 12:59 pm
Forum: ChibiOS/NIL
Topic: How to use Shell in NIL ?
Replies: 1
Views: 14661

How to use Shell in NIL ?

Hi,
I didn't find any example, they are all for RT.

Daniel
by dmene
Thu Feb 11, 2016 9:26 pm
Forum: ChibiOS/NIL
Topic: Nil port
Replies: 2
Views: 5284

Re: Nil port

no problems with STM32F051

Go to advanced search