Search found 149 matches

by ozcar
Thu Sep 22, 2022 1:29 am
Forum: General discussion
Topic: [Solved] Connectivity problems with Blue Pill and ST-Link v2
Replies: 14
Views: 13740

Re: Connectivity problems with Blue Pill and ST-Link v2

It has been a long time since I first installed the official STM core. I do have a vague recollection of having to install the programmer code and make sure that it was in the path. I see in other threads here people saying that they have STM32_Programmer_CLI.exe in a directory somewhere under their ...
by ozcar
Wed Sep 21, 2022 10:41 pm
Forum: General discussion
Topic: [Solved] Connectivity problems with Blue Pill and ST-Link v2
Replies: 14
Views: 13740

Re: Connectivity problems with Blue Pill and ST-Link v2

I don't think "Get Board info" is a definitive test. What happens if you just try to upload something? Select Upload method: "STM32CubeProgrammer (SWD)" first. That works for me regardless of whether the code already loaded in the board has USB support or not. Without USB support, no COM port ...
by ozcar
Wed Sep 21, 2022 1:53 am
Forum: General discussion
Topic: using both i2c interfaces on stm32f104c8t6
Replies: 8
Views: 5040

Re: using both i2c interfaces on stm32f104c8t6

Maybe you mean STM32F103C8T6? If so that has two I2C peripherals, and you should be able to define a second "TwoWire" as shown here https://github.com/stm32duino/wiki/wiki/API#i2C. For your STM32F405 pyboard, maybe you can use STM32DUINO and forget python? You might have to create your own board ...
by ozcar
Mon Sep 19, 2022 7:49 pm
Forum: General discussion
Topic: ~24 KB program storage space but expected closer to 64 KB?
Replies: 5
Views: 1651

Re: ~24 KB program storage space but expected closer to 64 KB?

I'm not sure why you would have selected board "Generic STM32F103C6/fake STM32F103C8" in the first place, unless the chip was marked C6. Fake C8s may have less than 64K, but could well have 64K or 128K, so I think that board name is a bit confusing. However, the fact that you have that as a ...
by ozcar
Mon Sep 19, 2022 12:01 am
Forum: Off topic
Topic: AT32F403A anyone?
Replies: 71
Views: 136055

Re: AT32F403A anyone?

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 ...
by ozcar
Sun Sep 18, 2022 2:06 am
Forum: Off topic
Topic: AT32F403A anyone?
Replies: 71
Views: 136055

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 ODR ...
by ozcar
Sat Sep 17, 2022 10:03 pm
Forum: Off topic
Topic: AT32F403A anyone?
Replies: 71
Views: 136055

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 snapshot ...
by ozcar
Sat Sep 17, 2022 2:23 am
Forum: Off topic
Topic: AT32F403A anyone?
Replies: 71
Views: 136055

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, so ...
by ozcar
Wed Sep 14, 2022 10:47 am
Forum: Off topic
Topic: AT32F403A anyone?
Replies: 71
Views: 136055

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 for CTRL ...
by ozcar
Wed Sep 14, 2022 12:51 am
Forum: Off topic
Topic: AT32F403A anyone?
Replies: 71
Views: 136055

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 likely ...

Go to advanced search