Air105 / Air32F103 - New chinese arm chips - Page 1
Forum section: electronics / general

author: DavidAlfa
author_rank: Super Contributor
timestamp: August 04, 2022, 10:50:13 am
content: Found a new company making stm32-like chips on AliExpresshttps://a.aliexpress.com/_ujJBWlSpecs are pretty nice:Air32F103216MHz, 32K RAM, 128K Flashhttps://chowdera.com/2022/198/202207171843163101.htmlhttps://wiki.luatos.com/chips/air32f103/index.html(Actually the RAM can be unlocked to 97KB!)Air105204MHz, 640KB SRAM, 4MB flashhttps://developpaper.com/aizhou-air105-uses-keil-mdk-dap-link-to-burn-and-debug/

author: pcprogrammer
author_rank: Super Contributor
timestamp: August 04, 2022, 11:00:15 am
content: Not cheap though for the AIR32F103 that is. ~10 euros shipped

author: thm_w
author_rank: Super Contributor
timestamp: August 04, 2022, 09:51:30 pm
content: What I don't get is they claim "compatible STM32 For Arduino". But the screenshots are showing Keil, and the AIR105 is clearly a completely different beast from the STM32F103.I guess the AIR32F103 is the only compatible one then? and AIR105 has no STM equivalent at all.There are also more in your link, AIR101, AIR106If the 32F103 is a drop in compatible replacement, then its a smart way to enter the market. As gigadevices did.But all of the non-GD clones, from what I've seen, haven't been as good in terms of compatibility. Even the GD one isn't perfect.Quote from: pcprogrammer on August 04, 2022, 11:00:15 amHere you go, $2:https://www.aliexpress.com/item/1005004606391844.htmledit: the AIR103 module is not the same pinout as bluepill, or blackpill, is it compatible with any pinout? Don't know what these people are thinking, just use an existing pinout. Completely worthless board now.

author: pcprogrammer
author_rank: Super Contributor
timestamp: August 05, 2022, 03:16:17 am
content: Quote from: thm_w on August 04, 2022, 09:51:30 pmFor me this one is ~4 euros shipped, which is comparable to others, but with 216MHz compared to 72MHz much faster. Is it reliable though?But with a pin out of the board that does not match the bluepill it becomes its own thing and not a drop in replacement for something you already made. For me as a hobbyist not a problem, but already have enough development boards lying around

author: DavidAlfa
author_rank: Super Contributor
timestamp: August 05, 2022, 10:56:42 am
content: Who buys bluepills board for professional products...?It's all for hobbists.

author: thm_w
author_rank: Super Contributor
timestamp: August 05, 2022, 09:38:58 pm
content: Quote from: pcprogrammer on August 05, 2022, 03:16:17 amExactly, it becomes its own thing, which makes it a problem:- You can't just drop it in your existing design and test the reliability.- You have to spend development effort to use it anywhereThis guy is implying its drop in:https://blog.csdn.net/michaelchain/article/details/125458496But doesn't provide much info, and no datasheet to be found. I'm assuming the 216MHz is a simply PLL register change (72MHz * 3), as the mindmotion F103 was (?)

author: rooppoorali
author_rank: Regular Contributor
timestamp: August 09, 2022, 07:23:11 am
content: Are these chips available somewhere else? Except for Aliexpress?

author: thm_w
author_rank: Super Contributor
timestamp: August 09, 2022, 09:24:52 pm
content: Quote from: rooppoorali on August 09, 2022, 07:23:11 amTaobao.Google is your friend, or find a re-shipper if you need the latest and greatest directly from china.

