Search found 43 matches

by webjorn
Tue Sep 06, 2022 10:07 pm
Forum: Off topic
Topic: AT32F403A anyone?
Replies: 71
Views: 129018

Re: AT32F403A anyone?

Hi Gonzo, Yes, unrolling the loop probably gives better performance, still, I am not convinced *exactly where* the bottleneck is, I believe the AHB bus is running at 240 Mhz, however I am not sure the GPIO clock is at that level, and the AT32F403A *is* different in the clock tree (vs STM32XXX). I am...
by webjorn
Tue Sep 06, 2022 4:32 pm
Forum: Off topic
Topic: AT32F403A anyone?
Replies: 71
Views: 129018

Re: AT32F403A anyone?

Hmmm,

In the AT32F403A GPIO(A-E) are not located on a APB bus, but stuck directly onto the AHB. The AHB is clocked at 240 Mhz. (not divided)
So, question becomes more interesting.....
by webjorn
Tue Sep 06, 2022 3:05 pm
Forum: Off topic
Topic: AT32F403A anyone?
Replies: 71
Views: 129018

Re: AT32F403A anyone?

GPIO clock is 120 Mhz if I understand the setup. That would be a period of 8.33 nS.
And publishing square bracket left index square bracket right semicolon drops the index on preview or publish
using an index i does not work, but index k does work
left is index i, right is index k [k]
by webjorn
Tue Sep 06, 2022 2:50 pm
Forum: Off topic
Topic: AT32F403A anyone?
Replies: 71
Views: 129018

Re: AT32F403A anyone?

i did write
.....= datarray; but the index disappeared....
by webjorn
Tue Sep 06, 2022 2:49 pm
Forum: Off topic
Topic: AT32F403A anyone?
Replies: 71
Views: 129018

Re: AT32F403A anyone?

Thanks guys, I am now using this little loop for testing. // write alternate all zeros and all ones into datarray so I can scope on all pins. for(k=0;k<maxdata;k++) { if(( k & 1) == 0) datarray[k] = 0x0; else datarray[k] = 0xffff; } t1 = millis(); for(i=0;i<maxdata;i++) { // datarray[i] = (*(uin...
by webjorn
Mon Sep 05, 2022 9:57 pm
Forum: Off topic
Topic: AT32F403A anyone?
Replies: 71
Views: 129018

Re: AT32F403A anyone?

I have made a small sketch that just sends the contents of an array to PORTB. This indicates about 2 Mhz toggling. the code is extremely simple, just for (i=0;i<maxarray;i++) { GPIOB = maxarray ; } Why so slow? How do I display the generated assembly code? I am running the CPU at 240 Mhz. 240/2 , 12...
by webjorn
Sun Aug 28, 2022 10:35 am
Forum: Off topic
Topic: AT32F403A anyone?
Replies: 71
Views: 129018

Ports A and C but not B enabled

Trying a small sketch I found GPIOB not being enabled. Dumping the CRM_APB2 register shows no clock at GPIOB. I enabled that oring 0x8 to the register, and the port gives reasonable values. The reason for A and C being already enabled is of course the use of PC13 for the led and PA9-PA10 for serial....
by webjorn
Fri Aug 12, 2022 2:03 pm
Forum: Off topic
Topic: AT32F403A anyone?
Replies: 71
Views: 129018

Board libraries for this MCU

Hi, Some progress, DFU upload did not work until I edited /etc/udev/rules.d/50-usb-conf.rules SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", GROUP="users", MODE="0666" SUBSYSTEMS=="usb", ATTRS{idVendor}=="2e3c&qu...
by webjorn
Wed Aug 10, 2022 11:22 am
Forum: Off topic
Topic: AT32F403A anyone?
Replies: 71
Views: 129018

F_CPU is a constant, but should reflect speed

It seems F_CPU is NOT calculated, but is a constant of 80.000.000.....

Reading the CRM_CFG register, the PLL mult factor should be the input parameter...

Gullik
by webjorn
Tue Aug 09, 2022 9:00 pm
Forum: Off topic
Topic: AT32F403A anyone?
Replies: 71
Views: 129018

Re: AT32F403A anyone?

Ok, now I can compile and download code. Unfortunately I seem to have destroyed the DFU uploader, and I cannot get it properly installed with the current json. With the above described procedure, and editing the platform.txt and boards.txt and replacing all \ with / in file paths it is now possible ...

Go to advanced search