As I said, I'm no Arm assembly expert, but I'm always willing to learn...
Given you can see in the assembly listing that the ldrh instructions are only 2 bytes, and it must have space to identify the instruction (op code of some sort), and two registers, there can't be very many bits to use for the ...
Search found 185 matches
- Mon Sep 19, 2022 12:01 am
- Forum: Off topic
- Topic: AT32F403A anyone?
- Replies: 71
- Views: 406578
- Sun Sep 18, 2022 2:06 am
- Forum: Off topic
- Topic: AT32F403A anyone?
- Replies: 71
- Views: 406578
Re: AT32F403A anyone?
Also, the attribute volatile will / might change the compiler code generator. I will check this out.
...
Now, arm assembler is not really my thing, I grew up with the pdp11.
Well, I can't see anything at all in the fragment of assembly code that you showed that would be moving data to the GPIO ...
- Sat Sep 17, 2022 10:03 pm
- Forum: Off topic
- Topic: AT32F403A anyone?
- Replies: 71
- Views: 406578
Re: AT32F403A anyone?
...
------- C code -----------
for(k=0;k<maxdata;k++) { // fill array with alternating 0 and 1
if(( k & 1) == 0)
datarray[k] = 0x0;
else
datarray[k] = 0xffff;
}
t1 = micros(); // this does not serve any purpose now, it just generates a bl micros, which is easily found in the dump file ...
- Sat Sep 17, 2022 2:23 am
- Forum: Off topic
- Topic: AT32F403A anyone?
- Replies: 71
- Views: 406578
Re: AT32F403A anyone?
...
I cannot see any good way to unroll the loop since I need to change the array index, but I have to study ARM assmbler,
The ldrh.w and the strh could be replicated, but R7 needs to change.....+2 i guesss...
ldrh.w r1,[r7],#2
strh r1,[r2,#12]
adds r7,#2
this should be 4 instructions per move ...
- Wed Sep 14, 2022 10:47 am
- Forum: Off topic
- Topic: AT32F403A anyone?
- Replies: 71
- Views: 406578
Re: AT32F403A anyone?
CTRL : 40000000
CYCCNT : 40000000
80
0
------------------------------------------
Then I add the cycle counter enable, CYCCNT does not change.
-----------------------------------------
CTRL : 40000000
CYCCNT : 40000000
CYCCNT : 40000000
80
0
-------------------------------------
0x40000000 ...
- Wed Sep 14, 2022 12:51 am
- Forum: Off topic
- Topic: AT32F403A anyone?
- Replies: 71
- Views: 406578
Re: AT32F403A anyone?
1073741824 = 0x40000000 which looks like a plausible reset value for CTRL, so is that DWT_CTRL (at 0xE0001000) or DWT_CYCCNT (at 0xE0001004) that you are showing there?
If that is really CYCCNT, what is in CTRL? That could indicate if the cycle counter is truly not implemented, or maybe (more ...
If that is really CYCCNT, what is in CTRL? That could indicate if the cycle counter is truly not implemented, or maybe (more ...
- Tue Sep 13, 2022 10:08 pm
- Forum: Off topic
- Topic: AT32F403A anyone?
- Replies: 71
- Views: 406578
Re: AT32F403A anyone?
The manual I was looking at before was just what Uncle Google turned up. From the page mentioned here by ag123, https://www.arterychip.com/en/product/AT32F403A.jsp, I find another manual, which says it is V2.03. The clock tree in this manual shows the 120MHz is multiplied by one or two, so 240MHz ...
- Mon Sep 12, 2022 9:50 pm
- Forum: Off topic
- Topic: AT32F403A anyone?
- Replies: 71
- Views: 406578
Re: AT32F403A anyone?
Does this processor really not have a cycle counter?
The manual I turned up, https://www.arterytek.com/download/RM_AT32F403_V1.02_EN.pdf, mentions DWT in several places, and I would have thought DWT would include DWT_CYCCNT.
But then, that manual I found mentions CPU operating up to 200MHz, not ...
The manual I turned up, https://www.arterytek.com/download/RM_AT32F403_V1.02_EN.pdf, mentions DWT in several places, and I would have thought DWT would include DWT_CYCCNT.
But then, that manual I found mentions CPU operating up to 200MHz, not ...
- Mon Sep 12, 2022 6:00 am
- Forum: STM32 HID bootloader
- Topic: how to program STM32 MCU with another MCU through a serial link
- Replies: 1
- Views: 17779
Re: how to program STM32 MCU with another MCU through a serial link
The serial protocol is described here: http://www.st.com/web/en/resource/techn ... 264342.pdf
I'm not sure if anybody has written exactly what you need. If not, you could maybe use something like this as a starting point: https://sourceforge.net/projects/stm32flash/
I'm not sure if anybody has written exactly what you need. If not, you could maybe use something like this as a starting point: https://sourceforge.net/projects/stm32flash/
- Tue Sep 06, 2022 6:23 am
- Forum: Off topic
- Topic: AT32F403A anyone?
- Replies: 71
- Views: 406578
Re: AT32F403A anyone?
How do I display the generated assembly code?
If you were using an ide which allows debugging, it would probably allow you to just select assembly view.
Otherwise use arm-none-eabi-objdump.exe -D your.ino.elf
Setting the compile options to verbose in the Arduino ide preferences will help you ...