author: fanoush
author_rank: Contributor
timestamp: October 17, 2022, 05:29:34 pm
content: Quote from: thm_w on August 05, 2022, 09:38:58 pmDatasheet in chinese is linked herehttps://wiki.luatos.com/chips/air32f103/hardware.htmlthanks to Chrome browser builtin translation those pages are quite readable with lot of info and the pdf can be translated by google translate too. The flash latency is interesting - up to 108MHz the value is 0 and >108-216 is 1. Original needs 2 at 72 (and APM32F103 needs 3 at 96MHz) so I am quite interested in benchmarking code running from internal flash withthis board. With APM32F103 at 96 code from flash runs only a tiny bit faster than at 72, only when code is copied to RAM it runs *1.33 fasterI have ordered one of those $2 boards fromaliexpressjust to test performance at 216Mhz and compatibility. BTW, the datasheet shows power consumption at various clocks and it is much lower at 216 than STM32F103 original at 72Mhz (38 vs 50 mA).

author: DavidAlfa
author_rank: Super Contributor
timestamp: October 17, 2022, 08:57:27 pm
content: Don't forget the F1 series have 15 years already...

author: IOsetting
author_rank: Regular Contributor
timestamp: October 18, 2022, 04:06:01 pm
content: For your info:1. AIR32F103x is an OEM product, the original type is Mega Hunt MH32F103x, you can still find MH32F103 chips on Taobao, they are the same.2. AIR32F103x is compatible with STM32F103x in most cases but there are quite a few difference, here is a detailed list (in Chinese)https://wiki.luatos.com/chips/air32f103/switchFromSxx.html3. All other chips (Air101, Air103, Air105... ) are not compatible with STM32.4. The library and example projects for Keil5 IDEhttps://gitee.com/openLuat/luatos-soc-air32f103/tree/master/ModuleDemo5. The gcc arm project template (with the same library from above repository)https://gitee.com/iosetting/air32f103-templatePossibly you can find more details from the example code.

author: fanoush
author_rank: Contributor
timestamp: October 19, 2022, 07:55:27 am
content: Thanks, the gcc template will be helpful :-) MH32F103 gives some additional interesting results in google search.As for example code I was interested mostly in setting up higher clock speed (216,108) with having USB still working with correct divider and found the code herehttps://wiki.luatos.com/chips/air32f103/enhancement.htmlso I am looking forward to testing it once my board arrives.BTW, The datasheet also mentions CCT6 version with 64K RAM, 256K Flash. Board with that one would be even better than the CBT6 one. But I guess CBT6 one is cheaper and maybe even more compatible with STM32F103 (regarding flash block size?). If I had few cheap bare chips of CCT6 variant, it would be fun to replace existing chips in some devices with STMF103 I have where the 128K of flash is hitting the limit of what the firmware can do.

author: IOsetting
author_rank: Regular Contributor
timestamp: October 28, 2022, 06:59:51 am
content: 216MHz code example for gcc arm embedded toolchainshttps://gitee.com/iosetting/air32f103-template/tree/master/Examples/NonFreeRTOS/RCCThe highest clock speed would be 256MHz when PLL=32I found recently there are more variants of these series

author: bidrohini
author_rank: Regular Contributor
timestamp: October 31, 2022, 04:13:59 am
content: Has anyone used these?

author: fanoush
author_rank: Contributor
timestamp: October 31, 2022, 10:48:49 am
content: I/m about to receive board with Air32F103 any day now so will test it a bit then. Ordered AIR32F103 variant fromhttps://www.aliexpress.com/item/1005004539387853.html

