Author Topic: Air105 / Air32F103 - New chinese arm chips  (Read 26167 times)

0 Members and 1 Guest are viewing this topic.

Online IOsetting

  • Regular Contributor
  • *
  • Posts: 56
  • Country: cn
Re: Air105 / Air32F103 - New chinese arm chips
« Reply #25 on: November 13, 2022, 08:32:21 am »
Just found that I2S peripheral works on AIR32F103CBT6 and CCT6 too. The datasheet says I2S only works on 64pin RPT6, but actually works on all types.
 

Offline Utherbone

  • Newbie
  • Posts: 3
  • Country: br
Re: Air105 / Air32F103 - New chinese arm chips
« Reply #26 on: November 20, 2022, 01:57:45 am »
Hello, sorry for coming on the forum so suddenly and posting on a topic already.
short story, I was researching a project that would transform my copy of stm32f103t8, the cs32f103t8. After much searching I found the project:
https://github.com/amitesh-singh/FASTUSBasp
1 - I was excited and then I was going to download it, but before I decided to prepare my copy of the stm32 and when I went to program it with the "fastusbasp.bin" firmware I had the bad news that it messed up, when I pressed the reset button the led wouldn't blink, probably it was static, I certainly didn't take the necessary care.
2 - This is where I went looking for another one to buy and that's when I found out I had a copy and decent even according to the post no:
https://hackaday.com/2020/10/22/stm32-clones-the-good-the-bad-and-the-ugly/
But unfortunately my copy was damaged when I went to upload "fastusbasp.bin
3 - Since I was going to have to buy one then I went looking for one with USB C because it is very convenient and I could use the cable from my smartphone...
and I came across some copies that you could see the screen printing of the encpsulamento very ugly, there is a copy ch32f103 this seems to be problematic in boot, I was wondering if this copy ch32f103 would work with the firmware of FASTUSBasp.
4 - So I came to this forum, it seems to be very cool and fun, in this post and decided to buy the air32f103 to test and also buy an arduino nano with usb
I am very anxious to receive and test mine, I ordered from the same link

It cost me 1.80 EUR converted from 10.65 BRL

fanoush Can you make a test of this FASTUSBasp firmware?

I don't know English, so I used a translator.
« Last Edit: November 20, 2022, 02:01:44 am by Utherbone »
I'm a fan of controllers;
I'm a fan of programming languages, like Rust;
I like to learn, what I don't know I look for and seek help.
 

Offline fanoush

  • Contributor
  • Posts: 24
  • Country: 00
Re: Air105 / Air32F103 - New chinese arm chips
« Reply #27 on: November 20, 2022, 11:10:18 am »
https://github.com/amitesh-singh/FASTUSBasp
1 - I was excited and then I was going to download it, but before I decided to prepare my copy of the stm32 and when I went to program it with the "fastusbasp.bin" firmware I had the bad news that it messed up, when I pressed the reset button the led wouldn't blink, probably it was static, I certainly didn't take the necessary care.
it is possible your board is still OK, why would any led blink after flashing fastusbasp.bin  and pressing reset? if the flashing went wrong it can always be recovered over SWD

It cost me 1.80 EUR converted from 10.65 BRL
fanoush Can you make a test of this FASTUSBasp firmware?
If you don't have any SWD programmer you can also buy two for that price and keep one as programmer. I flashed fastusbasp.bin from https://github.com/amitesh-singh/FASTUSBasp/releases/tag/v1.0.0 to my Air32F103 board and it seems to work. It gets detected as 'fastusbasp' usb composite device with one COM port and one unknown device. I did not try avrdude.
 

Offline Utherbone

  • Newbie
  • Posts: 3
  • Country: br
Re: Air105 / Air32F103 - New chinese arm chips
« Reply #28 on: November 20, 2022, 03:37:02 pm »
it is possible your board is still OK, why would any led blink after flashing fastusbasp.bin  and pressing reset? if the flashing went wrong it can always be recovered over SWD
Nothing happens nor can even upload, now I'm thinking it may be my ft232rl, reading your response, I will do some tests, I will test the ft232rl with the arduinio to see if it is able to flash the arduino nano.

If you don't have any SWD programmer you can also buy two for that price and keep one as programmer. I flashed fastusbasp.bin from https://github.com/amitesh-singh/FASTUSBasp/releases/tag/v1.0.0 to my Air32F103 board and it seems to work. It gets detected as 'fastusbasp' usb composite device with one COM port and one unknown device. I did not try avrdude.
This is already promising, I was thinking that can not even record, makes me even more anxious, if you can test let me know the result kindly.

In the meantime I will do more tests with the stm32 and see if I can flash it using the arduino nano.

Content separation line none, below

