Setting CLK_OSC32M_DIV to 0 results in runtime error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Setting CLK_OSC32M_DIV to 0 results in runtime error

798 Views
shai_b
Senior Contributor II

Hello team,

My customer is trying to maximize the throughput of the processor, by minimizing the clock's divisions.

please find his inquires below:

1) My specific question is: how to change the CLK_OSC32M_DIV register from its default value of 1 to 0: from 16 Mhz to 32 Mhz.

What I am trying to do is:

CLOCK_SetClkDiv(kCLOCK_DivOsc32mClk, 0U);

Which results in a runtime error.

2) Additionally, if you could spot some more clock division settings that I am missing, I would appreciate it.

I couldn't attach his project but he used GPIO Driver example code from the QN9080 SDK.

Please advise back and stay safe.

Thanks and regards,

Shai

Tags (1)
0 Kudos
5 Replies

685 Views
Sebastian_Del_Rio
NXP Employee
NXP Employee

Hi Shai, I hope you're doing well!

 

Unfortunately, I wasn't able to replicate the issue your customer is having.

 

I changed the call to the CLOCK_SetClkDiv inside of the BOARD_BootClockRUN function (which is called of main, in the gpio_led_output.c source file) to the following:

 

CLOCK_SetClkDiv(kCLOCK_DivOsc32mClk, 0U);

 

Could you please tell me where was this line changed? Or if any other changes were done to the code?

 

There are other existing clock division settings, each managing one of the different clocks. These can also be seen in the BOARD_BootClockRUN function I mentioned previously, but the clock divider you're changing should be the only needed function for this purpose.

 

Please let me know if you need any more information.

 

Best regards,

Sebastian

0 Kudos

685 Views
shai_b
Senior Contributor II

Hi Sebastian,

I managed to upload his project files., please review the attached (.zip) and advise back.

Thanks in advice 

Kind regards,

Shai

0 Kudos

685 Views
Sebastian_Del_Rio
NXP Employee
NXP Employee

Hi Shai,

 

I imported the attached project to my MCUXpresso installation and unfortunately I still wasn't able to replicate the issue:

 pastedImage_1.png

Could you please let me know if your customer is using our QN9080-DK board or if they are using a custom board?


Best regards,

Sebastian

685 Views
shai_b
Senior Contributor II

Hi Sebastián,

Yes, the customer is using the QN9080-DK board.

Do you need any additional information from my side to address this issue?

Thanks in advance 

Kind regards,

Shai

0 Kudos

685 Views
Sebastian_Del_Rio
NXP Employee
NXP Employee

Hi Shai,

Could you please take a look at this post here?

Best regards,

Sebastian

0 Kudos