author: fanoush
author_rank: Contributor
timestamp: November 03, 2022, 11:47:14 am
content: So I got the board and I like the chip. I have flashed binary of my build ofEspruino for STM32F103and it runs out of box just fine.USB works, GPIO works, I can see the unused SRAM over 20K up to 32K works. Also looks like the flash latency is much better, even with unchanged STM32 binary at 72Mhz (=with flash latency set to 2) this board is much faster when code is running from flash!here are some results (full codehttps://gist.github.com/fanoush/ca350c56d0b6847e223fa9cbb877286b)STM32F103, 72Mhz, flash latency 2benchall(20000);time: 3.71646881103 result= 936372485time: 1015.77520370483 result= Infinitytime: 12676.12385749816 result= InfinityAPM32F103 96Mhz, flash latency 3benchall(20000);time: 2.85291671752 result= 936372485time: 990.22006988525 result= Infinitytime: 12141.72148704528 result= InfinityAir32F103, 72Mhz, flash latency 2 (probably ignored)benchall(20000);time: 3.77774238586 result= 936372485time: 705.31296730041 result= Infinitytime: 9807.07502365112 result= Infinitythe first line is fully native code running from SRAMsecond is compiled JS = compiled code is running from SRAM but is calling into JS runtime in flash a lotthird is interpreted JS fully running from flashIt can be seen that only first line is based on raw CPU speed and 96Mh is faster than 72Mhz however when code is run mainly from flash the latency kills it for both STM32 and APM32 (so in second line even the APM32 is not much faster than STM32 at 72Mhz). Air32F103 flies here.Will test higher clocks too later. Also will try to set lower latency at 72 as the Air32 datasheet says latency should be 0 for such low speed, not 2 as set for STM32EDIT:And BTW this board comes by default with CMSIS-DAP daplink firmware (with usb to serial, WinUSB, WebUSB and mass storage modes enabled too) so it is handy to use it as SWD dongle too

author: bidrohini
author_rank: Regular Contributor
timestamp: November 03, 2022, 01:56:40 pm
content: Thanks for then review after using.

author: Scrts
author_rank: Frequent Contributor
timestamp: November 03, 2022, 03:33:54 pm
content: I understand the AIR103 does not have SWD or JTAG? So only UART prints and GPIO toggles for debug?

author: DavidAlfa
author_rank: Super Contributor
timestamp: November 03, 2022, 04:59:11 pm
content: Of course it has SWD. Where did you took that idea from?

author: Scrts
author_rank: Frequent Contributor
timestamp: November 03, 2022, 07:25:23 pm
content: Quote from: DavidAlfa on November 03, 2022, 04:59:11 pmI am guessing. Would be good if someone tries.For example check here:https://mecrisp-stellaris-folkdoc.sourceforge.io/bluepill-diagnostics-v1.6.htmlTable: Device Info.APM32 and CKS32 do not support SWD. You can flash over SWD wires, but you cannot debug.

author: GromBeestje
author_rank: Frequent Contributor
timestamp: November 03, 2022, 07:30:10 pm
content: Quote from: Scrts on November 03, 2022, 07:25:23 pmI don't recall having any problems debugging APM32 or CKS32 over SWD.

author: Scrts
author_rank: Frequent Contributor
timestamp: November 03, 2022, 09:29:14 pm
content: Quote from: GromBeestje on November 03, 2022, 07:30:10 pmWhat debugger did you use? STM32 debugger doesn't work. It didn't work with J-Link EDU flashed on ST-Link debugger.

author: IOsetting
author_rank: Regular Contributor
timestamp: November 04, 2022, 01:27:08 am
content: Quote from: Scrts on November 03, 2022, 03:33:54 pmAIR103 and AIR32F103 are different, I guess you meant AIR32F103?AIR103 is a totally different arch(C-Sky), the OEM type is W806, QFN56 pack.

author: fanoush
author_rank: Contributor
timestamp: November 04, 2022, 08:45:16 am
content: Quote from: Scrts on November 03, 2022, 09:29:14 pmOpenOCD works. You can run it like this to force different CPU ID (and larger flash size)openocd -d2 -f interface/cmsis-dap.cfg -c "set FLASH_SIZE 131072" -c "set CPUTAPID 0x2ba01477" -f target/stm32f1x.cfgThen you can use any IDE that supports gdb debugging or use gdb directly.EDIT: oh sorry for jlink it is-f interface/jlink.cfgor for stlink-f interface/stlink.cfgyou can get recent binary for windows e.g. fromhttps://github.com/openocd-org/openocd/releases/

author: GromBeestje
author_rank: Frequent Contributor
timestamp: November 09, 2022, 01:12:54 pm
content: Regarding OpenOCD, please use a recent version v0.11 or the latest gitWhen using the ST-Link, the stlink-dap.cfg is preferrred over stlink.cfg. The stlink-dap.cfg won't need CPUTAPID,Note when using the stlink-dap.cfg you'll need to have at least firmware version V2J24 on The ST-LINK.Code:openocd -f interface/stlink-dap.cfg -f target/stm32f1x.cfgWhen using J-LinkCode:openocd -f interface/jlink.cfg -c "transport select swd" -f target/stm32f1x.cfgNote to select the interface after including the config file for the debugger but before the config file for the chip. This generally holds for any non-st-link type of debugger, eg, cmsis-dap. Otherwise it will default to JTAG.Code:openocd -f interface/cmsis-dap.cfg -c "transport select swd" -f target/stm32f1x.cfgOpenOCD will run with these stand alone, or in an IDE like the embedded version of Eclipse, as shown in the attachment

author: IOsetting
author_rank: Regular Contributor
timestamp: November 13, 2022, 08:32:21 am
content: 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.

author: Utherbone
author_rank: Newbie
timestamp: November 20, 2022, 01:57:45 am
content: 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/FASTUSBasp1 -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.bin3 -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 usbI am very anxious to receive and test mine, I ordered from the same linkIt cost me 1.80 EUR converted from 10.65 BRLfanoush Can you make a test of this FASTUSBasp firmware?I don't know English, so I used a translator.

author: fanoush
author_rank: Contributor
timestamp: November 20, 2022, 11:10:18 am
content: Quote from: Utherbone on November 20, 2022, 01:57:45 amit 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 SWDQuote from: Utherbone on November 20, 2022, 01:57:45 amIf you don't have any SWD programmer you can also buy two for that price and keep one as programmer. I flashed fastusbasp.bin fromhttps://github.com/amitesh-singh/FASTUSBasp/releases/tag/v1.0.0to 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.

author: Utherbone
author_rank: Newbie
timestamp: November 20, 2022, 03:37:02 pm
content: Quote from: fanoush on November 20, 2022, 11:10:18 amNothing 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.Quote from: fanoush on November 20, 2022, 11:10:18 amThis 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, belowUpdates, 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

author: skys2000
author_rank: Newbie
timestamp: November 26, 2022, 03:04:01 pm
content: 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.837235 / GCCClang 13.0.0 (ssh://ds-gerrit/armcompiler/llvm-project1f5770d6f72ee4eba2159092bbf4cbb819be323a) -O3 / STACK

author: Utherbone
author_rank: Newbie
timestamp: December 04, 2022, 03:07:29 pm
content: 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, my STM32 or my FTDI are not broken my euphoria made me reverse the RX and TX pins.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.

author: GromBeestje
author_rank: Frequent Contributor
timestamp: December 04, 2022, 09:26:11 pm
content: An STM32F103 clone with a Cortex M4 core? I've seen that before. The FlashChip FCM32F103 has a Cortex M4 core

author: IOsetting
author_rank: Regular Contributor
timestamp: December 05, 2022, 06:25:16 am
content: The ArteryTek AT32F4 series, AT32F413, AT32F403, AT32F403A are M4F core with FPU are compatible with STM32F103

author: GromBeestje
author_rank: Frequent Contributor
timestamp: December 07, 2022, 03:45:23 pm
content: I have received the AIR32F103 boards I've ordered in the mail yesterday.The Microcontroller is labelled AIR32F103C8T6On initial inspection, they show up asCode:Info : [stm32f1x.cpu] Cortex-M3 r2p0 processor detectedInfo : [stm32f1x.cpu] target has 6 breakpoints, 4 watchpointsLooking 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?

author: thm_w
author_rank: Super Contributor
timestamp: December 08, 2022, 01:38:40 am
content: Quote from: GromBeestje on December 07, 2022, 03:45:23 pmThe AIR105 is the M4 part, skys2000 must have been talking about that.

author: IOsetting
author_rank: Regular Contributor
timestamp: December 08, 2022, 04:34:27 am
content: Should it be AIR32F103CBT6?Quote from: GromBeestje on December 07, 2022, 03:45:23 pm

author: GromBeestje
author_rank: Frequent Contributor
timestamp: December 08, 2022, 11:20:34 pm
content: Quote from: IOsetting on December 08, 2022, 04:34:27 amLooking closer in the light, what I mistook for an 8 is indeed a B,

author: IOsetting
author_rank: Regular Contributor
timestamp: December 22, 2022, 05:38:52 am
content: Hedley Rainnie found there are actually 97k ram available on air32f103cbt6.http://www.hrrzi.com/2022/12/the-air32f103.html

author: DavidAlfa
author_rank: Super Contributor
timestamp: January 07, 2023, 03:30:49 pm
content: I screwed my Air by playing with the PLL hack.I wondered what would happen by setting that bit to 1:Code: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!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:g_pfnVectors:.word_estack.wordReset_Handler.wordNMI_Handler.wordHardFault_Handler.wordMemManage_Handler.wordBusFault_Handler.wordUsageFault_HandlerThenCode: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.

author: DavidAlfa
author_rank: Super Contributor
timestamp: January 08, 2023, 02:51:19 am
content: So this is what the bootloader does to unlock the PLL "magic":Code:uint16_t *hack = (uint16_t*)0x40022214;*hack = (*hack & 0x3FF8) | 1<<14 | FLASH_Div_2; // Add 1<<15 to write-protect the flash

author: Kenjutsu
author_rank: Contributor
timestamp: January 29, 2023, 03:53:50 pm
content: Anyone know where I can get thedaplinkfirmware that come with the Air32F103?

author: IOsetting
author_rank: Regular Contributor
timestamp: January 29, 2023, 05:31:08 pm
content: Quote from: Kenjutsu on January 29, 2023, 03:53:50 pmThe latest daplink firmware can be found athttps://gitee.com/openLuat/luatos-soc-air32f103/tree/master/AIR_Jlink_Keilair32_daplink.hex - for normal xxlink uploadair32_daplink_iap.hex - for virtual u-disk upgradeIf you want the original one that comes with the board, check out the earliest commit of air32_daplink.hex

author: Kenjutsu
author_rank: Contributor
timestamp: January 30, 2023, 07:15:56 am
content: Quote from: IOsetting on January 29, 2023, 05:31:08 pmThank 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

author: Kenjutsu
author_rank: Contributor
timestamp: January 30, 2023, 01:55:39 pm
content: Regarding theAir103/Air105: Currently, can they only be used with theluatosenvironment, or are there some free/open source toolchains etc available?

author: fanoush
author_rank: Contributor
timestamp: January 30, 2023, 02:37:09 pm
content: Quote from: IOsetting on January 29, 2023, 05:31:08 pmBTW it is also synced to github, may be easier to accesshttps://github.com/openLuat/luatos-soc-air32f103

author: IOsetting
author_rank: Regular Contributor
timestamp: February 05, 2023, 03:07:26 pm
content: 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.

author: fanoush
author_rank: Contributor
timestamp: February 06, 2023, 09:15:35 am
content: 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?

author: IOsetting
author_rank: Regular Contributor
timestamp: February 06, 2023, 04:01:18 pm
content: Quote from: fanoush on February 06, 2023, 09:15:35 amThe flash page size of cbt6 is 1KB.Sorry, the flash hack is fake.

author: bingo600
author_rank: Super Contributor
timestamp: August 01, 2023, 04:43:51 am
content: Quote from: IOsetting on January 29, 2023, 05:31:08 pmHave 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.@IOsettingThank you for taking your time to describe the many MCU's , andTHANK YOUfor 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

author: IOsetting
author_rank: Regular Contributor
timestamp: August 01, 2023, 06:20:51 pm
content: @bingo600Thank you, you are welcome!The DAPLink firmware is for theirblack boardhttps://wiki.luatos.com/chips/air32f103/board.htmland tiny DAPLInkhttps://wiki.luatos.com/chips/air32f103/daplink.htmlmore details can be found athttps://wiki.luatos.com/chips/air32f103/index.htmlPCB of the black board:https://cdn.openluat-luatcommunity.openluat.com/attachment/20220605164915340_AIR32CBT6.pdfhttps://wiki.luatos.com/_static/bom/Air32F103.htmlI 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 athttps://gitee.com/openLuat/daplinkPinout as a DAPLinkPB13: SWCLKPB14: SWDIOPB0: RESETPA2: TXPA3: RX

author: bingo600
author_rank: Super Contributor
timestamp: August 01, 2023, 08:00:36 pm
content: Quote from: IOsetting on August 01, 2023, 06:20:51 pmThanxI have the "Black board"/Bingo

author: 5U4GB
author_rank: Super Contributor
timestamp: August 05, 2023, 08:53:06 am
content: Quote from: thm_w on August 04, 2022, 09:51:30 pmIt's a translation error, what they mean by "compatible" is that if you put them on the table next to each other they won't squabble or fight.

author: bingo600
author_rank: Super Contributor
timestamp: August 16, 2023, 01:27:12 pm
content: Quote from: bingo600 on August 01, 2023, 04:43:51 amWell i tried the AIR32F... daplink v2 hexfile , and it didn't work.Everything looked "normal" I think ...Well except for this message: 0000680 W Board ID 0001 is not recognized But program doesn't work after programming , not even if i disconnect the AIR daplink , and Powerreset the PY32F002 boardI loaded the AIR32F... daplink v1 hexfile , and it worked. ... AKA the "Blinky" began to blink on the target.Code:China DAPLINK - Works$py32f0-template$ pyocd list# Probe/Board Unique ID Target------------------------------------------------------0 jixin.pro CMSIS-DAP_LU LU_2022_8888 n/a$py32f0-template$ make flashpyocd erase -t py32f002ax5 --chip --config ./Misc/pyocd.yaml0000812 I Erasing chip... 0001081 I Chip erase complete pyocd load ./Build/app.hex -t py32f002ax5 --config ./Misc/pyocd.yaml0000820 I Loading $py32f0-template/Build/app.hex [==================================================] 100%0002136 I Erased 4096 bytes (1 sector), programmed 1792 bytes (14 pages), skipped 0 bytes (0 pages) at 1.34 kB/s $py32f0-template$Air32 V2 - Program dowsn't work (run) on target after programming$py32f0-template$ pyocd list# Probe/Board Unique ID Target---------------------------------------------------------------------------------------0 Arm Air32 CMSIS-DAP 000100011a5a5bb50000000001d2b777a5a5a5a597969908 n/aLuatOS Air32 MINI DAPLink$py32f0-template$ make flashpyocd erase -t py32f002ax5 --chip --config ./Misc/pyocd.yaml0000684 W Board ID 0001 is not recognized 0000750 I Erasing chip... 0000913 I Chip erase complete pyocd load ./Build/app.hex -t py32f002ax5 --config ./Misc/pyocd.yaml0000680 W Board ID 0001 is not recognized 0000740 I Loading $py32f0-template/Build/app.hex [==================================================] 100%0001140 I Erased 4096 bytes (1 sector), programmed 1792 bytes (14 pages), skipped 0 bytes (0 pages) at 4.39 kB/s $py32f0-template$Air32 V1 - Works$py32f0-template$ pyocd list# Probe/Board Unique ID Target----------------------------------------------------------------------------------------------0 Arm Air32 CMSIS-DAP 070000011a5a5bb50000000001d2b777a5a5a5a597969908 ✖︎ stm32f103rbSTMicroelectronics NUCLEO-F103RB$py32f0-template$$py32f0-template$ make flashpyocd erase -t py32f002ax5 --chip --config ./Misc/pyocd.yaml0000873 I Erasing chip... 0001117 I Chip erase complete pyocd load ./Build/app.hex -t py32f002ax5 --config ./Misc/pyocd.yaml0000872 I Loading $py32f0-template/Build/app.hex [==================================================] 100%0001776 I Erased 4096 bytes (1 sector), programmed 1792 bytes (14 pages), skipped 0 bytes (0 pages) at 1.95 kB/s $py32f0-template$Btw:Daplink sees the v1 as a "stm board" , and the v2 as an Air32 board.The v2 has this daplink messageQuoteMight have something to do with it .... But it still shows a erasing & programmingEdit: I programmed the Air32 w. a jlink , specifying taget as : STM32F103CB/Bingo

author: Jack70
author_rank: Newbie
timestamp: October 10, 2023, 03:15:06 pm
content: It seems like one of my AIR32F103 boards might be experiencing issues, though I'm not completely certain yet. The ST-Link loses its connection after around 10 seconds. I've tested the ST-Link with another STM32 board, and there are no problems there.After 10s I get, Error: Unable to get core IDI can read and program the Flash, but only within the first 10 seconds.It's possible that it's not actually broken, and the issue might be due to something I've done.I was trying to get spi3 working and was testing the remapping options, maybe that has broken something that can't be fixed with a full erase?I know that remapping has some limitations on the air32, but I don't think they say something about losing connection after 10s, right?Did someone else experience the same problem?Edit: To be clear, I've used this board for a couple of months without any problems.

author: IOsetting
author_rank: Regular Contributor
timestamp: October 11, 2023, 12:50:26 am
content: Quote from: Jack70 on October 10, 2023, 03:15:06 pmYou recalled me a similar issue I met with STM32F407 some years ago. It later turns out the "WDG_SW" flag in Option Bytes were unchecked, which made the chip reset itself every several seconds.

author: Jack70
author_rank: Newbie
timestamp: October 12, 2023, 10:28:31 am
content: I will check it when I get back home, but the chip doesn't reset every 10 seconds; it runs stable. However, when connected to the ST-Link, it resets one time after 10 seconds and then runs stable for hours without any further resets.I've tried this last night;I had a brand new board, so I soldered some pins on the program header and tried it. Same problem - it resets once after +-10 seconds every time the st-link is connected.Next, I tried a different programmer. I have a discovery board with an ST-Link, and that works just fine with the air32, no resets. So I thought it must be the programmer, but the programmer works just fine with an STM32H750, STM32FEB, etc.The discovery board has an older firmware, so I tried the older firmware V2J40S7, but it made no difference.I ordered two new ST-Links, a V2 and a V2.1, and I also ordered a DAP-link, maybe one of those will work normally.Update:Sometimes I'm just stupid, the AIR32F103 is already a DAP-link, and I have a second one, so I already have a working DAP-link. 😅And I no longer suspect the AIR32F103. The CSK32F103 also had the same problem, but not all clones. I've checked 4 different clones and 3 original STMs, and only those two stopped working correctly last night.This issue doesn't seem to be specific to AIR32. If I discover any interesting insights or if others encounter the same problem, I may start a new topic.

author: DavidAlfa
author_rank: Super Contributor
timestamp: October 13, 2023, 05:29:08 pm
content: Are both STlinks using the same FW version?

author: fanoush
author_rank: Contributor
timestamp: January 23, 2024, 02:12:09 pm
content: Quote from: IOsetting on October 18, 2022, 04:06:01 pmI just spotted some boards having MH2103A CBT6 clone chipshttps://www.hlkpint.com/product6_1.php?lm=102are these related to MH32F103x?The datasheet says 216 MHz too.Visible herehttps://ae01.alicdn.com/kf/A611cf33089f74830b00823becb2412c8A.jpgas part of STLINK V2 clone in this shop aliexpress.com/item/1005001621626894.htmlEDIThttps://www.hlkpint.com/kindeditor/attached/file/20230926/20230926121850_72307.pdf- migration from so called SXX32F103 with differences, clock multipliers ...

author: IOsetting
author_rank: Regular Contributor
timestamp: January 23, 2024, 04:39:41 pm
content: Quote from: fanoush on January 23, 2024, 02:12:09 pmThey are the the same chip.

author: fanoush
author_rank: Contributor
timestamp: January 23, 2024, 08:08:02 pm
content: Oh, great, thanks for confirmation. For some reason I like this usb dongle form factor of those ST Link V2 clones so will get a few with this chip