Updates, I am not sure if it is my ftd232rl that is dead or partially ported because it is recognized, but fails to send code, and the stm32 decent copy CKS as I said before, does not flash in any way when I press reset on it, I do not know if I had already recorded some program on it before, but boot 0, boot 0 it start in Linux ttyACM0, so I think it may be good and it is my ftd232rl that may be defective or whatever, But I remember I used it sometime, I will only be able to test it better when I get the new chips I ordered, besides the arif103 I ordered a decent copy of the stm32, a decent copy of the st-link-v2 too, at least according to the seller's confirmation, he also said that the stm chip from the st-link v2 is original, I will confirm when the order arrives, I ordered everything from this store here: https://www. aliexpress.com/store/1916536
« Last Edit: November 24, 2022, 02:14:38 am by Utherbone »
I'm a fan of controllers;
I'm a fan of programming languages, like Rust;
I like to learn, what I don't know I look for and seek help.
 

Offline skys2000

  • Newbie
  • Posts: 1
  • Country: cn
Re: Air105 / Air32F103 - New chinese arm chips
« Reply #29 on: November 26, 2022, 03:04:01 pm »
In fact, it is the M4(not M4F)core,Just register be compatible with stm32F103.
it's coremark 1.0 scores :
CoreMark 1.0 : 733.8372
35 / GCCClang 13.0.0 (ssh://ds-gerrit/armcompiler/llvm-project
1f5770d6f72ee4eba2159092bbf4cbb819be323a) -O3 / STAC
K
1649006-0" alt="" class="bbc_img" />
« Last Edit: November 27, 2022, 02:55:22 pm by skys2000 »
 
The following users thanked this post: thm_w

Offline Utherbone

  • Newbie
  • Posts: 3
  • Country: br
Re: Air105 / Air32F103 - New chinese arm chips
« Reply #30 on: December 04, 2022, 03:07:29 pm »
Nice skys2000, Sorry, I didn't understand what you meant by: "Just register be compatible with stm32F103".
Would it be using the firmware from the STM32F103 on the AIR32F103?

So it is not a Cortex M3 like the STM32f103, is it really a Cortex M4 the AIR32F103?

fanoush you are right  8), my STM32 or my FTDI are not broken my euphoria made me reverse the RX and TX pins  :palm:.

In the college I am attending (Computer Engineering) I am taking programming classes in C language and logic gate classes in digital electronics and several other cool subjects as well.

As soon as I get further into the studies I will share on a site that I will host on GitPages and in a thread here on the forum.
I'm a fan of controllers;
I'm a fan of programming languages, like Rust;
I like to learn, what I don't know I look for and seek help.
 

Offline GromBeestje

  • Frequent Contributor
  • **
  • Posts: 280
  • Country: nl
Re: Air105 / Air32F103 - New chinese arm chips
« Reply #31 on: December 04, 2022, 09:26:11 pm »
An STM32F103 clone with a Cortex M4 core? I've seen that before. The FlashChip FCM32F103 has a Cortex M4 core
 

Online IOsetting

  • Regular Contributor
  • *
  • Posts: 56
  • Country: cn
Re: Air105 / Air32F103 - New chinese arm chips
« Reply #32 on: December 05, 2022, 06:25:16 am »
The ArteryTek AT32F4 series, AT32F413, AT32F403, AT32F403A are M4F core with FPU are compatible with STM32F103
 

Offline GromBeestje

  • Frequent Contributor
  • **
  • Posts: 280
  • Country: nl
Re: Air105 / Air32F103 - New chinese arm chips
« Reply #33 on: December 07, 2022, 03:45:23 pm »
I have received the AIR32F103 boards I've ordered in the mail yesterday.
The Microcontroller is labelled AIR32F103C8T6
On initial inspection, they show up as
Code: [Select]
Info : [stm32f1x.cpu] Cortex-M3 r2p0 processor detected
Info : [stm32f1x.cpu] target has 6 breakpoints, 4 watchpoints
Looking at the ROMTABLE, All the Peripheral ID fields read 0.
This looks like a part I haven't seen before.

As I've been reading about an M4. are we talking about the same part? Or are there various parts marked AIR32F103?
 

Offline thm_w

  • Super Contributor
  • ***
  • Posts: 6359
  • Country: ca
  • Non-expert
Re: Air105 / Air32F103 - New chinese arm chips
« Reply #34 on: December 08, 2022, 01:38:40 am »
As I've been reading about an M4. are we talking about the same part? Or are there various parts marked AIR32F103?

The AIR105 is the M4 part, skys2000 must have been talking about that.
Profile -> Modify profile -> Look and Layout ->  Don't show users' signatures
 

Online IOsetting

  • Regular Contributor
  • *
  • Posts: 56
  • Country: cn
Re: Air105 / Air32F103 - New chinese arm chips
« Reply #35 on: December 08, 2022, 04:34:27 am »
Should it be AIR32F103CBT6?
I have received the AIR32F103 boards I've ordered in the mail yesterday.
The Microcontroller is labelled AIR32F103C8T6
 

Offline GromBeestje

  • Frequent Contributor
  • **
  • Posts: 280
  • Country: nl
Re: Air105 / Air32F103 - New chinese arm chips
« Reply #36 on: December 08, 2022, 11:20:34 pm »
Should it be AIR32F103CBT6?
I have received the AIR32F103 boards I've ordered in the mail yesterday.
The Microcontroller is labelled AIR32F103C8T6

Looking closer in the light, what I mistook for an 8 is indeed a B,
 

Online IOsetting

  • Regular Contributor
  • *
  • Posts: 56
  • Country: cn
Re: Air105 / Air32F103 - New chinese arm chips
« Reply #37 on: December 22, 2022, 05:38:52 am »
Hedley Rainnie found there are actually 97k ram available on air32f103cbt6.
http://www.hrrzi.com/2022/12/the-air32f103.html
 
The following users thanked this post: thm_w, GromBeestje

Online DavidAlfaTopic starter

  • Super Contributor
  • ***
  • Posts: 5899
  • Country: es
Re: Air105 / Air32F103 - New chinese arm chips
« Reply #38 on: January 07, 2023, 03:30:49 pm »
I screwed my Air by playing with the PLL hack.
I wondered what would happen by setting that bit to 1:
Code: [Select]
    AIR_SysFreq_Set(Multiplier, FLASH_Div_0, 0, 1);
                                             ^

Damn! Now the flash code is write-protected!
The protection bits can't be removed! The chip can't be erased! :-DD

But I noticed it was failing after 0x400 so there was some hope!
So I removed all the possible, emptied main, everything, also non-critical vectors, so the code could fit in less than 0x400.
Code: [Select]
g_pfnVectors:
.word _estack
.word Reset_Handler
.word NMI_Handler
.word HardFault_Handler
.word MemManage_Handler
.word BusFault_Handler
.word UsageFault_Handler
Then
Code: [Select]
void SystemInit (void)
{   
    AIR_SysFreq_Set(1<<18, 0, 0, 0);  /* Hopefully this will fix the screw up lol */
}

Then the issue was fixed and I was able to write to it again.
« Last Edit: January 07, 2023, 03:52:37 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 
The following users thanked this post: thm_w, IOsetting

Online DavidAlfaTopic starter

  • Super Contributor
  • ***
  • Posts: 5899
  • Country: es
Re: Air105 / Air32F103 - New chinese arm chips
« Reply #39 on: January 08, 2023, 02:51:19 am »
So this is what the bootloader does to unlock the PLL "magic":
Code: [Select]
uint16_t *hack = (uint16_t*)0x40022214;
*hack = (*hack & 0x3FF8) | 1<<14 | FLASH_Div_2;    // Add 1<<15 to write-protect the flash

« Last Edit: January 08, 2023, 02:53:43 am by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 
The following users thanked this post: fanoush, IOsetting

Offline Kenjutsu

  • Contributor
  • Posts: 12
  • Country: 00
Re: Air105 / Air32F103 - New chinese arm chips
« Reply #40 on: January 29, 2023, 03:53:50 pm »
Anyone know where I can get the daplink firmware that come with the Air32F103?
 

Online IOsetting

  • Regular Contributor
  • *
  • Posts: 56
  • Country: cn
Re: Air105 / Air32F103 - New chinese arm chips
« Reply #41 on: January 29, 2023, 05:31:08 pm »
Anyone know where I can get the daplink firmware that come with the Air32F103?

The latest daplink firmware can be found at
https://gitee.com/openLuat/luatos-soc-air32f103/tree/master/AIR_Jlink_Keil
air32_daplink.hex  -  for normal xxlink upload
air32_daplink_iap.hex - for virtual u-disk upgrade

If you want the original one that comes with the board, check out the earliest commit of air32_daplink.hex


 
The following users thanked this post: Kenjutsu

Offline Kenjutsu

  • Contributor
  • Posts: 12
  • Country: 00
Re: Air105 / Air32F103 - New chinese arm chips
« Reply #42 on: January 30, 2023, 07:15:56 am »
The latest daplink firmware can be found at

Thank you @IOsetting.

I see the latest firmware no longer lights up the 3 LEDs to indicate status. After the flash, I initially thought something went wrong, since none of the LEDs lit up, but it is recognized by pyOCD as a CMSIS-DAP device and works as expected  ;)
 

Offline Kenjutsu

  • Contributor
  • Posts: 12
  • Country: 00
Re: Air105 / Air32F103 - New chinese arm chips
« Reply #43 on: January 30, 2023, 01:55:39 pm »
Regarding the Air103/Air105: Currently, can they only be used with the luatos environment, or are there some free/open source toolchains etc available?
 

Offline fanoush

  • Contributor
  • Posts: 24
  • Country: 00
 
The following users thanked this post: IOsetting

Online IOsetting

  • Regular Contributor
  • *
  • Posts: 56
  • Country: cn
Re: Air105 / Air32F103 - New chinese arm chips
« Reply #45 on: February 05, 2023, 03:07:26 pm »
My apologies, the additional flash is fake. By further testing, I found it's just a repeat of the first 128K flash. I must have got mixed up cbt6 with cct6.  |O
« Last Edit: February 06, 2023, 03:58:33 pm by IOsetting »
 
The following users thanked this post: thm_w

Offline fanoush

  • Contributor
  • Posts: 24
  • Country: 00
Re: Air105 / Air32F103 - New chinese arm chips
« Reply #46 on: February 06, 2023, 09:15:35 am »
That's interesting. With real STM chips devices <=128KB are medium density devices with 1KB flash pages, devices over 128KB are  high density devices with 2KB pages. So what the page size is before unlocking and when you unlock it? 1 and then it changes to 2KB?
« Last Edit: February 06, 2023, 03:11:26 pm by fanoush »
 

Online IOsetting

  • Regular Contributor
  • *
  • Posts: 56
  • Country: cn
Re: Air105 / Air32F103 - New chinese arm chips
« Reply #47 on: February 06, 2023, 04:01:18 pm »
That's interesting. With real STM chips devices <=128KB are medium density devices with 1KB flash pages, devices over 128KB are  high density devices with 2KB pages. So what the page size is before unlocking and when you unlock it? 1 and then it changes to 2KB?
The flash page size of cbt6 is 1KB.
Sorry, the flash hack is fake.  :palm:
 

Online bingo600

  • Super Contributor
  • ***
  • Posts: 1988
  • Country: dk
Re: Air105 / Air32F103 - New chinese arm chips
« Reply #48 on: August 01, 2023, 04:43:51 am »
Anyone know where I can get the daplink firmware that come with the Air32F103?

The latest daplink firmware can be found at
https://gitee.com/openLuat/luatos-soc-air32f103/tree/master/AIR_Jlink_Keil
air32_daplink.hex  -  for normal xxlink upload
air32_daplink_iap.hex - for virtual u-disk upgrade

If you want the original one that comes with the board, check out the earliest commit of air32_daplink.hex

Have any of you tried the new daplinkv2 hexfile from the above link ??
I'm preparing for my first daplink setup, and don't want to be hit by "bugs" if/when making my first baby steps w. daplink.

@IOsetting
Thank you for taking your time to describe the many MCU's , and  THANK YOU for the "Templates" you have made for them.  :-+ :-+

I have just compiled & loaded your AIR32F103 "blinky"  :)

Is there a special linux daplink program , or do you just use pyOCD or OOCD , and specify daplink as "programmer/protocol" ??
I have never used pyOCD , but have used OOCD quite a lot , back in time. And have just build OOCD from GIT.

I'm warming up to use it on a py32f003.
I also have st-link, and jlink-ob , but think i read that daplink is the way to go with those generic Cortexes.

Edit:
Anyone knows what pins are SWDIO and SWCLOCK on the Air32F103 daplink firmware ?


/Bingo
« Last Edit: August 01, 2023, 05:00:00 am by bingo600 »
 

Online IOsetting

  • Regular Contributor
  • *
  • Posts: 56
  • Country: cn
Re: Air105 / Air32F103 - New chinese arm chips
« Reply #49 on: August 01, 2023, 06:20:51 pm »
@bingo600
Thank you, you are welcome!

The DAPLink firmware is for their
black board https://wiki.luatos.com/chips/air32f103/board.html
and tiny DAPLInk https://wiki.luatos.com/chips/air32f103/daplink.html
more details can be found at https://wiki.luatos.com/chips/air32f103/index.html

PCB of the black board:
https://cdn.openluat-luatcommunity.openluat.com/attachment/20220605164915340_AIR32CBT6.pdf
https://wiki.luatos.com/_static/bom/Air32F103.html

I haven't tried V2 but this should be the same as V1, what I know is it fixed the onboard LEDs and improved the download speed.
The source code can be found at https://gitee.com/openLuat/daplink

Pinout as a DAPLink
PB13: SWCLK
PB14: SWDIO
PB0: RESET
PA2: TX
PA3: RX
 
The following users thanked this post: bingo600


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf